@charset "utf-8";

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    outline: none;
    -webkit-tap-highlight-color: transparent;
    scrollbar-width: thin;
    letter-spacing: 0.1rem;
}

::-webkit-scrollbar {
	width:8px;
	height:8px
}
::-webkit-scrollbar-thumb {
    border-radius:10px;
    border: 2px solid transparent;
    background-clip: padding-box;
	background-color: var(--theme-60);
    background-image: -webkit-linear-gradient(45deg,hsla(0,0%,100%,.4) 25%,transparent 0,transparent 50%,hsla(0,0%,100%,.4) 0,hsla(0,0%,100%,.4) 75%,transparent 0,transparent);
}
::-webkit-scrollbar-thumb:hover{
    background-color: var(--theme);
}
::-webkit-scrollbar-track {
	box-shadow:inset 0 0 5px rgba(0,0,0,0.2);
	border-radius:10px;
	background-color:rgba(73,177,245,.2);
	display:none;
}
::-webkit-scrollbar-track-piece {
	display:none;
}
::-moz-selection {
	color:#fff;
	background:var(--theme-60);
}
::selection {
	color:#fff;
	background:var(--theme-60);
}
html {
	--main-color: 52 73 94;
	--main: rgb(var(--main-color));
    --C: rgb(var(--main-color) / 70%);
    --B: rgb(var(--main-color) / 40%);
    --A: rgb(var(--main-color) / 20%);
    --O: rgb(var(--main-color) / 5%);
    --under-background: #f7f7f7e6;
    --background: #fff;
    --box-shadow: 0px 7px 15px 0px #a48fff30;
	--radius: 1rem;
	--margin: 2rem;
}
body {
    font-family: user,-apple-system,BlinkMacSystemFont,PingFang SC,Helvetica Neue,Microsoft YaHei,Source Han Sans SC,Noto Sans CJK SC,sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x:hidden;
    background: var(--under-background);
}
html, body {
  scroll-behavior: smooth;
}
a {
    text-decoration: none;
    color: var(--main);
    -webkit-transition: 0.2s;
    transition: 0.2s;
}
a:hover {
    color: var(--theme);
}
li {
    list-style: none;
}
input, textarea, select{
    font-family: monospace,emoji;
    list-style: none;
    font-size: 0.9rem;
    border-radius: 0.5rem;
    border: unset;
    padding: 0.5rem;
    height: auto;
    line-height: 1.5rem;
    background:var(--O);
    color: var(--main);
    width: 100%;
}
input::placeholder,
textarea::placeholder,
select::placeholder {
    color: var(--B);
}
svg {
    width: 1rem;
    height: auto;
}
.title_block_title svg,
.cat_menu svg {
    fill: var(--C);
}
img{
    -webkit-transition: 0.5s;
    transition: 0.5s;
}
img.lazyloading {
    -webkit-filter: blur(2rem);
    filter: blur(2rem);
    opacity: 0;
}
img.lazyloaded {
    filter: blur(0);
    -webkit-filter: blur(0);
    opacity: 1;
    display: block;
}
.send_anniu_style {
    cursor: pointer;
    color: var(--main);
    background: var(--O);
    border-radius: 0.5rem;
    padding: 0.5rem 0.75rem;
    width: 100%;
    text-align: center;
    -webkit-transition: 0.5s;
    transition: 0.5s;
    font-family: monospace;
    font-size: 0.9rem;
    border: unset;
}
.send_anniu_style:hover {
    color: #fff;
    background: var(--theme-60);
}
.menu_off,
.mobile_menu{
    display: none;
}
.avatar {
    width: 3.25rem;
    height: 3.25rem;
    vertical-align: middle;
    border-radius: 50%;
    padding: 0.2rem;
    box-shadow: var(--box-shadow);
    background: var(--background);
    -o-object-fit: cover;
    object-fit: cover;
}

.main_screen{
    position: relative;
    margin: var(--margin) auto;
    width: calc(100vw - 2 * var(--margin) auto);
    max-width: 75rem;
    min-height: calc(100vh - 2 * var(--margin));
}
.main{
    display: flex;
    width: 100%;
    margin: 0 auto;
}
.main_body{
    flex: 1;
    width: calc(100% - 20rem - var(--margin));
}
.main_sidebar{
    width: 24rem;
    margin-left: var(--margin);
    display: flex;
    flex-direction: column;
    visibility: visible;
    opacity: 1;
    -webkit-transition: 0.5s;
    transition: 0.5s;
}
.cat_block {
    padding: var(--margin);
    color: var(--main);
    background: var(--background);
    border-radius: var(--radius);
    width: 100%;
    /*box-shadow: var(--box-shadow);*/
    margin-bottom: var(--margin);
    -webkit-transition: 0.2s;
    transition: 0.2s;
}
.title_block {
    position: relative;
    padding-left: calc(1.5 * var(--margin));
}
.title_block_title {
    gap: 0.5rem;
    display: flex;
    align-items: baseline;
    flex-direction: column;
}
.title_block_title h1{
    font-size: 1.25rem;
    line-height: 2.25rem;
}


/* 分页 */
.cat_pagination_page{
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: var(--margin);
    gap: 0.5rem;
}
.cat_pagination_page li.active a {
    background: var(--theme);
    color: #fff;
    font-weight: 500;
}
.cat_pagination_page a{
    display: flex;
    padding: 0.5rem;
    font-size: 0.9rem;
    width: 1.75rem;
    height: 1.75rem;
    background: var(--background);
    border-radius: 50%;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    transition: 0.2s;
    -webkit-transition: 0.2s;
    justify-content: center;
    align-items: center;
    letter-spacing: 0;
}
.cat_pagination_page span.next{
    cursor: pointer;
}
.cat_pagination_page li.active a:hover{
    cursor: not-allowed;
}




