
.pingfen {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    background-image: linear-gradient(to right, #000000, #434343);
    padding: 10px 5px;
    border-radius: 12px;
}

.ri-popup-body[style*="width:1100px"] {
    width: min(750px, 96vw) !important;
}
.comments-nav.infinite-scroll .infinite-scroll-action, .page-nav.infinite-scroll .infinite-scroll-action {
    padding-bottom: 15px;
}

/* 评论标题头像组：跨页面统一，避免被压缩成椭圆 */
#comments .comments-title .avatar-group {
    width: auto !important;
    max-width: none !important;
    display: inline-flex;
    align-items: center;
    flex-wrap: nowrap;
    vertical-align: middle;
    margin-right: .5rem;
}

#comments .comments-title .avatar-group .avatar {
    width: 2rem;
    height: 2rem;
    min-width: 2rem;
    min-height: 2rem;
    flex: 0 0 2rem;
    border-radius: 999px;
    overflow: hidden;
    position: relative;
    transition: transform .22s ease;
}
.comment-filter-buttons.mt-3 {
    margin-left: auto;
}
#comments .comments-title .avatar-group .avatar + .avatar {
    margin-left: -.72rem;
}

#comments .comments-title .avatar-group .avatar:hover {
    z-index: 2;
    transform: translateY(-3px) scale(1.03);
}

#comments .comments-title .avatar-group .avatar .avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

/* 评论列表头像兜底：强制等宽高并裁切 */
#comments .comments-list .comment .comment-author img.avatar {
    width: 3rem !important;
    height: 3rem !important;
    object-fit: cover;
}

/* 评论设备信息图标：轻彩风格 */
.comment-info .useragent i,
.comment-info .browser i {
    opacity: .88;
    transition: opacity .2s ease, filter .2s ease;
}

.comment-info .useragent i.fa-windows { color: #3b82f6; }
.comment-info .useragent i.fa-apple { color: #64748b; }
.comment-info .useragent i.fa-android { color: #22c55e; }
.comment-info .useragent i.fa-linux { color: #64748b; }

.comment-info .browser i.fa-chrome { color: #0ea5e9; }
.comment-info .browser i.fa-edge { color: #06b6d4; }
.comment-info .browser i.fa-firefox { color: #f97316; }
.comment-info .browser i.fa-safari { color: #0ea5e9; }
.comment-info .browser i.fa-weixin { color: #22c55e; }

.comment-info .useragent:hover i,
.comment-info .browser:hover i {
    opacity: 1;
    filter: saturate(1.06);
}

/* 评论排序：热度 / 最新并排切换（替代下拉框） */
#comments .comment-sort-toggle .comment-sort-btn {
    border-color: rgba(var(--is-rgb), 0.28);
    color: var(--is-element);
    background: transparent;
}
#comments .comment-sort-toggle .comment-sort-btn:hover {
    background: rgba(var(--is-rgb), 0.1);
    color: var(--is-element);
}
#comments .comment-sort-toggle .comment-sort-btn.active {
    background: var(--is-element) !important;
    color: #ffffff !important;
    border-color: var(--is-element) !important;
    box-shadow: none;
}
[data-bs-theme="dark"] #comments .comment-sort-toggle .comment-sort-btn:not(.active) {
    color: var(--is-font);
    border-color: rgba(255, 255, 255, 0.16);
}
@media (max-width: 768px) {
    .comment-filter-buttons .btn-sm {
        font-size: 8px;
        padding: 2px 3px;
    }

    .zb-review-popup-wrap {
        max-height: 70vh;
        padding-right: 0;
    }
}
#comments .comments-title {
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-align: center;
	-ms-flex-align: center;
	align-items: center;
	font-size: .85rem;
	font-weight: 700;
	margin-bottom: 1rem;
	padding-top: 10px;
}

#comments .comment-respond {
	position: relative
}
img.avatar-badge.lazy {
    width: 25px;
}
#comments .comment-reply-title {
    display: inline-block;
    margin: 0;
    font-size: .72rem;
    position: absolute;
    bottom: 0;
    left: 0;
    color: #049819;
    z-index: 1;
    padding: .4rem .6rem;
    background-color: rgb(35 247 34 / 19%);
    border-radius: .35rem;
    line-height: 1;
}

#comments .comment-reply-title #cancel-comment-reply-link {
	margin-left: .5rem;
	font-size: .875rem;
	text-decoration: underline
}

#comments .comment-member-identity {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    margin-left: .1rem;
    margin-bottom: .35rem;
    font-size: .75rem;
    color: var(--is-font);
    opacity: .92;
}

