/*
 * Shiguang Notes visual layer for discuz_blog.
 *
 * This file intentionally contains presentation rules only. All Discuz!
 * templates, hooks, forms, ids, loops and JavaScript behaviour remain owned
 * by the original template files. The .discuzx5 scope keeps the touch theme
 * unchanged even though both variants share common/header_common.php.
 */




body.discuzx5 {
    --sg-paper: #faf7f0;
    --sg-paper-soft: #f2f3f5;

    --hl-color: #6654c9;
    --hl-colora: #6654c9;
    --aurora-a: #8b71ef;
    --aurora-b: #68cfda;
    --aurora-c: #f3b5cf;
    --hl-bodybg: #f3f4fc;
    --aurora-soft: #eeebfc;
    --hl-fb: #626781;

    --sg-ink: #333333;
    --sg-muted: #7f7a70;
    --sg-line: #f1f1f1;
    --sg-green: #444444;
    --sg-red: #0066FF;
    --sg-shadow: 0 12px 32px rgba(48, 35, 21, .08);
    --dz-bodybg: #F7F9FA;
    --dz-color: #0066FF;
    --dz-alink: #333;
    --dz-ahover: var(--dz-color);
    --dz-ahot: #F26C4F;
    --dz-fa: #333;
    --dz-fb: #666;
    --dz-fc: #999;
    --dz-fd: #ccc;
    --dz-ff: #FFF;
    --dz-nvbg: #0066FF;
    --dz-nvtxt: #0066ff;
    --dz-nvbga: #0051CC;
    --dz-nvtxta: #FFF;
    --dz-bga: #d6e4ff;
    --dz-bgb: #E5EDF2;
    --dz-bgc: #F9f9f9;
    --dz-bgd: #d6e4ff;
    --dz-bgf: #FFF;
    --dz-bgfglass: rgba(255, 255, 255, .4);
    --dz-bgbglass: rgba(0, 0, 0, .4);
    --dz-btnbg: #d6e4ff;
    --dz-btntxt: #0066ff;
    --dz-btnbga: #0066ff;
    --dz-btntxta: #ffffff;
    --dz-bordera: #CCC;
    --dz-borderb: #eeeeee;
    --dz-borderc: #e3e3e3;
    --dz-borderd: #d6e4ff;
    --dz-radius-s: 6px;
    --dz-radius-m: 9px;
    --dz-radius-xl: 12px;
    --dz-radius-b: 7px;
    --dz-shadow:0 0 2px 0 rgba(88,118,138,.1);
    --song-serif: "PingFang SC", "Microsoft YaHei", sans-serif;
    margin: 0;
    color: var(--sg-ink);
    font-family: "PingFang SC", "Noto Serif SC", "Songti SC", "Microsoft YaHei", sans-serif;

    /*background: radial-gradient(ellipse at 4% 10%,*/
    /*color-mix(in srgb, #ebe0ec 14%, transparent), transparent 5%), radial-gradient(ellipse at 98% 40%,*/
    /*color-mix(in srgb, var(--aurora-b) 10%, transparent), transparent 48%), var(--hl-bodybg);*/

    isolation: isolate;
    color: #242640;



      
}

body.discuzx5 a {
    transition: color .18s ease, border-color .18s ease, background-color .18s ease, transform .18s ease;
}

body.discuzx5 .wp,
body.discuzx5.dz_wide .wp,
body.discuzx5 .dz_btm_layer {
    /*width: min(1180px, calc(100% - 48px));*/
    min-width: 0;
    /*max-width: 1180px;*/
    /*margin-left: auto;*/
    /*margin-right: auto;*/
    box-sizing: border-box;
}


body.discuzx5 #pt {
    margin: 18px auto;
    padding: 0 2px;
    background: transparent;
    border: 0 !important;
    box-shadow: none;
}

body.discuzx5 #pt .z,
body.discuzx5 #pt .z a,
body.discuzx5 #pt .z em,
body.discuzx5 #pt .z span {
    color: #91887d;
}

/* Header */
body.discuzx5 #dz_btm_layer.topbox {
    position: sticky;

    z-index: 199;
}



body.discuzx5 .dz_btm_layer {

    align-items: center;
    padding: 0;
}

body.discuzx5 .dz_layer_nav {
    height: 60px;
    line-height: 60px;
    align-items: center;
}


body.discuzx5 .header-searcher {
    margin-right: 14px;
}

body.discuzx5 .header-searcher .search-input {
    width: 180px !important;
    height: 28px;

    border: 1px solid var(--sg-line);
    border-radius: 10px;
    background: rgba(255, 253, 248, .72);
    color: var(--sg-ink);
}

body.discuzx5 .header-searcher .search-icon {
    width: 44px;
    height: 44px;
    background-image: url(../svg/search.svg);
}

body.discuzx5 .header-user-login .login_btn {
    margin-right: 0;
    padding: 5px 15px;
    border-radius: 9px;
    background: var(--sg-red);
    box-shadow: 0 10px 22px rgba(189, 77, 56, .18);
}

body.discuzx5 .header-user-login .login_btn a {
    color: #fff;
}

body.discuzx5 .header-user-login1 .login_btn {
    margin-right: 0;
    padding: 5px 15px;
    border-radius: 9px;
    background: var(--sg-red);
    box-shadow: 0 10px 22px rgba(189, 77, 56, .18);
}

body.discuzx5 .header-user-login1 .login_btn a {
    color: #fff;
}


body.discuzx5 .header-user-avatar img {
    width: 35px;
    height: 35px;
    border: 2px solid rgba(255, 253, 248, .9);
    border-radius: 50%;
    box-shadow: 0 3px 12px rgba(48, 35, 21, .12);
}

/* Cards and common controls */
body.discuzx5 .bm,
body.discuzx5 .bn,
body.discuzx5 .km_mbm {
    margin-bottom: 18px;
}

body.discuzx5 .bm:not(.bw0),
body.discuzx5 .dz_bm,
body.discuzx5 .ct2 .sd .bm,
body.discuzx5 .ct2 .mn .bm,
body.discuzx5 .portal_side .drag > .area > .block {
    /*border: 1px solid #f5f5f5 !important;*/
    border-radius: 9px;
    /*background: #FFFFFF;*/
    /*box-shadow: var(--sg-shadow);*/
}

body.discuzx5 .bm_h h1,
body.discuzx5 .bm_h h2,
body.discuzx5 .bm_h h3,
body.discuzx5 .bm_h strong,
body.discuzx5 .ts,
body.discuzx5 .xs2 {
    font-family: "PingFang SC", "Noto Serif SC", "Songti SC", "Microsoft YaHei", sans-serif;
}

body.discuzx5 .pn,
body.discuzx5 .pnc,
body.discuzx5 a.pnc,
body.discuzx5 .pgsbtn,
body.discuzx5 .dz_rbox_btn {
    border-radius: 7px;
    background: var(--sg-red);
    color: #fff !important;
    box-shadow: 0 8px 18px rgba(189, 77, 56, .14);
}

body.discuzx5 .px,
body.discuzx5 .pt,
body.discuzx5 .ps,
body.discuzx5 select,
body.discuzx5 textarea {
    border-color: var(--sg-line);
    border-radius: 4px;
    background: #F9F9F9;
}

body.discuzx5 .p_pop,
body.discuzx5 .p_pof,
body.discuzx5 .sllt {
    border: 1px solid var(--sg-line);
    border-radius: 9px;
    background: var(--sg-paper-soft);
    box-shadow: var(--sg-shadow);
}

