@charset "utf-8";

/*---------------------------------------------------------
*Author:             河边的飞刀
*Description:        朋友圈主题
*Website:            https://www.feidaoboke.com
---------------------------------------------------------*/
html {
    box-sizing: border-box;
    height: 100%;
}

@font-face {
    font-family: HarmonyOS_Sans_SC_Medium;
    font-style: normal;
    font-display: swap;
    src: url('font/HarmonyOS_Sans_SC_Medium.woff2') format('woff2'),
        url('font/HarmonyOS_Sans_SC_Medium.woff') format('woff');
}

* {
    font-family: HarmonyOS_Sans_SC_Medium;
}

*,
*:before,
*:after {
    box-sizing: inherit;
}

dl,
dd {
    margin: 0;
    padding: 0;
}

ul,
ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

body {
    height: 100%;
    margin: 0;
    padding: 0;
    color: #1a1a1a;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    background-color: #f2f2f2;
}

a {
    text-decoration: none;
    color: #333;
    transition: color 200ms;
}

.clear::after {
    clear: both;
    display: table;
    content: " ";
}

/* 复用类 */
.g-left {
    display: inline;
    float: left;
}

.g-left-flex {
    display: inline-flex;
    float: left;
}

.g-right {
    display: inline;
    float: right;
}

.g-right-flex {
    display: inline-flex;
    float: right;
}

.g-ovf-hide {
    overflow: hidden;
}

.g-block-center {
    margin: 0 auto;
}

.g-inline-center {
    text-align: center;
}

.g-txt-hide {
    display: block;
    width: 100%;
    height: 100%;
    color: transparent;
    font-size: 0;
    text-indent: -100em;
    overflow: hidden;
}

.g-txt-ellipsis {
    color: inherit;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}

.g-user-select {
    -webkit-user-select: text;
    user-select: text;
}

.g-alias-defaultstatus {
    visibility: hidden;
}

.g-alias-highlighter {
    margin: 0 3px;
    padding: 0 2px;
    border-radius: 3px;
    font-weight: bold;
}

.g-alias-imgblock {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 50%;
    border-radius: 5px;
}

.g-alias-videoblock {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 50%;
}

.g-user-select {
    user-select: text;
}

.g-clear-both::after {
    display: block;
    clear: both;
    content: '';
}

/* 开始 */
.header {
    position: relative;
    height: 276px;
    border-bottom: 1px solid #ccc;
}

.header .header-background {
    width: 100%;
    height: 100%;
    background-position-x: 0;
    background-repeat: no-repeat;
    background-size: cover;
}

.header .header-background .tool-right {
    position: absolute;
    right: 30px;
    top: 20px;
}

.header .header-background .tool-right .search-tool {
    background: url(img/search.png) no-repeat;
    background-size: 23px 23px;
    width: 23px;
    height: 23px;
    display: inline-block;
    margin-right: 10px;
    cursor: pointer;
}

.header .header-background .tool-right .camera-tool {
    background: url(img/camera.png) no-repeat;
    background-size: 23px 23px;
    width: 23px;
    height: 23px;
    display: inline-block;
    cursor: pointer;
}

.header .header-background .tool-left {
    position: absolute;
    left: 20px;
    top: 20px;
}

.header .header-background .tool-left .nav-tool {
    background: url(img/menu.png) no-repeat;
    background-size: 25px 25px;
    width: 25px;
    height: 25px;
    display: inline-block;
    cursor: pointer;
}

/* 弹窗样式 */
.modal .modal-header {
    padding: 0.6rem 1rem;
}

.modal .modal-header h5 {
    font-size: 1.1rem;
}

.modal .modal-header .btn-close {
    font-size: 0.9rem;
}

.modal .modal-body a {
    color: #1AAD19;
    text-decoration: none;
    border-bottom: 1px solid #07c160;
    display: inline-block;
    margin-right: 5px;
}