#comments .comment-member-identity .avatar-badge,
#comments .comment-member-identity .vip-icon {
    transform: scale(.9);
    transform-origin: left center;
}

#comments .comment-member-identity-text {
    line-height: 1.3;
}

#comments .comment-member-level {
    font-size: .6rem;
    font-weight: 700;
    margin: 0 .1rem;
    background-image: linear-gradient(-82deg, #ffd585, #fffae0 67%, #ffebb8);
    color: #693f16;
    padding: 4px 6px;
    border-radius: 11px;
}

#comments .comment-member-name {
    font-weight: 800;
    color: var(--is-element);
}

/* 管理员官方勋章（昵称后蓝色圆角） */
#comments .zb-admin-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 7px;
    border-radius: 999px;
    font-size: .65rem;
    color: #ffffff;
    background: #1677ff;
    transform: translateY(-5px);
}
[data-bs-theme="dark"] #comments .zb-admin-badge {
    box-shadow: 0 6px 18px rgba(22, 119, 255, .28);
}

/* 官方账号：强制隐藏设备与归属地（双保险，避免其它片段漏出） */
#comments .zb-official .comment-info,
#comments .zb-official .comment-location {
    display: none !important;
}

#comments .comment-form {
	display: block;
	position: relative;
	margin-top: 1rem;
	clear: both;
	content: ""
}

#comments .comment-form input[type=text],#comments .comment-form textarea {
	display: block;
	width: 100%;
	padding: .375rem .75rem;
	margin-bottom: .5rem;
	font-family: none;
	font-size: .9375rem;
	color: var(--ri-body-color);
	background-color: var(--is-body);
	background-clip: padding-box;
	border: var(--ri-border-width) solid var(--ri-border-color);
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	border-radius: .25rem;
	-webkit-transition: border-color .15s ease-in-out,-webkit-box-shadow .15s ease-in-out;
	transition: border-color .15s ease-in-out,-webkit-box-shadow .15s ease-in-out;
	transition: border-color .15s ease-in-out,box-shadow .15s ease-in-out;
	transition: border-color .15s ease-in-out,box-shadow .15s ease-in-out,-webkit-box-shadow .15s ease-in-out
}

/* 评论输入框 placeholder：更小、更浅 */
#comments textarea.comment_form_textarea::placeholder {
    font-size: .82rem;
    color: rgba(0, 0, 0, .38);
}
[data-bs-theme="dark"] #comments textarea.comment_form_textarea::placeholder {
    color: rgba(255, 255, 255, .38);
}

#comments .comment-form input[type=text]:focus,#comments .comment-form textarea:focus {
	color: var(--ri-body-color);
	background-color: var(--ri-form-control-bg);
	border-color: color-mix(in srgb, var(--c-accent) 42%, #ffffff);
	outline: 0;
	-webkit-box-shadow: 0 0 0 0 rgba(33,99,232,.25);
	box-shadow: 0 0 0 0 rgba(33,99,232,.25)
}

#comments .comment-form .comment-notes {
	font-size: .875rem;
	color: var(--c-text-muted);
	margin-bottom: .5rem
}