/* =====================================================================
   顶部头部（.cat_top）
   两种形态，由主题设置「头部形态」决定：
     .is_classic 经典大图头部（整幅头图当背景，旧）
     .is_fold    刊头 + 点开看头图（默认）
   ===================================================================== */
.cat_top {
    position: relative;
    z-index: 9;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--margin);
    margin-bottom: var(--margin);
    padding: var(--margin);
    border-radius: var(--radius);
    overflow: hidden;
}

/* ---------- 经典：整幅头图当背景 ---------- */
.cat_top.is_classic {
    height: 24rem;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-image: linear-gradient(to bottom, rgb(0 0 0 / 20%) 0%, rgb(52 73 94 / 70%) 100%), var(--cat-banner, none);
}
.cat_top.is_classic .logo { position: relative; }
.cat_top.is_classic .logo p {
    position: absolute;
    right: -0.5rem;
    bottom: 0;
    background: var(--theme);
    padding: 0.1rem 0.2rem;
    border-radius: 0.5rem;
    color: #fff;
    font-size: 0.9rem;
}
.cat_top.is_classic .logo img {
    width: 8.5rem;
    height: 8.5rem;
    box-shadow: none;
}
.cat_top.is_classic .words {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
}
.cat_top.is_classic .webtitle {
    font-size: 2rem;
    font-weight: bold;
}
.cat_top.is_classic .description {
    position: relative;
    font-size: 0.9rem;
    opacity: 0.7;
    text-align: center;
    line-height: 1.5rem;
    width: 500px;
    max-width: 70vw;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    color: #fff;
    padding-top: 0.5rem;
}
.cat_top.is_classic .description:before {
    content: "";
    width: 100%;
    height: 1px;
    top: 0;
    left: 0;
    position: absolute;
    z-index: -2;
    opacity: 0.5;
    background: -webkit-gradient(linear,left top,right top,color-stop(0%,var(--background)),color-stop(35%,var(--main)),color-stop(65%,var(--main)),color-stop(100%,var(--background)));
    background: linear-gradient(90deg, var(--background) 0%, var(--main) 35%, var(--main) 65%, var(--background) 100%);
}

/* ---------- 刊头：收起时是杂志刊头，点开铺满头图 ---------- */
.cat_top.is_fold {
    height: 11rem;
    padding-top: 0;
    padding-bottom: 0;
    justify-content: center;
    cursor: pointer;
    background: linear-gradient(135deg, var(--theme-10) 0%, transparent 62%);
    transition: height .55s cubic-bezier(.22, .61, .36, 1), padding-top .55s cubic-bezier(.22, .61, .36, 1);
}
.cat_top.is_fold.is_open { height: 24rem; padding-top: 9.5rem; }

/* 头图用真实的 <img>，所以「模糊 → 清晰」直接复用主题给头像的
   img.lazyloading / img.lazyloaded 两个类，一行都不用重写。
   URL 放在 data-src 里，JS 不点头它就一个字节都不下载。 */
.cat_top.is_fold .cat_banner {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    pointer-events: none;
}
/* 主题的 img.lazyloaded{opacity:1} 特异性只有 (0,1,1)，压不过上面那条 (0,3,0)，
   所以这里必须把「加载完之后要显示出来」再写一遍，否则图加载完也看不见 */
.cat_top.is_fold .cat_banner.lazyloaded { opacity: 1; }
/* 展开时垫一层由下向上的暗部，白色文字才始终读得清 */
.cat_top.is_fold::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(to top, rgb(14 24 34 / 82%) 0%, rgb(14 24 34 / 25%) 55%, rgb(14 24 34 / 5%) 100%);
    opacity: 0;
    pointer-events: none;
    transition: opacity .55s;
}
.cat_top.is_fold.is_open::after { opacity: 1; }