/* Aggregated blog home: category tabs + article list + DIY sidebar. */


body.discuzx5 .portal_container_wrap {
    display: grid;
    grid-template-columns: minmax(0, 1.76fr) minmax(280px, .88fr);
    gap: 20px;
    margin-top: 0px;
}

body.discuzx5 .timeline_container {
    min-width: 0;
    margin: 0;
}

body.discuzx5 .timeline_content {
    display: block;
}

body.discuzx5 .portal_nav {
    position: static;
    width: auto;
    max-height: none;
    margin: 0;
    overflow: visible;
    border: 1px solid var(--sg-line);
    border-bottom: 0;
    border-radius: 9px 9px 0 0;
    background:#FFFFFF;
    box-shadow: var(--sg-shadow);
}

body.discuzx5 .portal_nav_container {
    min-width: 0;
    height: auto;
    padding: 0 26px;
    overflow-x: auto;
    overflow-y: hidden;
}

body.discuzx5 .portal_nav ul {
    display: flex;
    gap: 36px;
    min-width: max-content;
    border-bottom: 1px solid var(--sg-line);
}

body.discuzx5 .portal_nav li a {
    position: relative;
    padding: 22px 0 20px;
    border-radius: 0;
    background: transparent !important;
    color: var(--sg-muted) !important;
    font-size: 16px;
}

body.discuzx5 .portal_nav li.a a,
body.discuzx5 .portal_nav li a:hover {
    color: var(--sg-ink) !important;
}

body.discuzx5 .portal_nav li.a a::after {
    position: absolute;
    right: 0;
    bottom: -1px;
    left: 0;
    height: 3px;
    border-radius: 2px;
    background: var(--sg-red);
    content: "";
}

body.discuzx5 .timeline_entry_list {
    float: none;
    width: auto;
}

body.discuzx5 .timeline_entry_list_container {
    padding: 0 26px 12px;
    border: 1px solid var(--sg-line);
    border-top: 0;
    border-radius: 0 0 9px 9px;
    background: #FFFFFF;
    box-shadow: var(--sg-shadow);
}

body.discuzx5 .portal_side {
    float: none;
    width: auto;
}



body.discuzx5 #ct.ct2:not(:has(> .sd > *)) > .mn {
    float: none;
    width: 100%;
}

body.discuzx5 #ct.ct2:not(:has(> .sd > *)) > .sd {
    display: none;
}

body.discuzx5 .portal_side .bm_h h2,
body.discuzx5 .portal_side .blocktitle {
    font-family: "PingFang SC", "Noto Serif SC", "Songti SC", "Microsoft YaHei", sans-serif;
    font-size: 22px;
}

/* Article rows shared by the aggregate and forum list pages. */
body.discuzx5 .forumportal_listc {
    margin-bottom: 0;
}

body.discuzx5 .forumportal_listc li.kmlist {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto auto;
    column-gap: 10px;

    border-top: 1px solid var(--sg-line);
}

body.discuzx5 .forumportal_listc li.kmlist:first-child {
    border-top: 0;
}

body.discuzx5 .forumportal_listc li.kmlist > .kmtit {
    grid-column: 1;
    grid-row: 1;
    height: auto;
    /*margin: 4px 0 10px;*/
    overflow: visible;
    white-space: normal;
    font-family: "PingFang SC", "Noto Serif SC", "Songti SC", "Microsoft YaHei", sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
}

body.discuzx5 .forumportal_listc li.kmlist > .kmtxt {
    grid-column: 1;
    grid-row: 2;
    max-height: 24px;
    margin: 0 0 2px;
    color: var(--sg-muted);
    font-size: 12px;
    line-height: 1.85;
}

body.discuzx5 .forumportal_listc li.kmlist > .kmfoot {
    grid-column: 1;
    grid-row: 3;
    align-self: end;
    height: auto;
    min-height: 24px;
    margin: 0;
    color: var(--sg-muted);
    line-height: 24px;
}

body.discuzx5 .forumportal_listc li.kmlist > .kmimg_onebox,
body.discuzx5 .forumportal_listc li.kmlist > .kmimg_box {

    grid-row: 1 / span 3;
    width: 90px !important;
    height: 70px;
    min-width: 0;
    max-width: none;
    margin: 0;
    overflow: hidden;
    border-radius: 7px;
    background: #eee7dc;
}

/*body.discuzx5 .forumportal_listc li.kmlist > .kmimg_onebox .kmimg,*/
/*body.discuzx5 .forumportal_listc li.kmlist > .kmimg_box .kmshowimg:first-child {*/
/*    display: block;*/
/*    width: 100%;*/
/*    max-width: none;*/
/*    height: 100%;*/
/*    margin: 0;*/
/*    padding: 0;*/
/*}*/

/*body.discuzx5 .forumportal_listc li.kmlist > .kmimg_box .kmshowimg:not(:first-child) {*/
/*    display: none;*/
/*}*/

body.discuzx5 .forumportal_listc li.kmlist > .kmimg_onebox img,
body.discuzx5 .forumportal_listc li.kmlist > .kmimg_box img {
    position: static;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/*body.discuzx5 .forumportal_listc li.kmlist:not(:has(> .kmimg_onebox, > .kmimg_box)) {*/
/*    grid-template-columns: minmax(0, 1fr);*/
/*}*/

/*body.discuzx5 .forumportal_listc li.kmlist:not(:has(> .kmimg_onebox, > .kmimg_box)) > .kmtit,*/
/*body.discuzx5 .forumportal_listc li.kmlist:not(:has(> .kmimg_onebox, > .kmimg_box)) > .kmtxt,*/
/*body.discuzx5 .forumportal_listc li.kmlist:not(:has(> .kmimg_onebox, > .kmimg_box)) > .kmfoot {*/
/*    grid-column: 1;*/
/*}*/

/*body.discuzx5 .forumportal_listc .kmfoot .kmimg {*/
/*    width: 22px;*/
/*    height: 22px;*/
/*    margin-right: 8px;*/
/*}*/

/*body.discuzx5 .forumportal_listc .kmfoot .kmico_bk {*/
/*    padding: 2px 9px;*/
/*    border-radius: 5px;*/
/*    background: #F5F5F5;*/
/*    color: var(--sg-green);*/
/*}*/


/*body.discuzx5 .forumportal_listc .kmtit span.kmding,*/
/*body.discuzx5 .forumportal_listc .kmtit span.kmjing {*/
/*    background: var(--sg-red);*/
/*}*/

/* Aggregate-home DIY feature module: a five-slide lead story plus two cards. */
body.discuzx5 #diy1 .sg-diy-feature-frame,
body.discuzx5 #diy1 .sg-diy-feature-frame > .column,
body.discuzx5 #diy1 .sg-diy-feature-block,
body.discuzx5 #diy1 .sg-diy-feature-block .dxb_bc {
    width: 100%;
    margin: 0;
    padding: 0;
}

body.discuzx5 .sg-diy-feature-grid {
    position: relative;
    display: grid;


    /* margin-top: 34px; */
}

body.discuzx5 .sg-diy-feature-grid:has(.sg-diy-feature-item--6) {
  grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

body.discuzx5 .sg-diy-feature-card {
    min-width: 0;
    min-height: 394px;
    margin-top: 20px;
}

body.discuzx5 .sg-diy-feature-card {
    position: relative;
    overflow: hidden;
    border-radius: 9px;
    background: #292620;
}

body.discuzx5 .sg-diy-feature-card__media,
body.discuzx5 .sg-diy-feature-card__shade {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
}

body.discuzx5 .sg-diy-feature-card__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s ease;
}