.modal .btn-search {
    background-color: #07c160;
    border: 1px solid #07c160;
    color: #f2f2f2;
    cursor: pointer;
}

/* 搜索结果 */
.search-result-tip {
    margin: 0 25px 20px 25px;
    text-align: center;
    padding: 20px 30px 15px 30px;
    border-bottom: 1px dotted #07c160;
}

.search-result-tip .keyword {
    color: #1AAD19;
    font-weight: 700;
    margin: 0 4px;
}

.no-result-tip {
    text-align: center;
    padding: 50px 30px;
}

.no-result-tip .keyword {
    color: #1AAD19;
    font-weight: 700;
    margin: 0 4px;
}

.no-result-tip .back-index {
    color: #fff;
    background-color: #1AAD19 !important;
    border: 1px solid #1AAD19;
    border-radius: 2px;
    font-size: 0.9rem;
    padding: 4px 8px;
    cursor: pointer;
    margin: 30px 0;
}

.brand {
    position: absolute;
    right: 25px;
    /* border: 1px solid #fff; */
    bottom: -12px;
    width: calc(100% - 25px);
}

.brand .name {
    position: relative;
    width: calc(100% - 60px - 15px);
    height: 24px;
    margin: 12px 0 0 0;
    text-align: right;
}

.brand .name a {
    color: #fff;
    font-weight: 500;
    font-size: 19px;
    line-height: 26px;
    letter-spacing: 1px;
    text-decoration: none;
}

.brand .avatar {
    width: 60px;
    height: 60px;
    border-radius: 7px;
    background-color: #fff;
    overflow: hidden;
}

.brand .avatar img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 50%;
}

.header .subinfo {
    position: absolute;
    z-index: 1;
    right: 25px;
    bottom: -42px;
    width: calc(100% - 92px);
    height: 22px;
    color: #a2a2a2;
    font-size: 15px;
    line-height: 22px;
    text-align: right;
}

main.content {
    padding-top: 30px;
    width: 100%;
    background-color: #fff;
}

/* 置顶文章样式 */
.top-info {
    display: inline-block;
    color: #fff;
    background: #222222;
    padding: 2px 8px;
    font-size: 14px;
    line-height: 20px;
    margin-right: 2px;
    font-weight: 400;
    position: absolute;
    left: 18px;
    top: 16px;
}

.top-info i {
    margin-right: 4px;
}

div.article {
    padding: 15px 25px 0 25px;
    overflow: hidden;
}

div.article .post-avatar {
    width: 40px;
    height: 40px;
    margin: 0 14px 0 0;
}

div.article .post-main {
    width: calc(100% - 54px);
    border-bottom: 1px solid #e2e2e2;
}

div.article .post-main header.post-header {
    height: 22px;
    margin-bottom: 10px;
}

div.article .post-main header.post-header .post-title {
    max-width: 50%;
    height: 22px;
    color: #576b95;
    font-size: 17px;
    line-height: 22px;
    font-weight: 500;
}

div.article .post-main div.post-content {
    font-size: 16px;
    line-height: 24px;
    word-break: break-all;
    margin-top: 0px;
}

div.article .post-main div.post-content p {
    margin-bottom: 0px;
}

div.article .post-main div.post-content img {
    max-width: 100%;
    vertical-align: bottom;
}

div.article .post-main div.post-content video {
    width: 100%;
    height: auto;
}

div.article .post-main div.post-content iframe {
    width: 100%;
   padding-right: 5px;
}

div.article .post-main div.post-attachcontent {
    width: calc(100% * 2 / 3);
    height: 20px;
    padding: 0 0 6px;
    margin-top: 10px;
    color: #576b95;
    font-size: 14px;
    line-height: 20px;
}

div.article .post-main footer.post-footer {
    height: 34px;
    padding: 0 0 14px;
    margin-bottom: 4px;
}

div.article .post-main footer.post-footer .post-info {
    margin-top: 5px;
    width: calc(100% - 92px);
    height: 20px;
    color: #b2b2b2;
    font-size: 14px;
    line-height: 22px;
}