.cat_top.is_fold .cat_mast {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.6rem;
    width: 100%;
}
.cat_top.is_fold .cat_mast_text { min-width: 0; }
.cat_top.is_fold .cat_eyebrow {
    font-size: 0.7rem;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--theme);
    margin-bottom: 0.6rem;
    transition: color .55s;
}
.cat_top.is_fold .webtitle {
    display: block;
    font-family: var(--cat-serif, "Songti SC", "Noto Serif SC", "Source Han Serif SC", "STSong", serif);
    font-size: 2.3rem;
    font-weight: bold;
    line-height: 1.25;
    letter-spacing: 0.04em;
    color: var(--main);
    text-decoration: none;
    transition: color .55s, text-shadow .55s;
}
.cat_top.is_fold .description {
    position: relative;
    display: block;
    font-size: 0.85rem;
    line-height: 1.7;
    color: var(--B);
    padding-top: 0.85rem;
    margin-top: 0.85rem;
    max-width: 30rem;
    transition: color .55s;
}
/* 描述上面那条向右渐隐的细线（经典那条是给白字用的，这里换主题色） */
.cat_top.is_fold .description:before {
    content: "";
    width: 12rem;
    max-width: 100%;
    height: 1px;
    top: 0;
    left: 0;
    position: absolute;
    z-index: -2;
    background: linear-gradient(90deg, var(--theme) 0%, var(--A) 70%, transparent 100%);
}
.cat_top.is_fold .logo { flex: 0 0 auto; position: relative; }
.cat_top.is_fold .logo img {
    width: 4.6rem;
    height: 4.6rem;
    border-radius: 50%;
    object-fit: cover;
    padding: 0.16rem;
    background: var(--background);
    box-shadow: 0 0 0 1.5px var(--theme), 0 6px 18px var(--O);
}
/* 展开：文字让位给照片，改成白色并垫上投影 */
.cat_top.is_fold.is_open .cat_eyebrow { color: rgb(255 255 255 / 85%); }
.cat_top.is_fold.is_open .webtitle { color: #fff; text-shadow: 0 1px 14px rgb(0 0 0 / 45%); }
.cat_top.is_fold.is_open .description { color: rgb(255 255 255 / 78%); }
.cat_top.is_fold.is_open .description:before {
    background: linear-gradient(90deg, rgb(255 255 255 / 70%) 0%, rgb(255 255 255 / 20%) 70%, transparent 100%);
}
.cat_top.is_fold.is_open .logo img {
    box-shadow: 0 0 0 1.5px rgb(255 255 255 / 85%), 0 6px 18px rgb(0 0 0 / 35%);
}

/* 底部的展开/收回提示：一枚会轻轻浮动的圆钮 */
.cat_top.is_fold .cat_fold {
    position: absolute;
    left: 50%;
    bottom: 0.9rem;
    z-index: 3;
    transform: translateX(-50%);
    width: 2.1rem;
    height: 2.1rem;
    padding: 0;
    border-radius: 50%;
    border: 1px solid var(--A);
    background: var(--background);
    color: var(--main);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 3px 10px var(--O);
    animation: cat-fold-hint 2.6s ease-in-out infinite;
    transition: color .55s, background .55s, border-color .55s;
}
.cat_top.is_fold .cat_fold svg {
    width: 1.1rem;
    height: 1.1rem;
    fill: currentColor;
    transition: transform .55s;
}
.cat_top.is_fold.is_open .cat_fold {
    color: #fff;
    background: rgb(255 255 255 / 14%);
    border-color: rgb(255 255 255 / 35%);
    animation: none;
    -webkit-backdrop-filter: blur(0.4rem);
    backdrop-filter: blur(0.4rem);
}
.cat_top.is_fold.is_open .cat_fold svg { transform: rotate(180deg); }
@keyframes cat-fold-hint {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-0.3rem); }
}
/* 手机端这枚钮挪到右下角（居中的话会压住简介），浮动改用不带 translateX 的版本 */
@keyframes cat-fold-hint-y {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-0.3rem); }
}
/* 没有头图可展开时：整张卡片就是静态刊头 */
.cat_top.is_fold.is_static { cursor: default; }
.cat_top.is_fold.is_static .cat_fold { display: none; }

@media (prefers-reduced-motion: reduce) {
    .cat_top.is_fold { transition-duration: .01ms; }
    .cat_top.is_fold .cat_fold { animation: none; }
    .cat_top.is_fold .cat_fold svg { transition-duration: .01ms; }
}

/* 手机上：刊头再矮一点，展开高度也收一点（横排不动，竖排会裁掉 logo） */
@media (max-width: 650px) {
    .cat_top.is_fold { height: 9rem; }
    .cat_top.is_fold.is_open { height: 18.5rem; padding-top: 5rem; }
    /* 保持和桌面一样的横排（文字左、logo 右）。
       这里原本是竖排（logo 在上），但 9rem 的卡片装不下：
       内容要 159px、卡片只有 126px，overflow:hidden 会把 logo 顶部裁掉一块。
       横排的话内容只要 91px，而且构图和桌面一致。 */
    /* 显式写 row：只删掉 column-reverse 是没用的，旧值会一直生效 */
    .cat_top.is_fold .cat_mast { flex-direction: row; gap: 1rem; }
    /* 简介长了就掐两行，别把卡片撑爆 */
    .cat_top.is_fold .description {
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        overflow: hidden;
    }
    .cat_top.is_fold .logo img { width: 3.6rem; height: 3.6rem; }
    .cat_top.is_fold .webtitle { font-size: 1.7rem; }
    .cat_top.is_fold .cat_eyebrow { letter-spacing: 0.24em; }
    .cat_top.is_fold .cat_fold {
        left: auto;
        right: 1.1rem;
        bottom: 1rem;
        transform: none;
        animation-name: cat-fold-hint-y;
    }
    .cat_top.is_fold.is_open .cat_fold { transform: none; }
    .cat_top.is_classic { height: 16rem; }
    .cat_top.is_classic .logo img { width: 6rem; height: 6rem; }
    .cat_top.is_classic .webtitle { font-size: 1.6rem; }
}

.cat_menu{
    position: sticky;
    top: 0;
    width: 100%;    
    z-index: 10;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
}
.cat_menu .left{
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}
.cat_menu .left .item .bottom_infos{
    display: none;
}
.cat_menu .right {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--margin);
    font-size: 1.25rem;
}
.cat_menu .right .anniu{
    cursor: pointer;
}
.cat_menu .right .anniu.percentage{
    display: none;
}
.cat_menu .right .percentage .num{
    display: flex;
    justify-content: center;
    font-size: 1rem;
    height: 1.5rem;
    font-weight: bold;
    letter-spacing: 0;
    align-items: baseline;
    color: var(--C);
}

@media (min-width:650px) {
    .cat_menu .right .percentage .num:after{
        content: '%';
        font-size: smaller;
    }
}