body.discuzx5 .sg-diy-feature-card:hover .sg-diy-feature-card__media img {
    transform: scale(1.025);
}

body.discuzx5 .sg-diy-feature-card__shade {
    z-index: 1;
    background: linear-gradient(180deg, rgba(0, 0, 0, .04) 5%, rgba(0, 0, 0, .16) 42%, rgba(0, 0, 0, .82) 100%);
    pointer-events: none;
}

body.discuzx5 .sg-diy-feature-card__content {
    position: absolute;
    z-index: 2;
    right: 34px;
    bottom: 30px;
    left: 34px;
    color: #fff;
    pointer-events: none;
}

body.discuzx5 .sg-diy-feature-card__content a {
    color: inherit !important;
    pointer-events: auto;
}

body.discuzx5 .sg-diy-feature-tag {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    box-sizing: border-box;
    padding: 4px 12px;
    border-radius: 6px;
    background: var(--sg-red);
    color: #fff !important;
    font-size: 13px;
    font-weight: 700;
    line-height: 20px;
}

body.discuzx5 .sg-diy-feature-tag--green {
    background: var(--sg-green);
}

body.discuzx5 .sg-diy-feature-tag:empty {
    display: none;
}

body.discuzx5 .sg-diy-feature-summary {
    display: -webkit-box;
    max-width: 700px;
    margin: 0 0 20px;
    overflow: hidden;
    color: rgba(255, 255, 255, .9);
    font-size: 15px;
    line-height: 1.8;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

body.discuzx5 .sg-diy-feature-meta,
body.discuzx5 .sg-diy-feature-author {
    display: flex;
    align-items: center;
}

body.discuzx5 .sg-diy-feature-meta {
    flex-wrap: wrap;
    gap: 10px 16px;
    color: rgba(255, 255, 255, .9);
    font-size: 14px;
    line-height: 30px;
}

body.discuzx5 .sg-diy-feature-author {
    gap: 9px;
}

body.discuzx5 .sg-diy-feature-author img {
    width: 30px;
    height: 30px;
    border: 2px solid rgba(255, 255, 255, .72);
    border-radius: 50%;
    object-fit: cover;
}

body.discuzx5 .sg-diy-feature-dots {
    position: absolute;
    z-index: 4;
    right: 30px;
    bottom: 30px;
    display: flex;
    gap: 10px;
}

body.discuzx5 .sg-diy-feature-dots button {
    width: 10px;
    height: 10px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .86);
    cursor: pointer;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, .08);
    transition: background-color .2s ease, transform .2s ease;
}

body.discuzx5 .sg-diy-feature-dots button:hover,
body.discuzx5 .sg-diy-feature-dots button:focus-visible {
    transform: scale(1.18);
}

body.discuzx5 .sg-diy-feature-dots button.is-active {
    background: var(--sg-red);
}

body.discuzx5 .sg-diy-feature-grid > .sg-diy-feature-card:nth-of-type(-n + 5) {
    grid-column: 1;
    grid-row: 1 / span 2;
    visibility: hidden;
    z-index: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity .55s ease, visibility .55s ease;
}

body.discuzx5 .sg-diy-feature-grid > .sg-diy-feature-item--1,
body.discuzx5 .sg-diy-feature-grid.has-js > .sg-diy-feature-card.is-active {
    visibility: visible;
    z-index: 1;
    opacity: 1;
    pointer-events: auto;
}

body.discuzx5 .sg-diy-feature-grid.has-js > .sg-diy-feature-item--1:not(.is-active) {
    visibility: hidden;
    z-index: 0;
    opacity: 0;
    pointer-events: none;
}

body.discuzx5 .sg-diy-feature-grid > .sg-diy-feature-item--6 {
    grid-column: 2;
    grid-row: 1;
    min-height: 198px;
}

body.discuzx5 .sg-diy-feature-grid > .sg-diy-feature-item--7 {
    grid-column: 2;
    grid-row: 2;
    min-height: 198px;
    margin-top: 0;
}

body.discuzx5 .sg-diy-feature-grid > .sg-diy-feature-card:nth-of-type(-n + 5) h2 {
    max-width: 720px;
    margin: 16px 0 10px;
    font-family: "PingFang SC", "Noto Serif SC", "Songti SC", "Microsoft YaHei", sans-serif;
    font-size: clamp(30px, 3.1vw, 42px);
    font-weight: 600;
    line-height: 1.25;
    text-wrap: balance;
}

body.discuzx5 .sg-diy-feature-grid > .sg-diy-feature-card:nth-of-type(-n + 5) .sg-diy-feature-tag--category,
body.discuzx5 .sg-diy-feature-grid > .sg-diy-feature-card:nth-of-type(n + 6) .sg-diy-feature-tag--lead,
body.discuzx5 .sg-diy-feature-grid > .sg-diy-feature-card:nth-of-type(n + 6) .sg-diy-feature-summary,
body.discuzx5 .sg-diy-feature-grid > .sg-diy-feature-card:nth-of-type(n + 6) .sg-diy-feature-author {
    display: none !important;
}

body.discuzx5 .sg-diy-feature-grid > .sg-diy-feature-card:nth-of-type(n + 6) .sg-diy-feature-card__content {
    right: 22px;
    bottom: 22px;
    left: 22px;
}

body.discuzx5 .sg-diy-feature-grid > .sg-diy-feature-card:nth-of-type(n + 6) h2 {
    display: -webkit-box;
    margin: 14px 0 8px;
    overflow: hidden;
    font-family: "PingFang SC", "Noto Serif SC", "Songti SC", "Microsoft YaHei", sans-serif;
    font-size: 22px;
    font-weight: 600;
    line-height: 1.3;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

body.discuzx5 .sg-diy-feature-grid > .sg-diy-feature-card:nth-of-type(n + 6) .sg-diy-feature-meta {
    gap: 8px;
}

body.discuzx5 .sg-diy-feature-grid > .sg-diy-feature-card:nth-of-type(n + 6) .sg-diy-feature-date::after {
    margin-left: 8px;
    content: "·";
}

body.discuzx5 .sg-diy-feature-grid > .sg-diy-feature-dots {
    position: relative;
    right: auto;
    bottom: auto;
    grid-column: 1;
    grid-row: 1 / span 2;
    align-self: end;
    justify-self: end;
    margin: 0 30px 30px 0;
}

body.discuzx5 .portal_container .timeline_entry_list_container {
    padding: 0 26px 24px;
}



/* Forum index and category pages. */
body.discuzx5 #chart {
    margin: 26px 0 22px;
    padding: 18px 22px;
    border: 1px solid var(--sg-line);
    border-radius: 9px;
    background: #FFFFFF !important;
    box-shadow: var(--sg-shadow);
}


body.discuzx5 .fl.bm{border: 0!important;background: none;}
body.discuzx5 .fl .bm_h,
body.discuzx5 .boardnav .bml > .bm_h {
    padding: 0px 20px;
    border-bottom: 1px solid var(--sg-line);
    margin: 0;
}

body.discuzx5 .fl .bm_h h2,
body.discuzx5 .boardnav .bml h1 {
    color: var(--sg-ink);
    font-family: "PingFang SC", "Noto Serif SC", "Songti SC", "Microsoft YaHei", sans-serif;
    font-size: 24px;
}