div.article .post-main footer.post-footer .post-fun {
    position: relative;
    width: 92px;
    line-height: 22px;
    text-align: center;
}

div.article .post-main footer.post-footer .post-fun .fun-ico {
    width: 100%;
    height: 100%;
    border-radius: 4px;
    background-color: #f4f4f4;
    color: #576b95;
    /* background: #f7f7f7 url('img/post.fun.ico.light.svg') 50% 50% no-repeat; */
    cursor: pointer;
    font-size: 14px;
    padding: 2px;
    transition: background-color 500ms;
}

div.article .post-main footer.post-footer .post-fun .fun-ico::before {
    display: inline;
    float: left;
    width: 18px;
    height: 22px;
    margin: 0 4px 0 2px;
    background-position: 0 50%;
    background-repeat: no-repeat;
    content: '';
    background-image: url('img/post.aside.comment.light.svg')
}

div.article .post-main footer.post-footer .post-fun .fun-ico:hover {
    background-color: #e4e4e4;
}

div.article .post-main footer.post-footer .post-fun .fun-box {
    display: flex;
    position: absolute;
    top: 0;
    right: 0;
    display: none;
    width: auto;
    height: 38px;
    margin: calc((24px + (7px * 2) - 20px) / 2 * -1) calc(30px + 5px) 0 0;
    padding: 8px 0;
    border-radius: 4px;
    background-color: #4b5153;
    animation: funbox-anim 0.3s;
    animation-fill-mode: forwards;
}

div.article .post-main footer.post-footer .post-fun .fun-box .fun-btn {
    position: relative;
    height: 22px;
    margin: 0 20px;
    padding: 0 0 0 22px;
    color: #fff;
    font-size: 14px;
    line-height: 22px;
    white-space: nowrap;
    background-position: 0 50%;
    background-repeat: no-repeat;
}

div.article .post-main footer.post-footer .post-fun .fun-box .fun-btn.allow {
    cursor: pointer;
}

div.article .post-main footer.post-footer .post-fun .fun-box .fun-btn:first-child::after {
    position: absolute;
    top: 0;
    right: -20px;
    display: block;
    width: 0;
    height: 22px;
    border-left: 1px solid #676f72;
    content: '';
}

div.article .post-main footer.post-footer .post-fun .fun-box .like {
    background-image: url('img/post.fun.btn.like.svg');
}

div.article .post-main footer.post-footer .post-fun .fun-box .comment {
    background-image: url('img/post.fun.btn.comment.html');
}


div.article .post-main aside.post-aside.show {
    display: block;
    padding: 0 6px;
}

div.article .post-main aside.post-aside {
    display: none;
    margin: 0 0 14px;
    border-radius: 4px;
    background-color: #f4f4f4;
    overflow: hidden;
}

div.article .post-main aside.post-aside div.post-like::before {
    display: inline;
    float: left;
    width: 18px;
    height: 22px;
    margin: 0 8px 0 0;
    background-position: 0 50%;
    background-repeat: no-repeat;
    content: '';
    background-image: url('img/post.aside.like.light.svg')
}

div.article .post-main aside.post-aside div.post-like ul.like-userslist {
    flex-wrap: wrap;
    width: calc(100% - 18px - 8px);
}

div.article .post-main aside.post-aside div.post-like ul.like-userslist li.like-name {
    height: 22px;
    color: #576b95;
    font-size: 14px;
    line-height: 22px;
}

div.article .post-main aside.post-aside div.fun-area.show {
    display: block;
}

div.article .post-main aside.post-aside div.fun-area {
    padding: 8px 6px 4px 6px;
}

/* 用在文章单页single中，修改点赞样式前面的图片为评论图标 */
div.article .post-main aside.post-aside div.post-like-to-comment::before {
    display: inline;
    float: left;
    width: 18px;
    height: 22px;
    margin: 0 8px 0 0;
    background-position: 0 50%;
    background-repeat: no-repeat;
    content: '';
    background-image: url('img/post.aside.comment.light.svg')
}