#comments .comment-form .comment-form-author,#comments .comment-form .comment-form-email,#comments .comment-form .comment-form-url {
	width: calc(33.3333% - 10px);
	float: left;
	margin: 0 5px
}

#comments .comment-form .comment-form-author {
	margin-right: 10px;
	margin-left: 0
}

#comments .comment-form .comment-form-url {
	margin-right: 0;
	margin-left: 10px
}

#comments .form-submit {
	padding: 0;
	text-align: right;
	margin: 0
}

#comments .form-submit input[type=submit] {
	background-color: #191a1f;
	border: none;
	border-radius: 4px;
	color: #fff;
	cursor: pointer;
	font-size: .9375rem;
	padding: .25rem 1rem;
	text-transform: uppercase;
	-webkit-transition: all .3s ease;
	transition: all .3s ease
}

#comments .form-submit input[type=submit]:hover {
	background-color: rgba(25,26,31,.75)
}

#comments .form-submit input[type=submit]:disabled {
	opacity: .5;
	cursor: not-allowed
}

#comments .comments-list li,#comments .comments-list ul {
	margin: 0;
	list-style: none
}

#comments .comments-list>li+li {
	border-top: 1px solid rgba(89,93,105,.1)
}

#comments .comments-list .comment {
	padding: 1rem 0
}

#comments .comments-list .comment .comment-author img.avatar {
	border-radius: 50%;
	border: 3px solid rgba(0,0,0,.1);
	-webkit-box-shadow: 0 .125rem 1rem rgba(89,93,105,.075);
	box-shadow: 0 .125rem 1rem rgba(89,93,105,.075)
}

/* 维度评论区头像防拉伸：固定头像列宽，头像始终1:1圆形 */
#comments .comments-list .comment .comment-author.avatar{
	flex: 0 0 3rem;
	width: 3rem;
	min-width: 3rem;
	height: 3rem;
	line-height: 0;
}

#comments .comments-list .comment .comment-author.avatar img.avatar{
	width: 100% !important;
	height: 100% !important;
	display: block;
	object-fit: cover;
	aspect-ratio: 1 / 1;
	border-radius: 50%;
}

#comments .comments-list .comment .comment-inner {
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex
}

#comments .comments-list .comment .comment-meta {
	color: #a1a1a8;
	font-size: .875rem
}

#comments .comments-list .comment .comment-meta span {
	margin-right: 5px;
	font-size: 12px
}

#comments .comments-list .comment .comment-body {
	width: 100%;
	margin-left: 15px
}

#comments .comments-list .comment .comment-body .nickname {
	margin-bottom: .5rem
}

#comments .comments-list .comment .comment-body .nickname span {
	margin-left: 6px;
}

#comments .comments-list .comment .comment-content {
	margin-bottom: 0
}
.comment-info {
    font-size: 10px;
    color: #5d5b5b;
}
#comments .comments-list .comment .comment-reply-link {
	color: #a1a1a8;
	display: inline-block;
	text-decoration: underline;
	-webkit-transition: all .3s ease;
	transition: all .3s ease
}

#comments .comments-list .comment .comment-reply-link:hover {
	color: #333
}

#comments .comments-list .comment .children {
	margin-left: 3rem;
	background-color: rgba(161,161,168,.1);
	border-radius: .3rem;
	padding: .5rem;
	margin-top: 1rem
}

#comments .comments-list .comment .children li {
	padding: 0
}

#comments .comments-list .comment .children li+li {
	margin-top: 1rem
}

#comments .comments-list .comment .children .children {
	margin-left: 0
}

/* 评论表单标题里的货币单位+图标同色强调 */
#comments .comment-coin-highlight {
    color: var(--is-element);
    font-weight: 600;
}
.comment-awaiting-moderation {
    font-size: 12px;
    color: #0a9c07;
}
span.open-comment-form-btn.is-disabled {
    color: var(--is-element);
    background: #f3ededa1;
    border-radius: 5rem;
    font-size: 13px;
}