body.discuzx5 .fl_tb td.fl_g {
    padding: 20px;
    border-radius: 9px;
}

body.discuzx5 .fl_tb td.fl_g:hover {
    background: rgba(241, 236, 227, .62);
}

body.discuzx5 .dz_list_top {
    margin: 0;
    padding: 10px 20px 10px;
    border-radius: 0;
    background: transparent;
}

body.discuzx5 #threadlist > .bm_c {
    padding: 0 26px 12px;
}

body.discuzx5 #autopbn,
body.discuzx5 .pgbtn a {
    margin: 18px auto;
    border: 1px solid #dae9ff;
    border-radius: 7px;
    background: #f2f3f5;
    color: var(--sg-muted);
}

body.discuzx5 .pgbtn #buttonss {
    width: 100%;
    height: 40px;
    cursor: pointer;
    border: 1px solid #dae9ff;
    border-radius: 7px;
    background: #f2f3f5;
    color: var(--sg-muted);
}

body.discuzx5 .boardnav > #ct > .mn > .bml {
    position: relative;
    margin-bottom: 24px;
}

/* Forum list heading mirrors the category-page hero from the static reference. */
body.discuzx5 .boardnav .sg-forum-page-heading {
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
    /*min-height: 240px;*/
    padding: 0;
    background:
        linear-gradient(120deg, rgba(255, 253, 248, .94), rgba(255, 253, 248, .76)),
        radial-gradient(circle at 88% 22%, rgba(189, 77, 56, .16), transparent 20%),
        radial-gradient(circle at 72% 80%, rgba(74, 133, 119, .15), transparent 28%);
}

body.discuzx5 .boardnav .sg-forum-page-heading > .bm_h.sg-forum-page-heading__content {
    position: relative;
    z-index: 1;
    box-sizing: border-box;
    min-height: 120px;
    padding: 20px;
    border: 0;
    background: transparent;
    margin: 0;
    background: radial-gradient(ellipse at 100% 0,
    color-mix(in srgb, var(--aurora-b) 24%, transparent), transparent 60%), linear-gradient(130deg, var(--dz-ff), var(--aurora-soft));
}

body.discuzx5 .sg-forum-page-heading__tag {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    box-sizing: border-box;
    height: 28px;
    padding: 0 12px;
    border-radius: 5px;
    background: var(--sg-red);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
}

body.discuzx5 .boardnav .sg-forum-page-heading h1 {
    margin: 2px 0 12px;
    font-size: 28px !important;
    font-weight: 500;
    line-height: 1.18;
    letter-spacing: 1px;
    font-family:var(--song-serif)

}

body.discuzx5 .boardnav .sg-forum-page-heading h1 a {
    color: var(--sg-ink);
}

body.discuzx5 .sg-forum-page-heading__intro {
    position: relative;
    z-index: 1;
    max-width: 680px;
    margin: 0;
    overflow: hidden;
    color: var(--hl-fb);
    font-size: 14px;
    line-height: 1.9;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

body.discuzx5 .sg-forum-page-heading__intro > * {
    display: inline;
    margin: 0;
}

body.discuzx5 .sg-forum-page-heading__rules-link {
    position: absolute;
    top: 53px;
    left: 112px;
    display: inline-flex;
    gap: 5px;
    align-items: center;
    box-sizing: border-box;
    height: 28px;
    margin: 0;
    padding: 0 10px;
    border: 1px solid rgba(189, 77, 56, .22);
    border-radius: 5px;
    background: rgba(189, 77, 56, .06);
    color: var(--sg-red);
    font-size: 13px;
    line-height: 1;
}

body.discuzx5 .sg-forum-page-heading__rules-link em {
    display: none;
}

body.discuzx5 .boardnav .sg-forum-page-heading > .sg-forum-page-heading__meta {
    position: relative;
    z-index: 2;
    margin: -20px 42px 28px;
    padding: 18px 20px;
}

body.discuzx5 .sg-forum-page-heading__meta:has(> .sg-forum-rules-panel[style*="display:none"]):not(:has(> .sg-forum-page-heading__extra)) {
    display: none;
}

/* Thread type filter: keep the native filter links and fold script, restyle only. */
body.discuzx5 #thread_types.ttp {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    height: auto !important;
    margin: 0 0 22px;
    padding: 16px 18px;
    border: 1px solid var(--sg-line);
    border-radius: 9px;
    background: rgba(255, 253, 248, .82);

}

body.discuzx5 #thread_types.ttp li {
    float: none;
    padding: 0;
}

body.discuzx5 #thread_types.ttp a,
body.discuzx5 #thread_types.ttp strong {
    display: inline-flex;
    float: none;
    align-items: center;
    min-height: 36px;
    box-sizing: border-box;
    margin: 0;
    padding: 0 14px;
    border: 1px solid var(--sg-line);
    border-radius: 7px;
    background: #F0F0F0;
    color: #6f675f !important;
    line-height: 1.2;
    text-decoration: none;
    transition: border-color .18s ease, background-color .18s ease, color .18s ease;
}

body.discuzx5 #thread_types.ttp li:not(.a) a:hover,
body.discuzx5 #thread_types.ttp li:not(.a) strong:hover {
    border-color: rgba(74, 133, 119, .48);
    background: rgba(74, 133, 119, .08);
    color: var(--sg-green) !important;
}

body.discuzx5 #thread_types.ttp li.a a,
body.discuzx5 #thread_types.ttp li.a strong {
    border-color: var(--sg-red);
    background: var(--sg-red);
    color: #fff !important;
    box-shadow: 0 5px 14px rgba(189, 77, 56, .16);
}

body.discuzx5 #thread_types.ttp .num {
    display: inline-block;
    min-width: 20px;
    height: 20px;
    box-sizing: border-box;
    margin-left: 7px;
    padding: 0 6px;
    border-radius: 10px;
    background: rgba(74, 133, 119, .13);
    color: var(--sg-green) !important;
    font-size: 12px;
    font-weight: 600;
    line-height: 20px;
    text-align: center;
}

body.discuzx5 #thread_types.ttp li.a .num {
    background: rgba(255, 255, 255, .24);
    color: #fff !important;
}

body.discuzx5 .thread_fold {
    color: var(--sg-muted);
    font-weight: 500;
    transition: color .18s ease;
}

body.discuzx5 .thread_fold:hover {
    color: var(--sg-red);
}

/* Thread detail: preserve Discuz table structure, present it as a reading card. */
body.discuzx5.dz_pg_viewthread #ct {
    max-width: none;
    min-width: 0;
}

body.discuzx5 #postlist {
    overflow: hidden;
    /*border: 1px solid var(--sg-line) !important;*/
    border-radius: 9px;
    /*background: #FFFFFF;*/
    /*box-shadow: var(--sg-shadow);*/
}

body.discuzx5 #postlist .posthead {
    /*border-bottom: 1px solid var(--sg-line);*/
    background:
        radial-gradient(circle at 88% 22%, rgba(189, 77, 56, .12), transparent 22%),
        radial-gradient(circle at 72% 80%, rgba(74, 133, 119, .12), transparent 30%),
        rgba(255, 253, 248, .92);
}



body.discuzx5 #postlist .posthead .ts {
    margin: 8px 0 12px;
    font-size: 24px;
    font-weight: 600;
    line-height: 1.25;
}