div.article .post-main aside.post-aside div.post-like-to-comment .like-name {
    font-size: 15px;
    color: #576b95;
}

div.article img {
    max-width: 100%;
}

/* 首页分页 */
.pagination {
    display: block;
    padding: 20px 10px;
    text-align: center;
}

.pagination a {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 2px;
    font-size: 14px;
    line-height: 18px;
    height: 28px;
    color: #576b95;
    background-color: #e2e2e2;
    transition: background-color 500ms;
}

.pagination .now-page {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 2px;
    font-size: 14px;
    line-height: 18px;
    height: 28px;
    color: #fff;
    background-color: #07c160;
    transition: background-color 500ms;
}

.pagination a:hover {
    background-color: #ccc;
}

.now-page {
    color: #fff;
    background-color: #f6f6f6;
}


/* 底部 */
.bottom {
    min-height: 60px;
    padding: 20px;
    text-align: center;
    font-size: 12px;
    background-color: #fff;
    border-top: 1px solid #e5e5e5;
}

/* rollbar ======================================================================================================== */
.rollbar {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 999;
    display: none;
}

.rollbar ul {
    margin: 0;
    padding: 0;
    list-style: none;
    width: 35px;
}

.rollbar li {
    position: relative;
    margin-top: 5px;
    text-align: center;
    opacity: .4;
    filter: alpha(opacity=30);
}

.rollbar a {
    position: relative;
    z-index: 2;
    display: block;
    height: 35px;
    padding: 5px;
    border-radius: 2px;
    background-color: #999;
    color: #fff;
}

.rollbar a:hover {
    color: #fff;
}


.rollbar li:hover,
.rollbar li:hover h6 {
    opacity: .9;
    filter: alpha(opacity=60)
}

.rollbar li:hover h6 {
    right: 100%;
}

.rollbar h6 {
    position: absolute;
    z-index: 1;
    top: 60%;
    right: -15%;
    margin: -14px 10px 0 0;
    line-height: 22px;
    font-size: 14px;
    font-weight: 500;
    background-color: #444;
    color: #fff;
    width: 52px;
    border-radius: 2px;
    text-align: center;
    opacity: 0;
    filter: alpha(opacity=0);
    transition: all 0.25s;
}

.rollbar h6 i {
    position: absolute;
    right: -4px;
    top: 50%;
    margin-top: -4px;
    display: inline-block;
    width: 0;
    height: 0;
    vertical-align: middle;
    border-left: 4px solid #444;
    border-top: 4px solid rgba(0, 0, 0, 0);
    border-bottom: 4px solid rgba(0, 0, 0, 0);
}

/* comment */
.comments {
    margin: 0 0 15px;
    padding: 15px;
    color: #444;
}

.comment-list label {
    display: block;
}

.comment-list ul {
    padding: 4px 8px;
    list-style: none;
    border: 1px solid #ddd;
    border-radius: 2px;
    font-size: 15px;
    margin: 6px 0 6px 0;
}

.msgname {
    color: #444;
}

.msgarticle {
    color: #666;
    font-size: 15px;
}

.msgtime {
    color: #aaa;
    font-size: 14px;
    margin-top: 10px;
    line-height: 16px;
}

.commentName {
    color: #576b95;
}

.commentTime {
    color: #888;
    font-size: 12px;
}

.revertcomment {
    float: right;
    margin-right: 2px;
    font-size: 12px;
}

.revertcomment a {
    color: #576b95;
}

.revertcomment a:hover {
    color: #222;
}

.comment-post {
    padding: 4px;
}

.comment-list .post p,
.comment-post .post p {
    margin: 0;
}

.comment-list .post p.posttop a,
.comment-post .post p.posttop a {
    font-size: 14px;
    color: #576b95;
}