.cat_menu .item {
    position: relative;
    display: flex;
    text-align: center;
    font-size: 1rem;
    justify-content: center;
    flex-direction: row;
    cursor: pointer;
    -webkit-transition: 0.5s;
    transition: 0.5s;
}
.cat_menu .item:hover {
    color: var(--theme);
}
.cat_menu .item .title {
    display: inline-flex;
    position: relative;
    align-items: center;
    padding: calc(var(--margin) / 2);
    text-align: left;
    height: 2.5rem;
}
.cat_menu .item:after {
    content: "";
    position: absolute;
    background: var(--theme);
    left: 0;
    right: 0;
    bottom: 0;
    width: 0.25rem;
    height: 0.25rem;
    border-radius: 50%;
    margin: 0 auto;
    opacity: 0;
    -webkit-transition: 0.5s;
    transition: 0.5s;
}
.cat_menu .item:hover:after {
    opacity: 1;
}
.cat_menu .item.arrow:after {
    font-family: serif;
    content: 'ˇ';
    width: auto;
    font-size: 1.5rem;
    bottom: 0.2rem;
    background: unset;
    color: var(--B);
    opacity: 1;
}
.cat_menu .item.arrow:hover:after {
    color: var(--theme);
}
.cat_menu .item .mainmenu_nav_child {
    position: absolute;
    display: flex;
    min-width: 10rem;
    -webkit-transform: translateY(2.5rem);
    -moz-transform: translateY(2.5rem);
    -ms-transform: translateY(2.5rem);
    -o-transform: translateY(2.5rem);
    transform: translateY(2.5rem);
    opacity: 0;
    visibility: hidden;
    -webkit-transition: 0.2s;
    transition: 0.2s;
    flex-direction: column;
    align-items: center;
    flex-wrap: nowrap;
    background: var(--background);
    width: auto;
    border-radius: var(--radius);
    box-shadow: var(--box-shadow);    
    z-index: 1;
    padding: calc(var(--margin) / 2);
}

.cat_menu .item:hover .mainmenu_nav_child {
    opacity: 1;
    visibility: visible;
    -webkit-transform: translateY(3rem);
    -moz-transform: translateY(3rem);
    -ms-transform: translateY(3rem);
    -o-transform: translateY(3rem);
    transform: translateY(3rem);
}
.cat_menu .item .mainmenu_nav_child a {
    padding: calc(var(--margin) / 2);
    text-align: center;
    border-radius: var(--radius);
    font-size: 0.9rem;
    width: 100%;
}
.cat_menu .item .mainmenu_nav_child a:hover {
    background: var(--theme-80);
    color: #fff;
}

.postlist_head {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: stretch;
    gap: 1rem;
}
.postlist_head .middle {
    display: flex;
    gap: 0.5rem;
    width: 100%;
    flex-direction: column;
}
.postlist_head .middle .top {
    font-weight: bold;
    font-size: 1.25rem;
    color: var(--C);
}
.postlist_head .middle .top .title{
    padding: calc(var(--margin) / 2);
    line-height: 3rem;
    font-size: 1.5rem;
    font-weight: bold;
}
.postlist_head .middle .bottom {
    font-size: smaller;
    color: var(--B);
}
.postlist_head .right {
    font-size: 2.5rem;
    opacity: 0.5;
    cursor: -webkit-grabbing;
}
.postlist_head .right img,
.postlist_head .right svg {
    width: 2.5rem;
    height: 2.5rem;
}
.postlist_head .right:hover {
    animation: jump .3s .12s ease;
    -webkit-animation: jump .3s .12s ease;
    -moz-animation: jump .3s .12s ease;
}
.postlist_foot {
    margin-top: 1rem;
    font-size: 0.8rem;
    display: flex;
    gap: 0.5rem;
    color: var(--B);
    align-items: center;
    flex-direction: row;
    flex-wrap: wrap;
}
.postlist_foot .avatar{
    width: 1.25rem;
    height: 1.25rem;
}
.postlist_tags {
    font-size: 1rem;
    margin-top: var(--margin);
    font-weight: bold;
    display: flex;
    column-gap: 1rem;
    row-gap: 0.5rem;
    flex-direction: row;
    flex-wrap: wrap;
}
.postlist_tags span, 
.postlist_tags a {
    position: relative;
    display: flex;
    gap: 0.2rem;
    color: var(--B);
    border-radius: 0.5rem;
    font-size: 0.9rem;
    word-break: keep-all;
    -webkit-transition: 0.5s;
    transition: 0.5s;
    align-items: center;
}
.postlist_tags a:hover {
    color: var(--C);
}
.postlist_tags .pinglun:before{
    content: '♡';
    color: var(--theme-30);
    font-family: Arial;
}
.postlist_tags a:not(:first-child):before{
    content: '#';
    color: var(--A);
    font-family: Arial;
}
.postlist_info {
    padding-left: 4.4rem;
}
.postlist_title {
    line-height: 2.25rem;
    font-size: 1.25rem;
    margin: 1rem 0;
    font-weight: bold;
    display: flex;
    gap: 0.5rem;
}
.postlist_title a{
    display: block;
    word-break: break-word;
    cursor: pointer;
    color: var(--C);
    -webkit-transition: 0.5s;
    transition: 0.5s;
}
.postlist:hover .postlist_title a{
    color: var(--theme);
}
.postlist_album {    
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: calc(0.5 * var(--margin));
    max-width: 400px;
}
.postlist_album img{
    aspect-ratio: 1;
    display: block;
    width: 100%;
    height: 100%;
    border-radius: var(--radius);
    box-shadow: var(--box-shadow);
    object-fit: cover;
}
.postlist_album .postlist_gallery{
    position: relative;
    cursor: zoom-in;
}
.postlist_album .postlist_gallery .mask {
    position: absolute;
    display: flex;
    background: rgb(0 0 0 / 40%);
    inset: 0;
    color: #fff;
    font-size: 1.5rem;
    border-radius: var(--radius);
    justify-content: center;
    align-items: center;
}
.postlist_album .postlist_gallery .mask svg{
    fill: #fff;
}