body.discuzx5 #postlist .posthead .side_btn svg path:last-child {
    fill: var(--sg-red);
}

/* Article-detail hero: native thread data, Shiguang static-page composition. */
body.discuzx5 #postlist .posthead.sg-thread-hero,
body.discuzx5 #postlist .posthead.sg-thread-hero > tbody,
body.discuzx5 #postlist .posthead.sg-thread-hero > tbody > tr {
    display: block;
    width: 100%;
}

body.discuzx5 #postlist .posthead.sg-thread-hero {
    position: relative;
    min-height: 110px;
    overflow: hidden;
    border: 0;
    background:
        radial-gradient(circle at 84% 24%, rgba(189, 56 ,141, .20), transparent 25%),
        radial-gradient(circle at 68% 76%, rgba(74, 133, 119, .18), transparent 32%),
        #f8f8f8;
    /*margin-bottom: 40px;*/
}

body.discuzx5 #postlist .posthead.sg-thread-hero .pls {
    display: none;
}



body.discuzx5 .sg-thread-hero__media,
body.discuzx5 .sg-thread-hero__shade {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

body.discuzx5 .sg-thread-hero__media {
    object-fit: cover;
    object-position: center;
}

body.discuzx5 .sg-thread-hero__shade {
    z-index: 1;
    background: linear-gradient(180deg, rgba(14, 12, 10, .06) 8%, rgba(14, 12, 10, .18) 42%, rgba(14, 12, 10, .82) 100%);
}

body.discuzx5 .sg-thread-hero:not(.has-cover) .sg-thread-hero__shade {
    background:
        linear-gradient(135deg, transparent 50%, rgba(189, 77, 56, .07)),
        linear-gradient(180deg, transparent, rgba(255, 253, 248, .34));
}




body.discuzx5 .sg-thread-hero__tag {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    box-sizing: border-box;
    padding: 4px 12px;
    border-radius: 6px;
    background: var(--sg-red);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    line-height: 20px;
}

body.discuzx5 #postlist .posthead.sg-thread-hero .ts {

    color: inherit;
    font-family: "PingFang SC", "Noto Serif SC", "Songti SC", "Microsoft YaHei", sans-serif;
    font-size:18px !important;
    font-weight: 600;
    line-height: 1.18;


}

body.discuzx5 #postlist .posthead.sg-thread-hero .ts a,
body.discuzx5 #postlist .posthead.sg-thread-hero .ts span {
    color: inherit !important;
}

body.discuzx5 #postlist .posthead.sg-thread-hero > tbody > tr > .plc > .xg1 {
    display: inline-flex;
    align-items: center;
    margin: -12px 0 16px;
    color: var(--sg-muted);
}

body.discuzx5 .sg-thread-hero__meta,
body.discuzx5 .sg-thread-hero__author {
    display: flex;
    align-items: center;
}

body.discuzx5 .sg-thread-hero__meta {
    flex-wrap: wrap;
    gap: 12px 18px;
    color: var(--sg-muted);
    font-size: 14px;
    line-height: 38px;
}


body.discuzx5 .sg-thread-hero__author {
    gap: 5px;
    color: inherit !important;
}

body.discuzx5 .sg-thread-hero__avatar {
    display: inline-flex;
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, .78);
    border-radius: 50%;
    background: #e9e2d8;
    color: var(--sg-red);
    object-fit: cover;
    text-align: center;
}

body.discuzx5 .sg-thread-hero__avatar--anonymous {
    font-weight: 700;
    line-height: 34px;
}

body.discuzx5 #postlist .posthead.sg-thread-hero .side_btn {
    display: none;
}

body.discuzx5 #postlist .sg-first-post .sg-post-native-meta {
    display: none;
}

body.discuzx5 #postlist .sg-first-post {
    background-color: #FFFFFF;
}
body.discuzx5 #postlist .sg-reply-post {
    background-color: #FFFFFF;
}
body.discuzx5 .pinglun .sg-reply-post {
    background-color: #FFFFFF;
}


body.discuzx5 #postlist .sg-first-post .pi {
    min-height: 28px;
    padding: 10px 22px;
    border-color: var(--sg-line);
    background: rgba(255, 253, 248, .82);
}

body.discuzx5 #postlist .viewthread_table,
body.discuzx5 #postlist > div[id^="post_"] {
    border-color: var(--sg-line);
}

body.discuzx5 #postlist .plc {
    background: transparent;
}

body.discuzx5 #postlist .pls {
    background: rgba(241, 236, 227, .52);
    border-color: var(--sg-line);
}

body.discuzx5 #postlist .t_f,
body.discuzx5 #postlist .t_fsz,
body.discuzx5 #postlist .pcb {
    color: #5f594f;
    font-size: 14px;
    /*line-height: 2;*/
}

body.discuzx5 #postlist .t_f h1,
body.discuzx5 #postlist .t_f h2,
body.discuzx5 #postlist .t_f h3 {
    margin: 30px 0 14px;
    font-family: "PingFang SC", "Noto Serif SC", "Songti SC", "Microsoft YaHei", sans-serif;
    line-height: 1.4;
}

body.discuzx5 #postlist .t_f blockquote,


body.discuzx5 #postlist .pi,
body.discuzx5 #postlist .po,
body.discuzx5 #postlist .pob {
    border-color: var(--sg-line);
}

/* Native thread actions: links and onclick handlers remain untouched. */
body.discuzx5 #postlist #p_btn {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin: 30px 0 36px !important;
    padding: 0 28px;
}

body.discuzx5 #postlist #p_btn > a {
    display: inline-flex;
    float: none;
    align-items: center;
    min-height: 40px;
    box-sizing: border-box;
    margin: 0;
    padding: 0 17px;
    border: 1px solid var(--sg-line);
    border-radius: 7px;
    color: #6f675f !important;
    line-height: 1;
    text-decoration: none;
    box-shadow: none;
    transition: transform .18s ease, border-color .18s ease, background-color .18s ease, color .18s ease;
}

body.discuzx5 #postlist #p_btn > a > i {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-style: normal;
}

body.discuzx5 #postlist #p_btn > a em {
    margin: 0;
    color: var(--sg-green) !important;
    font-size: 18px;
}

body.discuzx5 #postlist #p_btn #k_favorite em,
body.discuzx5 #postlist #p_btn #recommend_add em {
    color: var(--sg-red) !important;
}

body.discuzx5 #postlist #p_btn #recommend_subtract em {
    color: #8e867c !important;
}

body.discuzx5 #postlist #p_btn > a:hover {
    transform: translateY(-1px);
    border-color: rgba(189, 77, 56, .42);
    background: rgba(189, 77, 56, .08);
    color: var(--sg-red) !important;
}

body.discuzx5 #postlist #p_btn span {
    margin-left: 1px;
    color: inherit !important;
    font-size: 12px;
}

body.discuzx5 #f_pst,
body.discuzx5 .fastpost {
    overflow: hidden;
    /* border: 1px solid var(--sg-line) !important;
     border-radius: 9px;*/
    border-radius: 9px 9px 0 0;
    background: #FFFFFF;
    box-shadow: var(--sg-shadow);
}

/* Footer and floating tools. */
body.discuzx5 .dz_footc {
    margin-top: 42px;
    border-top: 1px solid var(--sg-line);
    background:#FFFFFF !important;
    box-shadow: none;
}

body.discuzx5 .dz_footc_nav {
    padding: 24px 0 18px;
    border-color: var(--sg-line) !important;
}