.comment-list .post.reply-frm p.posttop {
    margin-top: 10px;
}

.comment-list .post form#frmSumbit>P>label,
.comment-post .post form#frmSumbit>P>label {
    font-size: 14px;
    color: #858688;
    display: block;
    margin-top: 4px;
}

.comment-list .text,
.comment-post .text {
    width: 100%;
    font-size: 15px;
    padding: 4px;
    color: #535351;
    border-radius: 4px;
    border: 1px solid #07c160;
    outline: #07c160;
}

.comment-post .text#inpVerify {
    margin-bottom: 2px;
}


.comment-post .text#inpVerify+img {
    border-radius: 4px;
}

#txaArticle {
    font-size: 15px;
    padding: 4px;
    width: 100%;
    border-radius: 4px;
    border: 1px solid #07c160;
    outline: none;
    resize: none;
}

.comment-list input.button {
    transition: box-shadow 500ms;
    font-size: 15px;
    background-color: #07c160;
    color: #fff;
    border: 1px solid #07c160;
    border-radius: 4px;
    padding: 4px 16px;
    cursor: pointer;
}

.comment-post input.button {
    margin-top: 5px;
    transition: box-shadow 500ms;
    font-size: 15px;
    background-color: #07c160;
    color: #fff;
    border: 1px solid #07c160;
    border-radius: 4px;
    padding: 4px 16px;
    cursor: pointer;
}

.comment-list input.button:hover,
.comment-post input.button:hover {
    cursor: pointer;
    box-shadow: 0 0 2px #222222;
}


.commentpagebar {
    text-align: center;
    max-height: 30px;
    margin-top: 10px;
}

.commentpagebar a,
.now-page {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 2px;
    font-size: 14px;
    line-height: 16px;
    height: 26px;
    color: #576b95;
    background-color: #e2e2e2;
    transition: background-color 500ms;
}

.commentpagebar a:hover {
    background-color: #ccc;
}

.commentpagebar .now-page {
    color: #fff;
    background-color: #07c160;
}

/* 响应式样式 */
@media screen and (min-width: 550px) {
    .g-width {
        width: 550px;
        border-left: 1px solid #dcdcdc;
        border-right: 1px solid #dcdcdc;
    }
}

@media screen and (max-width: 550px) {
    .g-width {
        width: 100%;
        min-width: 320px;
        border-left: 1px solid #dcdcdc;
        border-right: 1px solid #dcdcdc;
    }
}

/* 九宫格样式 */
.grid-box {
    display: flex;
    flex-wrap: wrap;
    margin: 10px 0 10px 0;
}

.grid-pics {
    position: relative;
    overflow: hidden;
    width: 100%;
}

.grid-pics img {
    object-fit: cover;
    /* 设置图片的宽高比为1:1 */
    aspect-ratio: 1 / 1; 
}

.grid-pics img:nth-child(1):nth-last-child(1) {
    width: 100%;
}

/* 2 */
.grid-pics img:nth-child(1):nth-last-child(2),
.grid-pics img:nth-child(2):nth-last-child(1) {
    width: 49%;
}

/* 3 */
.grid-pics img:nth-child(1):nth-last-child(3),
.grid-pics img:nth-child(2):nth-last-child(2),
.grid-pics img:nth-child(3):nth-last-child(1) {
    width: 32%;
}


/* 4 */
.grid-pics img:nth-child(1):nth-last-child(4),
.grid-pics img:nth-child(2):nth-last-child(3),
.grid-pics img:nth-child(3):nth-last-child(2),
.grid-pics img:nth-child(4):nth-last-child(1) {
    width: 49%;
    margin-bottom: 1%;
}


/*  5张以上图片  */
.grid-pics img:nth-child(1):nth-last-child(n + 5),
.grid-pics img:nth-child(1):nth-last-child(n + 5)~img {
    width: 32%;
    margin-bottom: 1%;
}