.postlist_abstract {    
    line-height: 2.5rem;
    min-height: 5rem;
    word-break: break-all;
    font-size: 1rem;
    margin: 1rem 1rem 1rem 0;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 7;
    overflow: hidden;
    color: var(--C);
}



.postlist_album[num='1'] {
    max-height: 400px;
    grid-template-columns: repeat(1,1fr);
}
.postlist_album[num='1'] img{
    aspect-ratio: unset;
    max-height: 400px;
    max-width: 100%;
    width: auto;
}
.postlist_album[num='2'],
.postlist_album[num='4'] {
    grid-template-columns: repeat(2,1fr);
}
.postlist_album[num='3'],
.postlist_album[num='6'],
.postlist_album[num='8'] {
    grid-template-columns: repeat(3,1fr);
}
.postlist_album[num='5'] {
    grid-template-columns: repeat(6,1fr);
}
.postlist_album[num='7'] {
    grid-template-columns: repeat(4,1fr);
}
.postlist_album[num='3'] .postlist_gallery:nth-child(1) { grid-area: 1 / 1 / 3 / 3; }
.postlist_album[num='3'] .postlist_gallery:nth-child(2) { grid-area: 1 / 3 / 2 / 4; }
.postlist_album[num='3'] .postlist_gallery:nth-child(3) { grid-area: 2 / 3 / 3 / 4; }

.postlist_album[num='5'] .postlist_gallery:nth-child(1) { grid-area: 1 / 1 / 5 / 5; }
.postlist_album[num='5'] .postlist_gallery:nth-child(2) { grid-area: 1 / 5 / 3 / 7; }
.postlist_album[num='5'] .postlist_gallery:nth-child(3) { grid-area: 3 / 5 / 5 / 7; }
.postlist_album[num='5'] .postlist_gallery:nth-child(4) { grid-area: 5 / 1 / 7 / 4; }
.postlist_album[num='5'] .postlist_gallery:nth-child(5) { grid-area: 5 / 4 / 7 / 7; }

.postlist_album[num='5'] .postlist_gallery:nth-child(4) img{aspect-ratio: unset;}
.postlist_album[num='5'] .postlist_gallery:nth-child(5) img{aspect-ratio: unset;}

.postlist_album[num='6'] .postlist_gallery:nth-child(1) { grid-area: 1 / 1 / 3 / 3; }
.postlist_album[num='6'] .postlist_gallery:nth-child(2) { grid-area: 1 / 3 / 2 / 4; }
.postlist_album[num='6'] .postlist_gallery:nth-child(3) { grid-area: 2 / 3 / 3 / 4; }
.postlist_album[num='6'] .postlist_gallery:nth-child(4) { grid-area: 3 / 1 / 4 / 2; }
.postlist_album[num='6'] .postlist_gallery:nth-child(5) { grid-area: 3 / 2 / 4 / 3; }
.postlist_album[num='6'] .postlist_gallery:nth-child(6) { grid-area: 3 / 3 / 4 / 4; }

.postlist_album[num='7'] .postlist_gallery:nth-child(1) { grid-area: 1 / 1 / 3 / 3; }
.postlist_album[num='7'] .postlist_gallery:nth-child(2) { grid-area: 1 / 3 / 3 / 5; }
.postlist_album[num='7'] .postlist_gallery:nth-child(3) { grid-area: 3 / 1 / 5 / 3; }
.postlist_album[num='7'] .postlist_gallery:nth-child(4) { grid-area: 3 / 3 / 4 / 4; }
.postlist_album[num='7'] .postlist_gallery:nth-child(5) { grid-area: 3 / 4 / 4 / 5; }
.postlist_album[num='7'] .postlist_gallery:nth-child(6) { grid-area: 4 / 3 / 5 / 4; }
.postlist_album[num='7'] .postlist_gallery:nth-child(7) { grid-area: 4 / 4 / 5 / 5; }

.postlist_album[num='8'] .postlist_gallery:nth-child(8) { grid-area: 3 / 2 / 4 / 4; }

.postlist_album[num='8'] .postlist_gallery:nth-child(8) img{aspect-ratio: 3;}

/* 分页 */
.cat_archive_next {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: var(--margin);
}
.cat_archive_next .next{
    color: var(--C);
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
    background: var(--background);
    border-radius: 1rem;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    transition: 0.2s;
    -webkit-transition: 0.2s;
    letter-spacing: 2px;
    cursor: pointer;
}
.cat_archive_next .over{
    font-size: small;
    color: var(--A);
    padding: 0.5rem;
    text-align: center;
}
.cat_categorymenu{
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}
.cat_categorymenu a:last-child {
    margin-right: auto;
}
.cat_categorymenu a {
    display: inline-block;
    font-size: 0.9rem;
    margin-bottom: 0;
}