body.discuzx5 .dz_footc_copy,
body.discuzx5 .dz_footc_copy a,
body.discuzx5 .dz_footc_nav a,
body.discuzx5 .dz_footc_nav .pipe {
    color: #8e867c !important;
}

body.discuzx5 .dz_footc_dico {
    background: transparent;
}

body.discuzx5 .dz_rnav a {
    border: 1px solid var(--sg-line);
    border-radius: 50%;
    background: rgba(255, 253, 248, .94);
    color: var(--sg-red);
    box-shadow: var(--sg-shadow);
}

body.discuzx5 .dz_rnav a:hover {
    background: var(--sg-red);
    color: #fff;
}

@media (max-width: 1180px) {


    body.discuzx5 .dz_nav .dz_nav_logo {
        flex-basis: 160px;
    }

    body.discuzx5 .dz_nav .dz_nav_logo a.dzlogo {
        width: 160px;
        max-width: 160px;
    }

    body.discuzx5 .dz_layer_nav ul {
        justify-content: flex-start;
        gap: 16px;
    }



    body.discuzx5 .portal_container_wrap {
        grid-template-columns: minmax(0, 1fr) 280px;
    }
}






.sidebar {
  display: grid;
  align-content: start;
  gap: 18px;
}

.side-card {
  padding: 24px;
}

.side-card h2 {
  margin: 0 0 20px;
  font-family: "STSong", "Noto Serif SC", serif;
  font-size: 22px;
}

.about-card {
  text-align: center;
}

.about-card h2 {
  text-align: left;
}

.profile {
  width: 108px;
  height: 108px;
  margin: 0 auto 16px;
  border-radius: 50%;
}

.about-card h3 {
  margin: 0 0 10px;
  font-family: "STSong", "Noto Serif SC", serif;
  font-size: 22px;
}

.about-card p {
  margin: 0 auto 22px;
  max-width: 280px;
  color: var(--muted);
  line-height: 1.75;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 18px 0;
  border-top: 1px solid var(--sg-line);
  border-bottom: 1px solid var(--sg-line);
}

.stats span {
  color: var(--muted);
  font-size: 13px;
}

.stats span + span {
  border-left: 1px solid var(--sg-line);
}

.stats b {
  display: block;
  margin-top: 5px;
  color: var(--ink);
  font-size: 22px;
}

.socials {
  display: flex;
  justify-content: space-around;
  padding-top: 20px;
}

.socials a {
  color: #6c675f;
}

.ranking-card ol {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: hot;
}

.ranking-card li {
  display: grid;
  grid-template-columns: 26px 1fr 76px;
  column-gap: 10px;
  align-items: center;
  counter-increment: hot;
}

.ranking-card li::before {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #efeee9;
  color: #776e63;
  font-size: 12px;
  content: counter(hot);
}

.ranking-card li:nth-child(-n + 3)::before {
  background: var(--sg-red);
  color: #fff;
}

.ranking-card span {
  align-self: end;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.ranking-card em {
  grid-column: 2;
  align-self: start;
  color: #9d968c;
  font-size: 13px;
  font-style: normal;
}

.ranking-card img {
  grid-column: 3;
  grid-row: 1 / span 2;
  height: 52px;
  border-radius: 5px;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.category-grid a {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 13px 8px;
  border-radius: 6px;
  background: rgba(241, 236, 227, .86);
  color: #716b62;
}

.more-link,
.section-title a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: #837c72;
  font-size: 14px;
}

.more-link {
  width: 100%;
  margin-top: 20px;
}
.more-link svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}
.subscribe-card {
  position: relative;
  overflow: hidden;
}

.subscribe-card p {
  margin: -8px 0 14px;
  color: var(--muted);
}

.subscribe-card form {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 78px;
  border: 1px solid var(--sg-line);
  border-radius: 7px;
  overflow: hidden;
  background: #fff;
}

.subscribe-card input,
.subscribe-card button {
  height: 42px;
  border: 0;
  outline: 0;
}

.subscribe-card input {
  padding: 0 13px;
}

.subscribe-card button {
  background: var(--sg-red);
  color: #fff;
  cursor: pointer;
}

.qr-area {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 16px;
  color: #746d64;
}

.qr-code {
  display: grid;
  grid-template-columns: repeat(6, 10px);
  gap: 3px;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--sg-line);
}

.qr-code span {
  width: 10px;
  height: 10px;
  background: #111;
}

.qr-code span:nth-child(3n) {
  background: transparent;
}

.recommend-section {
  margin-top: 34px;
  margin-bottom: 30px;
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.section-title h2 {
  margin: 0;
  font-family: "STSong", "Noto Serif SC", serif;
  font-size: 24px;
}

.recommend-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.recommend-grid article {
  height: 150px;
}

.recommend-grid div {
  position: absolute;
  left: 22px;
  right: 16px;
  bottom: 18px;
  z-index: 1;
  color: #fff;
}

.recommend-grid article::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .68));
  content: "";
}

.recommend-grid h3 {
  margin: 0 0 8px;
  font-family: "STSong", "Noto Serif SC", serif;
  font-size: 21px;
}

.recommend-grid p {
  margin: 0;
}

.article-panel,
.side-card {
  border: 1px solid var(--sg-line);
  border-radius: 9px;
  background: rgba(255, 253, 248);
  box-shadow: var(--shadow);
}

/* Native Discuz DIY modules in the Shiguang visual system. */
body.discuzx5 .sg-diy-sidebar .drag,
body.discuzx5 .sg-forumdisplay-diy,
body.discuzx5 .sg-viewthread-recommend,
body.discuzx5 .sg-diy-frame,
body.discuzx5 .sg-diy-frame > .column {
  width: auto;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

body.discuzx5 .sg-diy-sidebar #diy2,
body.discuzx5 .sg-forumdisplay-diy #diy2 {
  display: grid;
  gap: 18px;
}

body.discuzx5 .sg-diy-block,
body.discuzx5 .sg-diy-block .dxb_bc {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

body.discuzx5 .sg-diy-card {
  overflow: hidden;
  box-sizing: border-box;
  padding: 24px;
  border: 1px solid var(--sg-line);
  border-radius: 9px;
  background: #FFFFFF;
      margin-bottom: 20px;
}

body.discuzx5 .sg-diy-card + .sg-diy-card {
  margin-top: 18px;
}

body.discuzx5 .sg-diy-card__title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 18px;
}

body.discuzx5 .sg-diy-card__title h2 {
  margin: 0;
  color: var(--sg-ink);
  font-family: "PingFang SC", "Noto Serif SC", "Songti SC", "Microsoft YaHei", sans-serif;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.35;
}


body.discuzx5 .sg-diy-about {
  text-align: center;
}

body.discuzx5 .sg-diy-about .sg-diy-card__title {
  text-align: left;
}

body.discuzx5 .sg-diy-about__avatar {
  display: block;
  width: 104px;
  height: 104px;
  margin: 0 auto 15px;
  overflow: hidden;
  border: 4px solid rgba(255, 255, 255, .92);
  border-radius: 50%;
  box-shadow: 0 8px 22px rgba(48, 35, 21, .13);
}

body.discuzx5 .sg-diy-about__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body.discuzx5 .sg-diy-about h3 {
  margin: 0 0 9px;
  font-family: "PingFang SC", "Noto Serif SC", "Songti SC", "Microsoft YaHei", sans-serif;
  font-size: 21px;
}

