/* MALAB: a restrained visual layer over the familiar Discuz forum layout. */
:root {
  --ml-ink: #21364d;
  --ml-blue: #315f91;
  --ml-muted: #8190a0;
  --ml-line: #e5eaf0;
  --dz-bodybg: #f4f6f8;
  --dz-color: #315f91;
  --dz-alink: #30465e;
  --dz-ahover: #315f91;
  --dz-ahot: #aa574d;
  --dz-fa: #304156;
  --dz-fb: #55718f;
  --dz-fc: #8190a0;
  --dz-fd: #a6b0bd;
  --dz-bgf: #fff;
  --dz-bgc: #f5f7fa;
  --dz-bgb: #f7f9fb;
  --dz-borderb: #e5eaf0;
  --dz-borderc: #dce3eb;
  --dz-nvtxt: #315f91;
  --dz-nvbg: #315f91;
  --dz-nvbga: #244b77;
  --dz-btnbg: #315f91;
  --dz-btnbga: #244b77;
  --dz-btntxt: #fff;
  --dz-btntxta: #fff;
  --dz-radius-s: 7px;
  --dz-radius-m: 12px;
  --dz-shadow: 0 5px 24px -16px rgba(25, 48, 74, .23);
}
body.discuzx5, .discuzx5 input, .discuzx5 button, .discuzx5 select, .discuzx5 textarea {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}
body.discuzx5 { color: var(--dz-fa); background: var(--dz-bodybg); font-size: 13px; }
.discuzx5 a { transition: color .15s ease, background-color .15s ease; }
.discuzx5 a:focus-visible, .discuzx5 button:focus-visible { outline: 2px solid #8cafd1; outline-offset: 3px; }
body.discuzx5.dz_wide .wp { width: 1200px; max-width: calc(100vw - 64px); }

/* The navigation stays in its original order and location. */
body.discuzx5 .dz_layer_top { background: rgba(255,255,255,.97); border-bottom: 1px solid var(--ml-line); box-shadow: 0 3px 14px -12px #233c58; }
body.discuzx5 .dz_btm_layer.dz_nav { display: flex; align-items: center; gap: 28px; width: 1200px; max-width: calc(100vw - 64px); min-width: 0; height: 78px; padding: 0; margin: auto; }
body.discuzx5 .dz_nav .dz_nav_logo { float: none; flex: 0 0 auto; height: 78px; margin: 0; }
.malab-brand { display: flex; align-items: center; gap: 11px; color: var(--ml-ink); white-space: nowrap; }
.malab-mark { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; background: #223d5b; box-shadow: 0 4px 10px -5px #47617c; }
.malab-mark svg { width: 30px; height: 30px; }
.malab-wordmark { display: flex; flex-direction: column; gap: 4px; }
.malab-wordmark strong { font-size: 19px; line-height: 1.05; font-weight: 750; letter-spacing: .3px; }
.malab-wordmark small { font-size: 13px; line-height: 1.4; color: #7e8d9e; letter-spacing: 2px; }
body.discuzx5 .dz_layer_nav { float: none; flex: 1; min-width: 0; width: auto; height: 78px; overflow: visible; }
body.discuzx5 .dz_layer_nav > ul { display: flex; align-items: center; gap: 25px; }
body.discuzx5 .dz_layer_nav ul li { float: none; }
body.discuzx5 .dz_layer_nav ul li a { margin: 0; height: 78px; line-height: 78px; font-size: 14px; font-weight: 500; letter-spacing: .2px; white-space: nowrap; }
body.discuzx5 .dz_layer_nav ul li.a a { color: var(--ml-blue); font-weight: 650; }
body.discuzx5 .dz_layer_nav ul li a:before { left: 50%; bottom: 0; width: 0; height: 3px; border-radius: 3px 3px 0 0; transform: translateX(-50%); }
body.discuzx5 .dz_layer_nav ul li.a a:before, body.discuzx5 .dz_layer_nav ul li a:hover:before { width: 24px; }
body.discuzx5 .dz_layer_nav ul li a:after { display: none; }
body.discuzx5 .dz_layer_dl { float: none; flex: 0 0 auto; }
body.discuzx5 .dz_nav > .clear { display: none; }
body.discuzx5 .header-right { height: 78px; }
body.discuzx5 .header-searcher { margin-right: 18px; }
body.discuzx5 .header-searcher .search-input { width: 188px; height: 34px; padding-left: 14px; padding-right: 32px; font-size: 12px; border: 1px solid #e8edf2; background: #f5f7fa; }
body.discuzx5 .header-user-login .login_btn { margin: 0; padding: 0; background: transparent; border-radius: 7px; }
body.discuzx5 .header-user-login .login_btn a { display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; min-width: 64px; padding: 0 18px; height: 34px; line-height: 34px; border-radius: 7px; background: var(--ml-blue); font-size: 13px; box-shadow: 0 3px 8px -5px #315f91; }
body.discuzx5 .header-user-login .login_btn a:hover { background: #244b77; }
body.discuzx5 #hds .p_pop { border: 1px solid var(--ml-line); border-radius: 10px; box-shadow: 0 12px 35px -20px #253f5b; }
body.discuzx5 #pt { margin: 16px 0 15px; font-size: 12px; }

/* Familiar statistics, board groups and two-column browsing. */
.pg_index #chart.bm { box-sizing: border-box; display: flex; align-items: center; gap: 21px; padding: 13px 20px; margin-bottom: 22px; background: #fff !important; border: 1px solid var(--ml-line) !important; border-radius: 11px; box-shadow: none; }
.pg_index #chart:before { content: "社区动态"; flex: 0 0 auto; padding-left: 10px; border-left: 3px solid #6d8caf; font-size: 13px; font-weight: 650; line-height: 16px; color: var(--ml-ink); }
.pg_index #chart .chart { float: none; flex: 1; font-size: 12px; line-height: 23px; color: #8a96a4; }
.pg_index #chart .chart:before { display: none; }
.pg_index #chart .chart em { margin-left: 2px; color: #3c5674; font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.pg_index #chart .pipe { color: #d6dde5; margin: 0 9px; }
.pg_index #chart > .y { float: none; }
.pg_index .ct2 .sd { width: 284px; }
.pg_index .ct2 .mn { width: calc(100% - 308px); }
.pg_index .fl.bm { border: 0; background: transparent; box-shadow: none; }
.pg_index .fl > .bm { margin-bottom: 22px; overflow: hidden; border: 1px solid var(--ml-line) !important; border-radius: 12px; background: #fff; box-shadow: 0 5px 24px -20px #314b66; }
.pg_index .fl .bm_h { height: 56px; line-height: 56px; margin: 0 22px 8px; border-bottom: 1px solid #edf0f4; }
.pg_index .fl .bm_h h2 { font-size: 16px !important; font-weight: 650; letter-spacing: .2px; }
.pg_index .fl .bm_h h2 a, .pg_index .fl .bm_h h2 font { color: var(--ml-ink) !important; }
.pg_index .fl .bm_h .y { color: #99a3ae; font-size: 11px; }
.pg_index .fl .bm_h .y a { color: #7d8b9c; }
.pg_index .fl .bm_h .o em { color: #9aa8b8; font-size: 21px; margin-top: 21px; }
.pg_index .flg .bm_c { padding: 0 10px 10px; }
.pg_index .fl_tb td.fl_g { padding: 17px 13px; border-radius: 9px; transition: background .15s ease; }
.pg_index .fl_tb td.fl_g:hover { background: #f6f9fc; }
/* Grid icons have their own box; single-column icons live inside table cells. */
.pg_index .fl_icn_g { display: flex; align-items: center; justify-content: center; box-sizing: border-box; width: 62px !important; height: 62px; min-height: 62px; padding: 6px; margin-right: 12px; border: 1px solid #edf1f5; border-radius: 12px; background: #fafbfd; }
.pg_index .fl > .bm:not(.flg) > .bm_c { padding: 0 20px 14px; }
.pg_index .fl_tb td.fl_icn { box-sizing: content-box; width: 62px !important; height: auto; min-height: 0; padding: 12px 16px 12px 0 !important; margin: 0; border: 0; border-radius: 0; background: transparent; vertical-align: middle; }
.pg_index .fl_tb td.fl_icn > a { display: flex; align-items: center; justify-content: center; box-sizing: border-box; width: 62px; height: 62px; padding: 6px; border: 1px solid #edf1f5; border-radius: 12px; background: #fafbfd; }
.pg_index .fl > .bm:not(.flg) .fl_tb td { vertical-align: middle; }
.pg_index .fl_icn_g > a { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
.pg_index .fl_icn_g img, .pg_index .fl_icn img { max-width: 100%; max-height: 100%; }
.pg_index .fl_icn_g img, .pg_index .fl_icn img { display: block; float: none; width: 48px !important; height: 48px !important; object-fit: contain; border-radius: 7px; filter: saturate(.87); }
.pg_index .fl_g dl { margin-left: 77px !important; }
.pg_index .fl_g dt { height: 26px; line-height: 26px; margin-bottom: 2px; font-size: 15px; font-weight: 600; }
.pg_index .fl_g dt a { color: #2d435c; }
.pg_index .fl_g dd { height: 21px; line-height: 21px; font-size: 12px; color: #909cab; }
.pg_index .fl_g dd a { color: #657e9a; }
.pg_index .fl_g cite { color: #9aa6b3; font-style: normal; }
.pg_index #online.bm { border: 1px solid var(--ml-line) !important; border-radius: 12px; box-shadow: none; }

/* Keep the announcement and latest-posts sidebar in place. */
.pg_index .sd .block { border: 1px solid var(--ml-line); border-radius: 12px; box-shadow: 0 5px 20px -19px #314b66; overflow: hidden; margin-bottom: 20px; }
.pg_index .sd .block .blocktitle { height: 50px; line-height: 50px; border-bottom: 1px solid #edf0f4; margin: 0 20px; padding: 0; }
.pg_index .sd .block .titletext { font-size: 14px !important; font-weight: 650; color: #334b66 !important; }
.pg_index .sd .dxb_bc { padding: 17px 20px 19px; border: 0 !important; background: transparent; box-shadow: none !important; }
.pg_index .sd .portal_block_summary, .pg_index .sd .module { border: 0 !important; box-shadow: none !important; background: transparent; }
.pg_index .sd .block, .pg_index .sd .blocktitle, .pg_index .sd .dxb_bc { background-image: none !important; }
.pg_index .sd .block .titletext { background-image: none !important; }
.pg_index #portal_block_79 { background: #fdfbf7; border-color: #eee8dc; }
.pg_index #portal_block_79 .blocktitle { border-bottom-color: #f0eadf; }
.pg_index #portal_block_79 .portal_block_summary { font-size: 12px; line-height: 1.9; }
.pg_index #portal_block_79 font { color: #996558; }
.pg_index .sd .xl1 li { position: relative; height: 31px; line-height: 31px; font-size: 12px; }
.pg_index .sd .xl1 li a { color: #57718e; }
.pg_index .sd .xl1 li em { min-width: 17px; height: 18px; margin-top: 6px; padding: 0 3px; line-height: 18px; border-radius: 5px; background: #f0f3f7; color: #7d8da0; font-size: 10px; text-align: center; font-variant-numeric: tabular-nums; }
.discuzx5 .dz_footc { border-top: 1px solid #e4eaf1; background: #eff2f6; }
.discuzx5 .dz_footc_copy, .discuzx5 .dz_footc_nav { color: #98a4b3; font-size: 11px; }
.discuzx5 .dz_footc a { color: #8190a2; }
.discuzx5 .dz_footc a:hover { color: var(--ml-blue); }
.discuzx5 .flb em { color: var(--ml-blue); }

/* Carry the same typography and surfaces through lists and discussions. */
.pg_forumdisplay .tl .th { background: #f7f9fb; }
.pg_forumdisplay .tl th, .pg_forumdisplay .tl td { border-bottom-color: #edf0f4; }
.pg_forumdisplay .tl .s { font-size: 14px; }
.pg_viewthread .dz_postlist .ts { color: var(--ml-ink); font-size: 23px; font-weight: 650; line-height: 1.55; }
.pg_viewthread .t_f { line-height: 1.85; }
.pg_viewthread .pls { background: #fafbfd; border-right-color: #e8edf3; }
.pg_viewthread .pls .avatar .avtm { border-style: solid; border-color: #e5ebf2; background: #fff; }

@media (max-width: 1120px) {
  body.discuzx5 .header-searcher { display: none; }
  body.discuzx5 .dz_layer_nav > ul { gap: 22px; }
  .pg_index .ct2 .sd { width: 250px; }
  .pg_index .ct2 .mn { width: calc(100% - 272px); }
  .pg_index .fl .bm_h .y { display: none; }
}
@media (max-width: 860px) {
  body.discuzx5.dz_wide .wp { max-width: calc(100vw - 32px); }
  body.discuzx5 .dz_btm_layer.dz_nav { max-width: calc(100vw - 32px); height: auto; min-height: 76px; padding: 10px 0 0; flex-wrap: wrap; gap: 0 20px; }
  body.discuzx5 .dz_nav .dz_nav_logo, body.discuzx5 .header-right { height: 54px; }
  body.discuzx5 .dz_layer_dl { margin-left: auto; }
  body.discuzx5 .dz_layer_nav { flex: 1 0 100%; order: 3; height: 44px; }
  body.discuzx5 .dz_layer_nav ul li a { height: 44px; line-height: 44px; font-size: 13px; }
  body.discuzx5 .dz_layer_nav > ul { justify-content: space-between; gap: 12px; }
  .pg_index .ct2 .mn, .pg_index .ct2 .sd { float: none; width: 100%; }
  .pg_index #chart.bm { gap: 12px; padding: 12px 15px; }
  .pg_index #chart .chart { font-size: 11px; }
  .pg_index #chart .chart .pipe { margin: 0 5px; }
  .pg_index #chart .chart em { font-size: 12px; }
}
@media (max-width: 600px) {
  .pg_index .fl > .bm:not(.flg) .fl_i, .pg_index .fl > .bm:not(.flg) .fl_by { display: none; }
  .pg_index .fl > .bm:not(.flg) .fl_tb td h2 { height: auto; min-height: 22px; white-space: normal; overflow: visible; display: block; }
  .malab-wordmark strong { font-size: 17px; }
  .malab-wordmark small { font-size: 12px; }
  .pg_index #chart.bm { display: block; }
  .pg_index #chart:before { display: block; margin-bottom: 7px; }
  .pg_index .flg .fl_tb, .pg_index .flg .fl_tb tbody, .pg_index .flg .fl_tb tr { display: block; width: 100%; }
  .pg_index .flg .fl_tb td.fl_g { display: block; box-sizing: border-box; width: 100% !important; }
  .pg_index .fl .bm_h { margin: 0 16px 5px; }
}
@media (prefers-reduced-motion: reduce) {
  .discuzx5 a, .pg_index .fl_tb td.fl_g { transition: none; }
}

/* Compact toolbar with SVG icons, independent of the theme icon font. */
body.discuzx5 #dz_rnav { left: auto !important; right: 18px !important; bottom: 28px; margin: 0; width: 44px; }
body.discuzx5 #dz_rnav > a { display: flex; align-items: center; justify-content: center; box-sizing: border-box; width: 44px; height: 44px; margin-top: 8px; border: 1px solid #dce4ed; border-radius: 12px; background: #f8fafc; color: #526c88; box-shadow: 0 3px 12px rgba(33,54,77,.06); font-family: inherit; line-height: 1; }
body.discuzx5 #dz_rnav > a:before { content: none; }
body.discuzx5 #dz_rnav > a:hover, body.discuzx5 #dz_rnav > a:focus-visible { background: #315f91; border-color: #315f91; color: #fff; }
#dz_rnav .ml-tool-icon { display: block; width: 22px; height: 22px; flex-shrink: 0; }
body.discuzx5 #dz_rnav .dz_tip_text { top: 5px; right: 54px; background: #21364d; color: #fff; font-family: inherit; }
body.discuzx5 #dz_rnav > a:focus-visible .dz_tip_text { opacity: 1; visibility: visible; transform: translateX(0); }
body.discuzx5 #dz_rnav .dz_rewm_box { right: 44px; padding-right: 10px; }
body.discuzx5 #dz_rnav .dz_rewm { background: #fff; border: 1px solid #dce4ed; box-shadow: 0 6px 24px rgba(33,54,77,.1); }
body.discuzx5 #dz_rnav .dz_rewm span { color: #526c88; font-family: inherit; }
body.discuzx5 #dz_rnav > a:focus-visible .dz_rewm_box { display: block; }
@media (max-width: 600px) { body.discuzx5 #dz_rnav { right: 12px !important; bottom: 18px; } }

/* Same-origin fonts and flexible page width after migration. */
@font-face { font-family: dzicon; src: url('/static/image/common/dzicon.woff2') format('woff2'), url('/static/image/common/dzicon.woff') format('woff'); font-weight: normal; font-style: normal; font-display: block; }
body.discuzx5 { min-width: 0; }
body.discuzx5 .dz_btm_layer, body.discuzx5 #toptb { min-width: 0; }
body.discuzx5 .wp { min-width: 0; }
body.discuzx5 .t_f { overflow-wrap: anywhere; word-break: normal; }
body.discuzx5 .t_f img { max-width: 100%; height: auto; }
body.discuzx5 .kmshowimg.ml-image-unavailable { display: inline-flex; align-items: center; justify-content: center; background: #f4f7fa; border: 1px dashed #d7e0eb; color: #8190a0; }
body.discuzx5 .kmshowimg.ml-image-unavailable img { display: none; }
body.discuzx5 .kmshowimg.ml-image-unavailable:before { content: "附图暂缺"; font-size: 12px; font-family: inherit; }
@media (max-width: 860px) {
  body.discuzx5 #pt { height: auto; min-height: 29px; }
  body.discuzx5 #pt .z { float: none; white-space: normal; }
  body.discuzx5 .dz_footc_bottom { box-sizing: border-box; }
  .pg_index #online .bm_h { height: auto; min-height: 44px; line-height: 1.8; padding-top: 10px; padding-bottom: 10px; }
  .pg_index .oll li { width: 50%; }
}
@media (max-width: 600px) {
  body.discuzx5 .dz_btm_layer.dz_nav { gap: 0 12px; }
  body.discuzx5 .dz_layer_nav > ul { gap: 14px; overflow-x: auto; justify-content: flex-start; }
  body.discuzx5 .dz_layer_nav ul li { flex: 0 0 auto; }
  body.discuzx5 .malab-wordmark strong { font-size: 16px; }
  body.discuzx5 .dz_footc_bottom { padding: 20px 0; }
  body.discuzx5 .dz_footc_dico { float: none; margin-bottom: 16px; }
  body.discuzx5 .dz_footc_nav { line-height: 1.8; }
  .pg_forumdisplay #pgt, .pg_forumdisplay #pgbtn, .pg_viewthread #pgt, .pg_viewthread #pgtb { height: auto; }
  .pg_forumdisplay .pg, .pg_viewthread .pg { max-width: 100%; white-space: normal; }
  .pg_forumdisplay .pg label, .pg_viewthread .pg label { display: none; }
  .pg_forumdisplay .forumportal_listc { padding-left: 14px; padding-right: 14px; }
  .pg_forumdisplay .forumportal_listc .kmtitle { line-height: 1.7; height: auto; }
  .pg_forumdisplay .forumportal_listc .kmimg { max-width: 100%; }
  .pg_viewthread #postlist > table, .pg_viewthread #postlist .plhin { width: 100%; table-layout: fixed; }
  .pg_viewthread .posthead .pls, .pg_viewthread .ad, .pg_viewthread #f_pst .pls { display: none; }
  .pg_viewthread .plhin > tbody, .pg_viewthread .plhin > tbody > tr { display: block; }
  .pg_viewthread .plhin > tbody > tr > td.pls { display: block; box-sizing: border-box; width: 100%; padding: 12px 16px; border-right: 0; border-bottom: 1px solid #e8edf3; }
  .pg_viewthread .plhin > tbody > tr > td.plc { display: block; box-sizing: border-box; width: 100%; padding: 12px 16px; }
  .pg_viewthread .favatar { width: auto; }
  .pg_viewthread .favatar > div:not(.pi) { display: none; }
  .pg_viewthread .favatar .pi { margin: 0; padding: 0; border: 0; }
  .pg_viewthread .plc { padding-left: 16px; padding-right: 16px; min-width: 0; }
  .pg_viewthread .pi { height: auto; min-height: 28px; line-height: 1.8; overflow: visible; }
  .pg_viewthread #fj { display: none; }
  .pg_viewthread .t_fsz { min-height: 0; }
  .pg_viewthread .t_f { font-size: 14px; line-height: 1.9; }
  .pg_viewthread .t_f a { word-break: break-word; }
  .pg_viewthread .t_f pre, .pg_viewthread .blockcode { max-width: 100%; overflow-x: auto; }
  .pg_viewthread .vwthd .ts { font-size: 19px; line-height: 1.5; }
  body.discuzx5 #f_pst .px, body.discuzx5 #fastposteditor { box-sizing: border-box; max-width: 100%; }
}

@media (max-width: 600px) {
  body.discuzx5 #fastposteditor.hasfsl { margin-right: 0; width: 100%; }
  body.discuzx5 #fastsmiliesdiv { display: none; }
  body.discuzx5 #f_pst .tedt { width: auto; }
  body.discuzx5 #f_pst .bar { height: auto; min-height: 28px; }
  body.discuzx5 #f_pst .pnpost { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
  body.discuzx5 #f_pst .pnpost > a.y { float: none; order: 5; }
  .pg_forumdisplay .forumportal_listc .kmtit { height: auto; line-height: 1.7; white-space: normal; overflow: visible; font-size: 15px; }
  .pg_forumdisplay .forumportal_listc .kmtit .km_subject { word-break: normal; overflow-wrap: anywhere; }
  .pg_forumdisplay .forumportal_listc li .kmimg_box { width: 100%; max-width: 392px; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: none; grid-auto-rows: auto; }
  .pg_forumdisplay .forumportal_listc li .kmimg_box .kmshowimg { aspect-ratio: 1; height: auto; }
  .pg_forumdisplay .forumportal_listc li .kmimg_onebox { min-width: 0; max-width: 100%; }
}
body.discuzx5 .kmimg_onebox .kmimg.ml-image-unavailable { display: flex; align-items: center; justify-content: center; min-height: 96px; border: 1px dashed #d7e0eb; background: #f4f7fa; color: #8190a0; }
body.discuzx5 .kmimg_onebox .kmimg.ml-image-unavailable img { display: none; }
body.discuzx5 .kmimg_onebox .kmimg.ml-image-unavailable:before { content: "附图暂缺"; font-size: 12px; font-family: inherit; }

.pg_index #chart .chart a { white-space: nowrap; }

/* Subforums use the same compact icon treatment as the forum index. */
body.discuzx5.pg_forumdisplay .fl { border: 1px solid #e5eaf0; border-radius: 12px; background: #fff; overflow: hidden; }
body.discuzx5.pg_forumdisplay .fl .bm_h { margin: 0 20px; padding: 15px 0; height: auto; line-height: 1.6; border-bottom: 1px solid #edf0f4; }
body.discuzx5.pg_forumdisplay .fl .bm_h .o em { margin-top: 0; color: #8190a0; }
body.discuzx5.pg_forumdisplay .fl > .bm_c { padding: 0 20px 10px; }
body.discuzx5.pg_forumdisplay .fl td.fl_icn { box-sizing: content-box; width: 62px !important; height: auto; min-height: 0; padding: 14px 16px 14px 0 !important; margin: 0; border: 0; background: transparent; vertical-align: middle; }
body.discuzx5.pg_forumdisplay .fl td.fl_icn > a, body.discuzx5.pg_forumdisplay .fl .fl_icn_g { display: flex; align-items: center; justify-content: center; box-sizing: border-box; width: 62px !important; height: 62px; min-height: 62px; padding: 6px; border: 1px solid #edf1f5; border-radius: 12px; background: #fafbfd; }
body.discuzx5.pg_forumdisplay .fl .fl_icn_g > a { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
body.discuzx5.pg_forumdisplay .fl .fl_icn img, body.discuzx5.pg_forumdisplay .fl .fl_icn_g img { display: block; float: none; width: 48px !important; height: 48px !important; max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 7px; }
body.discuzx5.pg_forumdisplay .fl td { vertical-align: middle; }
body.discuzx5.pg_forumdisplay .fl td h2 { height: auto; font-size: 15px; line-height: 1.7; color: #21364d; }
body.discuzx5.pg_forumdisplay .fl td p { font-size: 12px; color: #8190a0; }
@media (max-width: 600px) {
 body.discuzx5.pg_forumdisplay .fl .fl_i, body.discuzx5.pg_forumdisplay .fl .fl_by { display: none; }
 body.discuzx5.pg_forumdisplay .fl td h2 { display: block; overflow: visible; white-space: normal; }
 body.discuzx5.pg_forumdisplay .fl td p { line-height: 1.8; overflow-wrap: anywhere; }
}

/* Hover menus must not show the focus ring created by programmatic focus. */
body.discuzx5 #hds .p_pop a { border: 0; border-radius: 0; }
body.discuzx5 #hds .p_pop a:hover { background: #f1f5f9; color: #315f91; text-decoration: none; }
body.discuzx5 #hds .p_pop a:focus-visible { outline: 2px solid #8cafd1; outline-offset: -3px; }
body.discuzx5[data-nav-input="pointer"] #hds .p_pop a:focus { outline: none; box-shadow: none; }

/* MALAB: retain the original acronym with a compact scientific identity. */
body.discuzx5 .malab-brand-v2 { gap: 10px; text-align: left; }
.malab-emblem { display: flex; align-items: center; justify-content: center; flex: 0 0 44px; width: 44px; height: 48px; color: #315f91; }
.malab-emblem svg { display: block; width: 44px; height: 44px; }
body.discuzx5 .malab-brand-v2 .malab-wordmark { gap: 2px; }
body.discuzx5 .malab-brand-v2 strong { font-size: 25px; line-height: 1.05; font-weight: 750; letter-spacing: 1.6px; color: #21364d; }
.malab-accent { color: #315f91; }
body.discuzx5 .malab-brand-v2 small { display: block; font-size: 11px; line-height: 1.5; font-weight: 500; color: #526c88; letter-spacing: .2px; }
.malab-fullname-tail { display: inline; }
.malab-english { display: block; font-size: 9px; line-height: 1.3; font-weight: 400; color: #8190a0; letter-spacing: .15px; }
body.discuzx5 .dz_nav .dzlogo:has(.malab-brand-v2):hover { text-decoration: none; }
@media (min-width: 861px) and (max-width: 1000px) {
 body.discuzx5 .dz_btm_layer.dz_nav { gap: 18px; }
 body.discuzx5 .dz_layer_nav > ul { gap: 16px; }
}
@media (max-width: 600px) {
 body.discuzx5 .malab-brand-v2 { gap: 8px; }
 .malab-emblem { flex-basis: 36px; width: 36px; }
 .malab-emblem svg { width: 36px; height: 40px; }
 body.discuzx5 .malab-brand-v2 strong { font-size: 23px; }
 body.discuzx5 .malab-brand-v2 small { font-size: 10px; line-height: 1.4; letter-spacing: .3px; }
 .malab-fullname-tail { display: block; }
 .malab-english { display: none; }
 body.discuzx5 .dz_nav .dz_nav_logo { height: 64px; }
}

/* Full-width MALAB masthead, above the independent sticky navigation. */
.malab-masthead { position: relative; background: linear-gradient(115deg, #fbfcf8 0%, #f6f9fc 60%, #edf3f9 100%); border-bottom: 1px solid #e3eaf0; }
.malab-masthead-inner { position: relative; box-sizing: border-box; display: flex; align-items: center; width: 1200px; max-width: calc(100vw - 64px); min-height: 148px; padding: 25px 0; margin: 0 auto; overflow: hidden; }
.malab-banner-brand { position: relative; z-index: 1; display: flex; align-items: center; gap: 24px; min-width: 0; color: #315f91; }
.malab-banner-brand:hover { text-decoration: none; }
.malab-banner-emblem { display: flex; align-items: center; flex: 0 0 88px; width: 88px; height: 94px; color: #315f91; }
.malab-banner-emblem svg { width: 88px; height: 94px; }
.malab-banner-copy { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.malab-banner-cn { display: block; color: #244c78; font-size: 27px; font-weight: 650; line-height: 1.5; letter-spacing: 1px; }
.malab-banner-cn-tail { display: inline; }
.malab-banner-en { display: block; font-family: Georgia, 'Times New Roman', serif; font-size: 27px; line-height: 1.4; color: #a14e52; letter-spacing: .1px; }
.malab-banner-en b { color: #315f91; font-weight: 700; }
.malab-banner-word { display: inline-block; white-space: nowrap; }
.malab-banner-abbreviation { display: inline-block; color: #315f91; font-weight: 700; white-space: nowrap; }
.malab-banner-network { position: absolute; right: -18px; top: 3px; width: 220px; height: 140px; color: #7c9fbe; opacity: .14; pointer-events: none; }
body.discuzx5 .dz_btm_layer.dz_nav { height: 58px; min-height: 58px; gap: 28px; padding: 0; }
body.discuzx5 .dz_layer_nav, body.discuzx5 .header-right { height: 58px; }
body.discuzx5 .dz_layer_nav ul li a { height: 58px; line-height: 58px; }
@media (max-width: 1120px) {
 .malab-banner-network { opacity: .08; }
 .malab-banner-cn { font-size: 24px; }
 .malab-banner-en { font-size: 24px; }
}
@media (max-width: 860px) {
 .malab-masthead-inner { max-width: calc(100vw - 32px); min-height: 136px; padding: 22px 0; }
 .malab-banner-brand { gap: 16px; }
 .malab-banner-emblem { flex-basis: 64px; width: 64px; height: 80px; }
 .malab-banner-emblem svg { width: 64px; height: 80px; }
 .malab-banner-cn { font-size: 21px; letter-spacing: .4px; }
 .malab-banner-en { font-size: 21px; }
 body.discuzx5 .dz_btm_layer.dz_nav { flex-wrap: nowrap; gap: 16px; height: 54px; min-height: 54px; padding: 0; }
 body.discuzx5 .dz_layer_nav { order: 0; flex: 1 1 0; height: 54px; }
 body.discuzx5 .dz_layer_nav > ul { justify-content: flex-start; gap: 20px; overflow-x: auto; }
 body.discuzx5 .dz_layer_nav ul li { flex: 0 0 auto; }
 body.discuzx5 .dz_layer_nav ul li a { height: 54px; line-height: 54px; }
 body.discuzx5 .dz_layer_dl { order: 1; margin-left: 0; }
 body.discuzx5 .header-right { height: 54px; }
}
@media (max-width: 600px) {
 .malab-masthead-inner { min-height: 154px; padding: 20px 0; }
 .malab-banner-brand { align-items: flex-start; gap: 12px; }
 .malab-banner-emblem { flex-basis: 42px; width: 42px; height: 60px; }
 .malab-banner-emblem svg { width: 42px; height: 60px; }
 .malab-banner-copy { gap: 7px; }
 .malab-banner-cn { font-size: 19px; line-height: 1.5; letter-spacing: .5px; }
 .malab-banner-cn-tail { display: block; }
 .malab-banner-en { font-size: 17px; line-height: 1.5; }
 .malab-banner-network { width: 150px; height: 110px; right: -35px; top: 20px; }
 body.discuzx5 .dz_btm_layer.dz_nav { gap: 12px; }
 body.discuzx5 .dz_layer_nav > ul { gap: 16px; }
}

@media (max-width: 600px) {
 .malab-banner-abbreviation { display: block; margin-top: 2px; letter-spacing: 1px; font-size: 16px; }
 .malab-banner-comma { display: none; }
}