/* 侧栏 */
aside .recent_comments {
    position: sticky;
    top: 8.5rem;
}
.cat_recentcomment_list{
    display: flex;
    position: relative;
    flex-direction: row;
    line-height: 2rem;
    align-items: center;
    gap: 0.75rem;
}
.cat_recentcomment_list:last-child{
    padding-bottom: 0;
}
.cat_recentcomment_list .left .num{
    color: #fff;
    background: var(--A);
    width: 0.9rem;
    height: 0.9rem;
    font-size: .75rem;
    line-height: .9rem;
    border-radius: 2px;
    text-align: center;
    display: inline-block;
    vertical-align: middle;
    letter-spacing: 0;
}
.cat_recentcomment_list:nth-of-type(1) .left .num {
    background: var(--theme);
}
.cat_recentcomment_list:nth-of-type(2) .left .num {
    background: var(--theme-60);
}
.cat_recentcomment_list:nth-of-type(3) .left .num {
    background: var(--theme-30);
}
.cat_recentcomment_list .right {
    width: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.cat_recentcomment_list .right .user {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.cat_recentcomment_list .right .user time{
    color: var(--B);
    font-size: smaller;
}
.cat_recentcomment_list .right .user .name{
    font-weight: bold;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    align-items: center;
    overflow: hidden;
    width: 100%;
    flex: 1;
    text-align: left;
    line-height: 1.5rem;
}
.cat_recentcomment_list .right .reply {
    font-size: 0.9rem;
    line-height: 1.5rem;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    word-break: break-all;
}
aside .aside_info_card p{
    color: var(--B);
    font-size: small;
    line-height: 1.5rem;
}



/* pages */
.links_part_grid {
    display: grid;
    gap: var(--margin);
    grid-template-columns: repeat(auto-fill,minmax(12.5rem,1fr));
}
.links_part_grid_item {
    display: flex;
    position: relative;
    flex-direction: column;
    align-items: center;
    margin-bottom: 0;
    gap: 1rem;
}
.links_part_grid_item .links_description {
    font-size: 0.9rem;
    color: var(--B);
}
.links_part_grid_item .links_author {
    font-size: larger;
    font-weight: bold;
}








.little_card_title{
    text-align: left;
    font-size: 0.75rem;
    color: var(--B);
    gap: 0.25rem;
    padding-bottom: 1rem;
}

.cat_guidang {
    display: flex;
    flex-direction: row;
    gap: var(--margin);
    margin-top: var(--margin);
}
.cat_guidang .item{
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    color: var(--B);
    align-items: baseline;
    gap:1rem;
    padding: 0.5rem 0;
}
.cat_guidang .item span{
    font-size:small;
    width:3rem;
    flex-shrink: 0;
    text-align: right;
}
.cat_guidang .item a{
    line-height: 2rem;
}

html.darkmode {
    --main-color: 232 243 255;
    --under-background: #171c28e6;
    --background: #222734;
    filter: brightness(0.8);
    -webkit-filter: brightness(0.8);
}

/* 高度 */
@media (max-height:800px) {
    #post_menu {
        max-height: 20rem;
    }
    .recent_comments .cat_recentcomment_list:nth-child(4) {
        display: none;
    }
}

@media (max-width:1000px) {
    .main_screen {
        margin: var(--margin);
        width: calc(100vw - 2 * var(--margin) auto);
    }
    .main_sidebar {
        display: none;
    }
    .cat_menu {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width:650px) {
    html {
    	--radius: 0.5rem;
    	--margin: 1rem;
    }
    .main_screen {
        margin: calc(2 * var(--margin)) var(--margin) calc(6 * var(--margin));
    }
    .postlist_info {
        padding-left: 0;
    }
    .cat_comment_respond_form .head {
        flex-direction: column;
    }
    .postlist_abstract{
        -webkit-line-clamp: 4;
    }
    .cat_menu {
        padding: 0;
    }
    .cat_menu .left {
        display: flex;
        position: fixed;
        left: 0;
        right: auto;
        top: 0;
        bottom: 0;
        z-index: 50;
        width: 20rem;
        max-width: 80vw;
        height: 100%;
        padding: var(--margin);
        transform: unset;
        overflow-y: auto;
        justify-content: flex-start;
        flex-direction: column;
        flex-wrap: nowrap;
        align-items: flex-start;
        background: var(--background);
        left: -20rem;
        -webkit-transition: 0.5s;
        transition: 0.5s;
    }
    .cat_menu .left .item {
        justify-content: flex-start;
        flex-direction: column;
        align-items: flex-start;
        border-top: 1px dashed var(--A);
        width: 100%;
        padding: 1rem 0;
    }
    .cat_menu .left .item .bottom_infos{
        display: block;
        font-size: 0.9rem;
        color: var(--B);
        padding: 0.5rem;
    }
    .cat_menu .left .item .bottom_infos a{
        color: var(--B);
        padding: 0;
    }
    .cat_menu .item:hover:after {
        opacity: 0;
    }
    .cat_menu .left .item:first-child {
        border-top: unset;
    }
    .cat_menu .left .item.arrow:after{
        content: '';
    }
    .cat_menu .item .mainmenu_nav_child:before{
        content: '';
        position: absolute;
        top: 0;
        left: -0.5rem;
        width: 0.2rem;
        height: 100%;
        background: var(--theme-30);
    }
    .cat_menu .item .mainmenu_nav_child {
        flex-direction: row;
        flex-wrap: wrap;
        position: relative;
        opacity: 1;
        padding: 0;
        margin-left: 1.5rem;
        visibility: visible;
        box-shadow: unset;
        transform: unset!important;
    }
    .cat_menu .item .mainmenu_nav_child a {
        width: auto;
        box-shadow: var(--box-shadow);
        margin: 0.5rem
    }
    .cat_menu .right{
        padding: 0.75rem;
        background: var(--background);
        box-shadow: var(--box-shadow);
        border-radius: 2.5rem;
        position: fixed;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        margin-bottom: var(--margin);
    }
    .cat_menu .right .anniu{
        width: 2.5rem;
        height: 2.5rem;
        line-height: 1.6rem;
        display: flex;
        border-radius: 50%;
        box-shadow: var(--box-shadow);
        justify-content: center;
        align-items: center;
    }
    .cat_menu .right .anniu:active{
        box-shadow: inset var(--box-shadow);
    }
    .cat_menu .right .anniu svg{
        width: 1.2rem;
    }
    .mobile_menu{
        display: block;
    }
    .menu_off{
        width: 100vw;
        height: 100vh;
        background: var(--A);
        display: block;
        position: fixed;
        inset: 0;
        left: -100vw;
        backdrop-filter: blur(0.5rem);
        -webkit-transition: 0.5s;
        transition: 0.5s;
    }
}
*[cat_title] {
    overflow: hidden;
    position: relative;
}
*[cat_title]:before, *[cat_title]:after {
    position: absolute;
    z-index: 10;
    opacity: 0;
    transform: translate3d(-50%, 0, 0);
    transition: 300ms ease;
}
*[cat_title]:before {
    content: attr(cat_title);
    top: calc(-1.5em - 6px - 5px);
    left: 50%;
    padding: 3px 6px;
    line-height: 1.5;
    border-radius: 4px;
    background-color: rgba(0, 0, 0, 0.8);
    color: #fff;
    font-size: 1rem;
    white-space: nowrap;
    box-sizing: content-box;
}
*[cat_title]:after {
    content: "\20";
    top: -5px;
    left: 50%;
    border: 5px solid transparent;
    border-top-color: rgba(0, 0, 0, 0.8);
}
*[cat_title]:hover {
    overflow: visible;
}
*[cat_title]:hover:before, *[cat_title]:hover:after {
    opacity: 1;
    transform: translate3d(-50%, -3px, 0);
}
article,
.postlist {
    -webkit-animation: fadeInUp 0.5s .2s ease both;
    -moz-animation: fadeInUp 0.5s .2s ease both;
    animation: fadeInUp 0.5s .2s ease both;
}
/* 下上淡入（card） */
@keyframes fadeInUp{0%{opacity:0;transform:translateY(20px)}100%{opacity:1;transform:translateY(0)}}
@-webkit-keyframes fadeInUp{0%{opacity:0;transform:translateY(20px)}100%{opacity:1;transform:translateY(0)}}
@-moz-keyframes fadeInUp{0%{opacity:0;transform:translateY(20px)}100%{opacity:1;transform:translateY(0)}}




.postlist_out .postlist>.top{
    display: none;
}
.postlist_out.list_item .postlist>.top{
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
}
.postlist_out.list_item .top img{
    height: 11.25rem;
    object-fit: cover;
    border-radius: 0.5rem;
    aspect-ratio: 4/3;
    margin-right: 1.5rem;
}
.postlist_out.list_item .postlist_head,
.postlist_out.list_item .postlist_info .postlist_title,
.postlist_out.list_item .postlist_info .postlist_album,
.postlist_out.list_item .postlist_info .postlist_abstract{
    display: none;
}
.postlist_out.list_item .top .postlist_abstract{
    -webkit-line-clamp: 3;
    margin: 0;
}
.postlist_out.list_item .postlist_title {
    margin-top: 0.5rem;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    overflow: hidden;
}
.postlist_out.list_item .postlist_info {
    padding: 0;
}
.postlist_out.list_item .postlist_tags {
    margin-top: 0.75rem;
    border-top: 1px dashed var(--A);
    padding-top: 1rem;
}
@media (max-width:650px) {
    .postlist_out.list_item .top img{
        height: 7.5rem;
        aspect-ratio: 1;
        margin-right: 1rem;
    }
    .postlist_out.list_item .top .postlist_abstract {
        -webkit-line-clamp: 2;
        line-height: 2rem;
        min-height: 4rem;
    }
}


.postlist_out.card_item{
    display: grid;
    grid-template-columns: repeat(auto-fill,minmax(20rem,1fr));
    column-gap: var(--margin);
}
.postlist_out.card_item .postlist{
    padding: 0;
}
.postlist_out.card_item .postlist>.top{
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
}
.postlist_out.card_item .postlist>.top .right{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.postlist_out.card_item .postlist>.top .left+.right .postlist_abstract {
    display: none;
}
.postlist_out.card_item .postlist>.top .right .postlist_abstract {
    display: -webkit-box;
    -webkit-line-clamp: 6;
    line-height: 2.25rem;
    margin: 0 var(--margin);
}
.postlist_out.card_item .top img{
    height: auto;
    width: 100%;
    object-fit: cover;
    border-radius: var(--radius) var(--radius) 0 0;
    aspect-ratio: 3/2;
    -webkit-mask: linear-gradient(to top, rgb(0 0 0 / 0%), #000000 5rem);
}
.postlist_out.card_item .postlist_head,
.postlist_out.card_item .postlist_info .postlist_title,
.postlist_out.card_item .postlist_info .postlist_album,
.postlist_out.card_item .postlist_info .postlist_abstract{
    display: none;
}
.postlist_out.card_item .top .postlist_abstract{
    -webkit-line-clamp: 3;
    margin: 0;
}
.postlist_out.card_item .postlist_title {
    margin: 1rem 0;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    overflow: hidden;
}
.postlist_out.card_item .postlist_info {
    display: none;
}
.postlist_out.card_item .postlist_tags {
    margin-top: 0.75rem;
    border-top: 1px dashed var(--A);
    padding-top: 1rem;
}
@media (max-width:650px) {
    .postlist_out.card_item .top img{
        height: 7.5rem;
        aspect-ratio: 1;
        margin-right: 1rem;
    }
    .postlist_out.card_item .top .postlist_abstract {
        -webkit-line-clamp: 2;
        line-height: 2rem;
        min-height: 4rem;
    }
}












/* ==========================================================================
   评论验证码（XhAntiSpam 配套）
   --------------------------------------------------------------------------
   只在插件启用且验证码开启时才会被渲染（判断逻辑在 parts/comment.php 顶部）。
   尺寸与表单其它输入框对齐：高度 44px、圆角 10px。
   ========================================================================== */
.cat_captcha {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 12px 0 0;
}

.cat_captcha_img {
    width: 120px;
    height: 44px;
    border-radius: 10px;
    border: 1px solid var(--theme-30, #e6e8ec);
    background: #f6f7f9;
    cursor: pointer;
    user-select: none;
    -webkit-user-drag: none;
}

.cat_captcha_input {
    flex: 1 1 140px;
    min-width: 110px;
    height: 44px;
    padding: 0 14px;
    border-radius: 10px;
    border: 1px solid var(--theme-30, #e6e8ec);
    background: #fff;
    color: inherit;
    font-size: 14px;
    letter-spacing: .06em;
    outline: none;
    transition: border-color .16s ease, box-shadow .16s ease;
}

.cat_captcha_input:focus {
    border-color: var(--main, #ff6a6a);
    box-shadow: 0 0 0 3px rgba(255, 106, 106, .12);
}

.cat_captcha_tip {
    font-size: 12px;
    color: var(--theme-50, #8a8f98);
}

@media (max-width: 575px) {
    .cat_captcha_input { flex: 1 1 100%; }
    .cat_captcha_tip { display: none; }
}


/* ==========================================================================
   邮箱验证码（XhAntiSpam 配套）
   --------------------------------------------------------------------------
   只在插件启用、且验证方式选「邮箱验证码」时才渲染（判断在 parts/comment.php 顶部）。
   ========================================================================== */
.cat_otp {
    margin: 12px 0 0;
}

.cat_otp_tip {
    margin: 0 0 8px;
    font-size: 12px;
    line-height: 1.7;
    color: var(--theme-50, #8a8f98);
}

.cat_otp_row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.cat_otp_input {
    flex: 1 1 150px;
    min-width: 120px;
    height: 44px;
    padding: 0 14px;
    border-radius: 10px;
    border: 1px solid var(--theme-30, #e6e8ec);
    background: #fff;
    color: inherit;
    font-size: 16px;
    letter-spacing: .2em;
    outline: none;
    transition: border-color .16s ease, box-shadow .16s ease;
}

.cat_otp_input:focus {
    border-color: var(--main, #ff6a6a);
    box-shadow: 0 0 0 3px rgba(255, 106, 106, .12);
}

.cat_otp_btn {
    flex: 0 0 auto;
    height: 44px;
    padding: 0 20px;
    border-radius: 10px;
    border: 1px solid var(--main, #ff6a6a);
    background: transparent;
    color: var(--main, #ff6a6a);
    font-size: 13px;
    line-height: 42px;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color .16s ease, color .16s ease, opacity .16s ease;
}

.cat_otp_btn:hover:not(:disabled) {
    background: var(--main, #ff6a6a);
    color: #fff;
}

.cat_otp_btn:disabled {
    opacity: .55;
    cursor: not-allowed;
}

.cat_otp_msg {
    margin: 6px 0 0;
    font-size: 12px;
    line-height: 1.7;
    color: var(--theme-50, #8a8f98);
    min-height: 0;
}

.cat_otp_msg.is-ok { color: #2f7a3e; }
.cat_otp_msg.is-err { color: #c0392b; }

@media (max-width: 575px) {
    .cat_otp_input { flex: 1 1 100%; }
    .cat_otp_btn { width: 100%; }
}

/* ==========================================================================
   侧栏 Info 卡片：备案号 / 版权做成胶囊
   --------------------------------------------------------------------------
   这两个原本是两行普通 <p>，贴着卡片左边排。改成胶囊后视觉上成了标签，
   和右侧其它卡片的小圆角风格一致；宽度自适应，放不下自动换行。
   ========================================================================== */
.aside_info_card .xh_info_pill {
    display: inline-block;
    max-width: 100%;
    margin: 0.3rem 0.35rem 0 0;
    padding: 0.26rem 0.8rem;
    border-radius: 999px;
    background: var(--theme-10);
    color: var(--B);
    font-size: 0.76rem;
    line-height: 1.65;
    word-break: break-word;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.aside_info_card .xh_info_pill:hover {
    background: var(--theme-30);
}

.aside_info_card .xh_info_pill a {
    color: inherit;
    text-decoration: none;
}

.aside_info_card .xh_info_pill a:hover {
    color: var(--theme);
}

/* 手机抽屉菜单里的那行版权，同样做成胶囊 */
@media (max-width: 1000px) {
    .cat_menu .left .item .bottom_infos {
        display: inline-block;
        margin: 0.25rem 0.3rem 0 0;
        padding: 0.24rem 0.75rem;
        border-radius: 999px;
        background: var(--theme-10);
        color: var(--B);
        font-size: 0.8rem;
        line-height: 1.6;
    }
}