body.discuzx5 .sg-diy-about h3 a {
  color: var(--sg-ink);
}

body.discuzx5 .sg-diy-about__bio {
  margin: 0 auto 20px;
  color: var(--sg-muted);
  line-height: 1.75;
}

body.discuzx5 .sg-diy-about__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 16px 0 0;
  border-top: 1px solid var(--sg-line);
}

body.discuzx5 .sg-diy-about__stats span {
  color: var(--sg-muted);
  font-size: 12px;
}

body.discuzx5 .sg-diy-about__stats span + span {
  border-left: 1px solid var(--sg-line);
}

body.discuzx5 .sg-diy-about__stats b {
  display: block;
  margin-bottom: 4px;
  color: var(--sg-ink);
  font-size: 20px;
}

body.discuzx5 .sg-diy-hot-list,
body.discuzx5 .sg-diy-thread-list,
body.discuzx5 .sg-diy-member-list {
  display: grid;
  gap: 13px;
  margin: 0;
  padding: 0;
  list-style: none;
}

body.discuzx5 .sg-diy-hot-list li {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  gap: 9px;
  align-items: center;
}

body.discuzx5 .sg-diy-hot-list__rank {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #efeee9;
  color: #776e63;
  font-size: 12px;
}

body.discuzx5 .sg-diy-hot-list li:nth-child(-n + 3) .sg-diy-hot-list__rank {
  background: var(--sg-red);
  color: #fff;
}

body.discuzx5 .sg-diy-hot-list a,
body.discuzx5 .sg-diy-thread-list a {
  overflow: hidden;
  color: #514c45;
  white-space: nowrap;
  text-overflow: ellipsis;
}

body.discuzx5 .sg-diy-hot-list em {
  color: #9b9389;
  font-size: 12px;
  font-style: normal;
}

body.discuzx5 .sg-diy-category-grid,
body.discuzx5 .sg-diy-forum-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

body.discuzx5 .sg-diy-category-grid a,
body.discuzx5 .sg-diy-forum-grid a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-width: 0;
  padding: 11px 12px;
  border: 1px solid transparent;
  border-radius: 7px;
  background:#EEEEEE;
  color: #655f57;
}

body.discuzx5 .sg-diy-category-grid a:hover,
body.discuzx5 .sg-diy-forum-grid a:hover {
  border-color: rgba(74, 133, 119, .32);
  background: rgba(74, 133, 119, .08);
  color: var(--sg-green);
}

body.discuzx5 .sg-diy-category-grid span,
body.discuzx5 .sg-diy-forum-grid span {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

body.discuzx5 .sg-diy-category-grid em,
body.discuzx5 .sg-diy-forum-grid em {
  margin-left: 6px;
  color: #9b9389;
  font-size: 12px;
  font-style: normal;
}

body.discuzx5 .sg-diy-member-list li {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

body.discuzx5 .sg-diy-member-list img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
}

body.discuzx5 .sg-diy-member-list a {
  overflow: hidden;
  color: #514c45;
  white-space: nowrap;
  text-overflow: ellipsis;
}

body.discuzx5 .sg-diy-member-list em {
  color: #9b9389;
  font-size: 12px;
  font-style: normal;
}

body.discuzx5 .sg-viewthread-recommend {
  width: auto;
  max-width: none;
  margin: 0;
}

body.discuzx5 .sg-diy-detail-frame {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

body.discuzx5 .sg-diy-detail-frame > .column {
  float: none;
  width: auto;
}

body.discuzx5 .sg-diy-thread-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  padding-bottom: 11px;
  border-bottom: 1px dashed var(--sg-line);
}

body.discuzx5 .sg-diy-thread-list li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

body.discuzx5 .sg-diy-thread-list em {
  color: #9b9389;
  font-size: 12px;
  font-style: normal;
}


#mymenu1 {
    margin-left: 110px;
    margin-right: 10px;
    box-sizing: border-box;}
#myyDiv {
    position: fixed;
    top: 0;
    left: 0;
    width: 100px;
    height: 100vh;          /* 必须不设 height */
    background: #fff;
    border-radius: 0 10px 10px 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    box-sizing: border-box;

    padding-bottom: env(safe-area-inset-bottom);  /* 让最后一项不被盖住 */
}

.menux{
    width:100px;

}
.menuxxx{height:40px;
    color:#515767;
    line-height:40px;
    cursor:pointer;
    padding-left:5px;
    padding-right: 5px;
    overflow: hidden;
    border-radius: 4px;
    margin: 0 5px;
}
.menuxxx:hover{
    background-color: #eef2f9;color: #1e80ff
}

.menus{
    width:80px;
    padding:10px;
}
.menus a img{
    width:70px;
    height:25px;
}

.menus p{height:40px;
    color:#515767;
    line-height:40px;
    cursor:pointer;
    padding-left:5px;
    padding-right: 5px;
    overflow: hidden;
    border-radius: 4px;

}
.menus p:hover{
    background-color: #eef2f9;color: #1e80ff
}

.menus div ul{display:none;}

.menus li{

    height:35px;
    line-height:35px;
    padding-left:15px;
    font-size: 11px;
    overflow: hidden;
}

.menus li a{
    color:#515767;
}
.menus li a:hover{
    color: #1e80ff;
}

@media (min-width: 1101px) {
    body.discuzx5 .sg-viewthread-layout {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 300px;
        gap: 24px;
        align-items: start;
    }

    body.discuzx5 .sg-viewthread-sidebar .sg-diy-detail-frame {
        grid-template-columns: 1fr;
    }


}

@media (max-width: 1100px) {
    .sg-viewthread-sidebar .sg-viewthread-recommend .sg-diy-about {
        display: none;
    }
    .boardnav .ct2{
        margin-right: 0;
    }
    .boardnav .sd{
        display: none;
    }

    #wp .ct2{
        margin-right:0;
    }
    #wp .sd{
        display: none;
    }

}

.login_div {
    width: 510px;
}

@media (max-width: 860px) {
    body.discuzx5 .sg-diy-detail-frame {
        display:block;

    }

    .tl .by
    {
        display: none;
    }
    .tl .num {
             display: none;
     }
    .ct2_a {
        padding-left: 120px !important;
    }
    .ct2_a .appl {
        margin-left: -120px !important;
    }
    .dz_wide .appl {
        width:110px;
    }
    .tfm .pt, .tfm .px{
        width: 80px !important;
    }

    .ps, select{
        margin-right:0;
        padding: 0 0;
    }

}

@media (max-width: 960px) {

}



@media (max-width: 680px) {
    #myyDiv {
        display: none;
    }


    #mymenu1 {
        margin-left: 10px;
        margin-right: 10px;
        box-sizing: border-box;
    }

    body.discuzx5 .forumportal_listc li.kmlist > .kmimg_box {
        width: 80px !important;
        height: 64px;}
    .imgs_2 {
        display: none;

    }

    body.discuzx5 #postlist .pls {
        display: none;
    }


    body.discuzx5 #postlist .posthead .ts {
        font-size: 24px;
    }

    body.discuzx5 .dz_footc_dico {
        display: none;
    }

    body.discuzx5 .dz_footc_nav {
        height: auto;
        margin-right: 0;
    }


    body.discuzx5 .boardnav .ct2
    {
        margin-right:0;
    }

    body.discuzx5 .boardnav .ct2 .sd {
        /* float: none; width: auto; 删掉，换成隐藏 */
        display: none;
    }

    body.discuzx5 .header-searcher .search-input {
        width: 150px !important;
    }

    body.discuzx5 .sg-diy-detail-frame {
        display:none;
    }
    .ct2_a {
        padding-left: 100px !important;
    }
    .ct2_a .appl {
        margin-left: -100px !important;
    }
    .dz_wide .appl {
        width:90px;
    }
    .tfm .pt, .tfm .px{
        width: 50px!important;
    }

    .login_div {
        width: 340px;
    }
    .comiis_login_img {
        display: none;
    }

}

.huifu .user_avatar{
    width:28px;height:28px;border-radius: 50%;margin-right:4px ;
}
 .hui1 {
float:left;width:3px;background: #38F;height:14px;margin-right:5px;border-radius:2px;margin-top:2px;
}
.hui2 {
    font-size:14px;line-height: 18px;margin-left:5px;
}

.lou1{
    width: 60px;
    border-color: red;
    float: left;
    padding-left: 30px;
    box-sizing: border-box;
}
.lou1 .user_avatar{
    width:45px;height:45px;border-radius: 50%;;
}
.menus ul {
    display: none;
}
/*头部*/
.zzui_hs_header { position: relative; }
.zzui_hs_hbox { margin: 0 auto;overflow: hidden;}

.zzui_hs_handle{position: absolute; top: 15px; right: 20px; z-index: 199;}
.zzui_hs_handle .zzui_hshbtn{position: relative; margin-left: 10px; color: #fff;background: url(../../zhanzhuaicn_img/arrwd.png) no-repeat 100% 50%;display: inline-block;}
.zzui_hs_handle .p_pop{top: 30px !important; text-align: center; border-radius: 4px;}
.zzui_hs_handle .zzui_hsh_pop{left: -7px !important;}
.zzui_hs_handle .zzui_hsh_pop2{left: 70px !important;}

.zzui_hs_htop { width: 100%; height: 200px; overflow: hidden;}
.zzui_hs_htop .zzui_hs_htbg{position: relative; height: 200px; margin: 0 auto; -webkit-background-size: cover; background-size: cover; background-repeat: no-repeat; background-position: center center; -webkit-border-radius: 2px 2px 0 0; border-radius: 2px 2px 0 0; -webkit-transform: scaleX(1.05) scaleY(1.05); transform: scaleX(1.05) scaleY(1.05);}
.zzui_hs_htop .zzui_hs_htbg.banner_transition{-webkit-transform: scaleX(1) scaleY(1);transform: scaleX(1) scaleY(1);-webkit-transition: -webkit-transform 4s linear;transition: transform 4s linear;}
.zzui_hs_htop .zzui_hs_htbg .zzui_hs_hts{position: absolute; top: 0; left:0 ;width: 100%;height: 100%; background: -webkit-linear-gradient(top, rgba(0,0,0,0) 50%,rgba(0,0,0,0.3) 100%);background: linear-gradient(top bottom, rgba(0,0,0,0) 50%,rgba(0,0,0,0.3) 100%); overflow: hidden;}

.zzui_hs_hbottom{position: relative;}
.zzui_hs_hbottom .zzui_hs_hbavatar{float: left; width: 135px; height: 135px; margin: -50px 0 5px 20px;background: #fff; border: 15px solid #fff; -webkit-border-radius: 50%; border-radius: 50%; z-index: 10;overflow: hidden;}
.zzui_hs_hbottom .zzui_hs_hbavatar img{display: block; width: 100%; height: 100%; -webkit-border-radius: 50%; border-radius: 50%;}
.zzui_hs_hbtext{position: relative; padding: 15px 340px 0 195px;}
.zzui_hs_hbtext .zzui_hs_hbu li{height: 22px; line-height: 22px; margin-bottom: 5px; font-size: 13px; color: #979A9E; text-overflow: ellipsis; white-space: nowrap; overflow: hidden;}
.zzui_hs_hbtext .zzui_hs_hbu li i{position: relative; top: 1px; margin-right: 5px; font-size: 18px; color: #999;}
.zzui_hs_hbtext .zzui_hs_hbu li.hs_username{height: 28px; line-height: 28px; }
.zzui_hs_hbtext .zzui_hs_hbu li.hs_username a{ line-height: 28px; font-size: 22px; color: #18191a; font-weight: 700;}
.zzui_hs_hbtext .zzui_hs_hbu li.hs_username h1{  display: inline;line-height: 28px; font-size: 22px; color: #18191a; font-weight: 700;}
.zzui_hs_hbtext .zzui_hs_hbu li.hs_username img{margin: 9px 0 0 3px; height: 14px; vertical-align: top;}

.zzui_hs_hbox .zzui_hs_hbtns{position: absolute; bottom: 20px; right: 20px; height: 35px; font-size: 0; text-align: center; overflow: hidden;}
.zzui_hs_hbox .zzui_hs_hbtns li{display: inline-block; margin-left: 12px; overflow: hidden;}
.zzui_hs_hbox .zzui_hs_hbtns li a{display: block; height: 32px; line-height: 32px; padding: 0 15px; font-weight: 400; font-size: 14px; color: #fff; background: #0088ff;border: 1px solid #0088ff; -webkit-border-radius: 4px; border-radius: 4px; overflow: hidden;}
.zzui_hs_hbox .zzui_hs_hbtns li.mblue a{color: #0088ff; background: #fff;}
.zzui_hs_hbox .zzui_hs_hbtns li a:hover{background: #0077e6; border: 1px solid #0077e6;}
.zzui_hs_hbox .zzui_hs_hbtns li.mblue a:hover{background: #F0F6FF;}
/*左侧主体*/
.zzui_hs_tablist{height: 55px;padding: 0 10px;border-bottom: 1px solid #f0f2f7;}
.zzui_hs_tablist ul li{float: left;height: 55px;margin: 0 20px;font-size: 0;text-align: center;}
.zzui_hs_tablist ul li a{position: relative;line-height: 55px;padding: 0 5px;font-size: 15px;color: #18191a;display: block;}
.zzui_hs_tablist ul li a span{position: absolute;left: 50%;bottom: 0;width: 100%;opacity: 0;border-bottom: 3px solid #0088ff;border-radius: 2px 2px 0 0;-webkit-transform: translate(-50%) scaleX(0);transform: translate(-50%) scaleX(0);transition: .2s ease-in-out;}
.zzui_hs_tablist ul li.a a{font-weight: 700;}
.zzui_hs_tablist ul li.a a,.zzui_hs_tablist ul li a:hover{color: #0088ff;}
.zzui_hs_tablist ul li.a a span, .zzui_hs_tablist ul li:hover span{opacity: 1;-webkit-transform: translate(-50%) scaleX(1);transform: translate(-50%) scaleX(1);transition: .2s ease-in-out;}
.vip-left2 {
    box-sizing: border-box;
    padding: 0 10px;
    font-size: 12px !important;
}
.vip-left{
    cursor: pointer;
    float: right;
    background: #ff6922;
    color: #fff !important;
    border-radius: 30px;
    padding: 4px 8px;
    font-size: 12px !important;
    line-height: 1;

}

.vip-left1 {
    cursor: pointer;
    float: right;
    background: #268df7;
    color: #fff  !important;
    border-radius: 30px;
    padding: 4px 8px;
    font-size: 12px !important;
    line-height: 1;

}
.w{
    padding: 20px 20px;
    min-height: 600px;
}