/*
// 功能：前台评论页面样式文件
// 作者：启肯科技
// Q Q：328493711
// 微信：13738373177（同手机）
// 官网：http://www.qiken.com
// 说明：QKCMS-轻量级AI智能内容管理建站系统
// 版权：© 2025 温州启肯网络有限公司 保留所有权利，盗版必究。
*/


.pinlun-sort-loading {
	width: 32px;
	height: 32px;
	border: 2px solid rgba(76, 175, 80, 0.25);
	border-top-color: var(--primary);
	border-radius: 50%;
	display: none;
	margin-left: 8px;
	vertical-align: middle;
	position: relative;
	box-sizing: border-box;
	animation: pinlunSpin 0.8s linear infinite;
}

.pinlun-sort-loading::before {
	content: '';
	position: absolute;
	inset: 6px;
	border-radius: 50%;
	border: 2px solid rgba(76, 175, 80, 0.18);
	border-bottom-color: var(--primary);
	box-sizing: border-box;
	animation: pinlunSpinInner 0.7s linear infinite reverse;
}

.pinlun-sort-loading::after {
	content: '';
	position: absolute;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--primary);
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%) translateX(12px);
	animation: pinlunSpinDot 0.8s linear infinite;
}

.pinlun-sort-loading.show {
	display: inline-block;
}

@keyframes pinlunSpin {
	to {
		transform: rotate(360deg);
	}
}

@keyframes pinlunSpinInner {
	to {
		transform: rotate(360deg);
	}
}

@keyframes pinlunSpinDot {
	to {
		transform: translate(-50%, -50%) rotate(360deg) translateX(12px);
	}
}

.comment-disabled-notice {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	padding: 14px 16px;
	border: 1px solid #fde68a;
	border-radius: 12px;
	background: #fffbeb;
	color: #92400e;
	font-size: 14px;
	line-height: 1.6;
	box-sizing: border-box;
}

.comment-disabled-notice svg {
	width: 20px;
	height: 20px;
	flex: 0 0 20px;
	color: #f59e0b;
}

.comment-disabled-notice span {
	text-align: center;
}

.btn-outline:hover {
	background-color: var(--primary-opacity-10);
	border-color: var(--primary);
}

.pinlun-main-content {
	width: 100%;
	box-sizing: border-box;
	padding-bottom: 0px;
	margin-top: -20px;
}

.ql-toolbar.ql-snow {
	border: 0px solid #ccc;
	margin-left: 0px;
}

.pinlun-container {
	max-width: 1200px;
	margin: 0 auto;
}

.pinlun-content-layout {
	display: grid;
	gap: 20px;
	align-items: start;
	margin: 0 auto;
}

.pinlun-main-column {
	width: 100%;
	overflow: hidden;
	box-sizing: border-box;
	transition: all 0.3s ease;
}

.pinlun-topics-section {
	border: 0px solid #e0e0e0;
	overflow: hidden;
	padding: 0px;
	margin-bottom: 0px;
	padding-top: 30px;
}

.pinlun-topics-content {
	padding: 0;
	position: relative
}

.pinlun-tab-content {
	display: none;
}

.pinlun-tab-content.pinlun-active {
	display: block;
}

.pinlun-topic-item {
	display: flex;
	gap: 18px;
	padding: 16px 30px;
	border: 1px solid #eef2f6;
	border-radius: 12px;
	background: #fff;
	position: relative;
	transition: box-shadow .2s ease, transform .2s ease;
	height: auto;
	min-height: 92px;
	box-sizing: border-box;
}

.pinlun-topic-item+.pinlun-topic-item {
	margin-top: 12px;
}

.pinlun-comment-pagination {
	border-top: 1px solid #eee;
	margin-top: 30px;
}

.pinlun-topic-item:hover {
	box-shadow: 0 5px 5px rgba(0, 0, 0, .18);
	transform: translateY(-1px);
}

.pinlun-avatar-container {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 60px;
	flex-shrink: 0;
}

.pinlun-topic-avatar {
	width: 50px;
	height: 50px;
	border-radius: 50%;
	object-fit: cover;
	transition: transform 0.2s ease;
	border: 2px solid #fff;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.pinlun-topic-avatar:hover {
	transform: scale(1.05);
}

.pinlun-user-level-tag {
	position: relative;
	margin-top: 6px;
	font-size: 11px;
	padding: 4px 12px 4px 16px;
	border-radius: 12px;
	white-space: nowrap;
	font-weight: 700;
	line-height: 1;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	transition: transform .15s ease, box-shadow .15s ease;
	opacity: 0;
}

.pinlun-user-level-tag::before {
	content: '';
	position: absolute;
	left: 6px;
	top: 0;
	bottom: 0;
	width: 10px;
	background: currentColor;
	opacity: .15;
	filter: blur(6px);
}

.pinlun-user-level-tag::after {
	content: '';
	position: absolute;
	left: -6px;
	top: 0;
	bottom: 0;
	width: 12px;
	background: inherit;
	transform: skewX(-20deg);
	border-top-left-radius: 10px;
	border-bottom-left-radius: 10px;
}

.pinlun-user-level-tag .dot {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: currentColor;
	opacity: .9;
}

.pinlun-user-level-tag:hover {
	transform: translateY(-1px);
}

.level-admin {
	color: #d6336c;
	background: rgba(214, 51, 108, .12);
	border: 1px solid rgba(214, 51, 108, .25);
}

.level-vip {
	color: #f59e0b;
	background: rgba(245, 158, 11, .12);
	border: 1px solid rgba(245, 158, 11, .25);
}

.level-user {
	color: #10b981;
	background: rgba(16, 185, 129, .12);
	border: 1px solid rgba(16, 185, 129, .25);
}

.level-guest {
	color: #3b82f6;
	background: rgba(59, 130, 246, .12);
	border: 1px solid rgba(59, 130, 246, .25);
}

.pinlun-user-level-tag.level-admin,
.pinlun-user-level-tag.level-vip,
.pinlun-user-level-tag.level-user,
.pinlun-user-level-tag.level-guest {
	opacity: 1;
	transition: opacity .12s ease, transform .15s ease, box-shadow .15s ease;
}

.pinlun-topic-content1 {
	flex: 1;
	min-width: 0;
}

.pinlun-topic-header-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 8px;
}

.pinlun-comment-author-date {
	color: #666;
	font-size: 14px;
	font-weight: 500;
}

.pinlun-topic-actions {
	display: flex;
	gap: 6px;
	align-items: flex-end;
}

.pinlun-btn-primary {
	position: relative;
	background: linear-gradient(135deg, var(--primary) 0%, color-mix(in srgb, var(--primary) 85%, #000) 100%);
	color: #fff;
	border: none;
	cursor: pointer;
	transition: all .25s cubic-bezier(.4, 0, .2, 1);
	padding: 4px 40px;
	border-radius: 12px;
	font-weight: 600;
	font-size: 15px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 42px;
	margin-bottom: 15px;
	overflow: hidden;
	box-shadow: 0 4px 15px color-mix(in srgb, var(--primary) 30%, transparent);
	letter-spacing: 0.3px;
}

.pinlun-btn-primary::after {
	content: '';
	position: absolute;
	top: 0;
	bottom: 0;
	left: -150%;
	width: 50%;
	background: linear-gradient(120deg, transparent, rgba(255, 255, 255, .55), transparent);
	transform: skewX(-20deg);
	animation: pinlunBtnSheen 3.2s linear infinite;
}

.pinlun-btn-primary:hover {
	transform: translateY(-1px);
	filter: alpha(opacity:80);
	opacity: 0.8;
	filter: saturate(1.05);
}

.pinlun-btn-primary:active {
	transform: translateY(0);
	box-shadow: 0 3px 10px rgba(76, 175, 80, .25);
}

.pinlun-comment-like,
.pinlun-comment-dislike,
.pinlun-comment-delete,
.pinlun-comment-reply,
.pinlun-reply-like,
.pinlun-reply-dislike,
.pinlun-reply-delete {
	background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
	border: 0px solid #e5e7eb;
	outline: none;
	color: var(--text-light);
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 14px;
	padding: 4px 5px;
	border-radius: 14px;
	transition: color .2s ease, background .2s ease, border-color .2s ease;
	box-shadow: none;
}

.pinlun-comment-like:hover,
.pinlun-comment-dislike:hover,
.pinlun-comment-delete:hover,
.pinlun-comment-reply:hover,
.pinlun-reply-like:hover,
.pinlun-reply-dislike:hover,
.pinlun-reply-delete:hover {
	background: #f6faf7;
	color: var(--primary);
	border-color: #e3efe6;
	transform: none;
}

.pinlun-comment-like.pinlun-liked,
.pinlun-reply-like.pinlun-liked {
	color: var(--primary) !important;
	border-color: rgba(76, 175, 80, .35) !important;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6);
}

.pinlun-comment-dislike.pinlun-disliked,
.pinlun-reply-dislike.pinlun-disliked {
	color: #8b5cf6 !important;
	border-color: rgba(139, 92, 246, .35) !important;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6);
}

.pinlun-comment-like.pinlun-liked svg,
.pinlun-reply-like.pinlun-liked svg,
.pinlun-comment-dislike.pinlun-disliked svg,
.pinlun-reply-dislike.pinlun-disliked svg {
	fill: currentColor !important;
}

.pinlun-action-count {
	font-size: 13px;
	font-weight: 600;
}

.pinlun-icon-dislike,
.pinlun-icon-like1 {
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.comment-disabled-notice {
	padding: 20px 24px;
	text-align: center;
	background: #fff7ed;
	border: 1px solid #fde68a;
	border-radius: 10px;
	color: #92400e;
	display: flex;
	align-items: center;
	gap: 10px;
	justify-content: center;
	margin: 12px 0;
}

.comment-disabled-notice svg {
	width: 18px;
	height: 18px;
	color: #f59e0b;
}

.comment-disabled-notice span {
	font-size: 14px;
}

.pinlun-comment-like svg,
.pinlun-comment-dislike svg,
.pinlun-comment-reply svg {
	width: 18px;
	height: 16px;
	fill: var(--text-lighter, var(--text-light));
	stroke: var(--text-lighter, var(--text-light));
	vertical-align: middle;
}

.pinlun-comment-like svg,
.pinlun-reply-like svg {
	transform: translateY(-1px);
}

.pinlun-comment-dislike svg,
.pinlun-reply-dislike svg {
	transform: translateY(1px);
}

.pinlun-comment-delete {
	color: #ef4444;
	border-color: #fee2e2;
	background: linear-gradient(180deg, #fff, #fff7f7);
}

.pinlun-comment-delete:hover {
	color: #ef4444;
	border-color: #fca5a5;
	box-shadow: 0 6px 12px rgba(239, 68, 68, .12);
	background: linear-gradient(180deg, #fff2f2, #ffecec);
}

.pinlun-comment-reply {
	color: var(--text-light);
	border-color: #e0e7ff;
	background: linear-gradient(180deg, #fff, #f5f8ff);
}

.pinlun-comment-reply:hover {
	color: var(--text-light);
	border-color: #c7d2fe;
	box-shadow: 0 6px 12px rgba(37, 99, 235, .12);
	background: linear-gradient(180deg, #eef4ff, #e8f0ff);
}

.pinlun-reply-like svg,
.pinlun-reply-dislike svg {
	width: 14px;
	height: 14px;
	fill: var(--text-lighter, var(--text-light));
	stroke: var(--text-lighter, var(--text-light));
	vertical-align: middle;
}

.icon-reply-svg {
	fill: var(--text-lighter, var(--text-light));
	stroke: var(--text-lighter, var(--text-light));
	vertical-align: middle;
}

@keyframes pinlunBtnSheen {
	0% {
		left: -150%;
	}

	70% {
		left: 150%;
	}

	100% {
		left: 150%;
	}
}

.pinlunjs-floating-likes {
	position: fixed;
	left: 0;
	width: 0;
	bottom: 0;
	height: 180px;
	pointer-events: none;
	overflow: hidden;
	z-index: 2147483647;
}

.pinlunjs-like-bubble {
	position: absolute;
	bottom: -14px;
	opacity: .32;
	filter: blur(.35px);
	animation-name: pinlunLikeFloat;
	animation-timing-function: ease-out;
	animation-iteration-count: infinite;
	will-change: transform, opacity;
}

.pinlunjs-like-bubble svg {
	width: 24px;
	height: 24px;
	fill: currentColor;
}

.pinlunjs-like-bubble .pinlunjs-tail {
	position: absolute;
	top: 62%;
	left: 50%;
	width: 2px;
	height: var(--tailLen, 32px);
	background: currentColor;
	opacity: .18;
	filter: blur(1.2px);
	transform: translateX(-50%) rotate(var(--tailAngle, 8deg));
	border-radius: 2px;
}

@keyframes pinlunLikeFloat {
	0% {
		transform: translateY(0) translateX(0) scale(.85);
		opacity: .28
	}

	50% {
		transform: translateY(-95px) translateX(8px) scale(1.02);
		opacity: .6
	}

	100% {
		transform: translateY(-180px) translateX(-6px) scale(1.12);
		opacity: 0
	}
}

.pinlun-post01 {
	font-size: 15px;
	color: #374b63;
	line-height: 1.75;
	margin-top: 10px;
	word-break: break-word;
	padding: 5px 14px;
	display: block;
	width: 100%;
	box-sizing: border-box;
	position: relative;
	border-radius: 10px;
	background: #f9fbff;
	border: 1px solid #e7f0ff;
}

.pinlun-reply-body {
	font-size: 14px;
	color: #4a5568;
	line-height: 1.7;
	margin-top: 0px;
	padding: 0px 14px;
	border-radius: 10px;
	background: #fbfcfd;
	border: 1px solid #eef1f6;
}
.pinlun-post01 p,
.pinlun-reply-body p {
	margin: 0 0 10px;
}
.pinlun-post01 p:last-child,
.pinlun-reply-body p:last-child {
	margin-bottom: 0;
}

.pinlun-post01 img,
.pinlun-reply-body img,
.ql-editor img {
	max-width: calc(20% - 10px) !important;
	height: 80px !important;
	object-fit: cover;
	margin: 8px 4px;
	border-radius: 8px;
	display: inline-block;
	vertical-align: top;
	border: 1px solid #eee;
	cursor: pointer;
	transition: transform 0.2s ease;
}

.pinlun-post01 video,
.pinlun-reply-body video {
	width: min(100%, 420px);
	max-width: 100%;
	aspect-ratio: 16 / 9;
	height: auto;
	margin: 8px 0 -11px;
	border-radius: 14px;
	display: block;
	background: #000;
	border: 1px solid #dbe4f0;
	box-shadow: 0 12px 28px rgba(15, 23, 42, .12);
}
.pinlun-post01 video:last-child,
.pinlun-reply-body video:last-child {
	margin-bottom: 0;
}

.ql-editor video {
	width: min(100%, 320px);
	max-width: 100%;
	aspect-ratio: 16 / 9;
	height: auto;
	margin: 8px 4px;
	border-radius: 10px;
	display: inline-block;
	vertical-align: top;
	background: #000;
	border: 1px solid #e5e7eb;
}

.pinlun-post01 img:hover,
.pinlun-reply-body img:hover {
	transform: scale(1.05);
}

.pinlun-comment-reply-item {
	display: flex;
	gap: 12px;
	margin-top: 12px;
	margin-left: 60px;
	padding: 12px 0 0;
	border-bottom: 0px dashed #e9ecef;
	position: relative;
}

.pinlun-comment-reply-item::before {
	content: '';
	position: absolute;
	left: -30px;
	top: 0;
	bottom: 0;
	width: 2px;
	background: linear-gradient(180deg, rgba(76, 175, 80, .25), rgba(76, 175, 80, .05));
	border-radius: 2px;
}

.pinlun-reply-content {
	flex: 1;
	min-width: 0;
}

.pinlun-reply-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 8px;
}

.pinlun-reply-number {
	flex-shrink: 0;
}

.pinlun-reply-number img {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	object-fit: cover;
	border: 2px solid #fff;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.pinlun-modal {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.5);
	z-index: 1000;
	align-items: center;
	justify-content: center;
}

.pinlun-modal.pinlun-modal-visible {
	display: flex;
}

.pinlun-modal-backdrop {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.5);
	backdrop-filter: blur(2px);
}

.pinlun-modal-content {
	position: relative;
	background-color: white;
	border-radius: 8px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
	width: 100%;
	max-width: 550px;
	max-height: 650px;
	overflow-y: auto;
	transform: scale(0.95);
	opacity: 0;
	transition: transform 0.3s ease, opacity 0.3s ease;
	z-index: 1001;
}

.pinlun-modal.pinlun-modal-visible .pinlun-modal-content {
	transform: scale(1);
	opacity: 1;
}

.pinlun-modal-header {
	padding: 15px 20px;
	border-bottom: 1px solid #e0e0e0;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.pinlun-modal-title {
	font-size: 18px;
	font-weight: 600;
	margin: 0;
}

.pinlun-modal-close {
	width: 28px;
	height: 28px;
	border: none;
	background: #dbdbdb;
	border-radius: 50%;
	cursor: pointer;
	position: relative;
	transition: all 0.3s ease;
	color: transparent;
	font-size: 0;
	padding: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.pinlun-modal-close::before,
.pinlun-modal-close::after {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	width: 12px;
	height: 2px;
	background: #fff;
	transform: translate(-50%, -50%) rotate(45deg);
	transition: all 0.3s ease;
}

.pinlun-modal-close::after {
	transform: translate(-50%, -50%) rotate(-45deg);
}

.pinlun-modal-close:hover {
	background: #ff5252;
	transform: rotate(90deg);
}

.pinlun-modal-close:hover::before,
.pinlun-modal-close:hover::after {
	width: 14px;
}

.pinlun-modal-body {
	padding: 20px 30px;
	max-height: 400px;
	overflow-y: auto;
}

.pinlun-form-group {
	margin-bottom: 15px;
}

.pinlun-form-control {
	width: 100%;
	padding: 12px;
	border: 1px solid #d1d5db;
	border-radius: 6px;
	font-size: 14px;
	box-sizing: border-box;
	outline: none;
	transition: all 0.2s;
}

.pinlun-form-control:focus {
	border-color: var(--primary);
	box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

.pinlun-modal-actions {
	padding: 0px 30px 30px;
	display: flex;
	justify-content: flex-end;
}

.pinlun-submit-button {
	width: 100%;
	padding: 12px;
	background-color: var(--primary);
	color: white;
	border: none;
	border-radius: 6px;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.2s;
}

.pinlun-submit-button:hover {
	opacity: 0.9;
	transform: translateY(-1px);
}

.pinlun-replied-comment-container {
	position: relative;
	padding: 15px;
	background-color: #f9f9f9;
	border-left: 4px solid var(--primary);
	border-radius: 4px;
	margin-bottom: 0px;
}

.pinlun-replied-comment-container.pinlun-hidden {
	display: none !important;
}

.pinlun-replied-comment-label {
	font-weight: 600;
	font-size: 13px;
	color: #999;
	margin-bottom: 6px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.pinlun-replied-comment-text {
	font-size: 14px;
	color: #666;
	line-height: 1.6;
	word-wrap: break-word;
}

.pinlun-comment-form-container {
	padding: 24px;
	border: 1px solid #f0f0f0;
	border-radius: 16px;
	margin-bottom: 40px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
	padding-bottom: 20px;
	padding-top: 24px;
	min-height: 180px;
	contain: layout style;
	position: relative;
	overflow: visible;
	background: linear-gradient(145deg, #ffffff, #fafbfc);
}

.pinlun-comment-form-container #pinlun-comment-quill-editor,
.pinlun-comment-form-container .pinlun-comment-form-footer {
	opacity: 1;
	visibility: visible;
	transition: none;
}

.pinlun-comment-form-container.is-ready #pinlun-comment-quill-editor,
.pinlun-comment-form-container.is-ready .pinlun-comment-form-footer {
	opacity: 1;
	visibility: visible;
}

.pinlun-comment-user-info {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 15px;
}

.pinlun-comment-avatar-special {
	width: 38px;
	height: 38px;
	border-radius: 50%;
	object-fit: cover;
	border: 2px solid #fff;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.pinlun-comment-user-name {
	font-size: 15px;
	color: var(--text-light);
	font-weight: 600;
}

.pinlun-comment-form-footer {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-top: 15px;
}

.pinlun-sort-actions {
	display: flex;
	gap: 10px;
	margin-bottom: 20px;
	padding-bottom: 15px;
	border-bottom: 1px solid #f0f0f0;
}

.pinlun-sort-actions a {
	color: var(--primary);
	font-size: 14px;
	border: 1px solid var(--primary);
}

.pinlun-sort-actions a:hover {
	background: var(--primary);
	color: #fff;
}

.pinlun-sort-bar {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 10px;
	padding-bottom: 30px;
}

.pinlun-sort-bar .pinlun-sort-actions {
	margin: 0;
	padding: 0;
	border: 0;
	height: 32px;
	display: flex;
	align-items: center;
	gap: 8px;
}

.pinlun-avatars-row {
	display: flex;
	align-items: flex-end;
	gap: 0;
	overflow: hidden;
	padding: 2px 0;
	min-width: 0;
	min-height: 32px;
	height: 32px;
	line-height: 0;
}

.pinlun-avatars-row a {
	display: inline-block
}

.pinlun-avatars-row img {
	width: 28px;
	height: 28px;
	border-radius: 50%;
	object-fit: cover;
	border: 2px solid #fff;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
	flex: 0 0 auto;
	margin: 0;
	position: static !important;
	background: #f3f4f6;
	display: block;
	transition: transform .15s ease, box-shadow .15s ease;
}

.pinlun-avatars-row a:not(:first-child) {
	margin-left: -10px !important;
}

.pinlun-avatars-row a:hover {
	z-index: 3;
}

.pinlun-avatars-row a:hover img {
	transform: translateY(-1px) scale(1.06);
	box-shadow: 0 6px 14px rgba(0, 0, 0, 0.16);
}

.pinlun-sort-btn {
	background: var(--primary-opacity-10);
	border: 1px solid var(--primary-opacity-10);
	padding: 0 14px;
	border-radius: 16px;
	font-size: 13px;
	color: var(--primary);
	cursor: pointer;
	transition: all 0.2s;
	font-weight: 500;
	text-decoration: none !important;
	display: inline-flex;
	align-items: center;
	height: 30px;
	line-height: 30px;
}

.pinlun-sort-btn:hover {
	background: var(--primary-opacity-10);
	color: var(--primary);
	border-color: var(--primary);
}

.pinlun-sort-btn.active {
	background: var(--primary);
	color: #fff;
	border-color: var(--primary);
	box-shadow: 0 4px 10px rgba(76, 175, 80, 0.2);
}

#pinlun-latest {
	height: auto;
	max-height: var(--comment-list-max-height, 1560px);
	position: relative;
	overflow-y: auto;
	overflow-x: visible;
	scrollbar-gutter: stable;
	scrollbar-width: none;
	-ms-overflow-style: none;
}

#pinlun-latest::-webkit-scrollbar {
	display: none;
}

.pinlun-pagination {
	padding: 40px 20px;
	text-align: center;
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 6px;
	flex-wrap: wrap;
	clear: both;
	padding-bottom: 10px;
}

.pinlun-pagination a,
.pinlun-pagination span,
.pinlun-pagination strong,
.pinlun-pagination b {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 32px;
	height: 32px;
	padding: 0 12px;
	border: 1px solid #e0e0e0;
	border-radius: 5px;
	color: #666;
	text-decoration: none !important;
	font-size: 14px;
	transition: all 0.2s ease;
	box-sizing: border-box;
	cursor: pointer;
	font-weight: 500;
	background: #fdfdfd;
}

.pinlun-pagination a:hover {
	border-color: var(--primary) !important;
	color: var(--primary) !important;
	background: var(--primary-opacity-10);
}

.pinlun-pagination span {
	background: #fff !important;
	color: #999 !important;
	border-color: #e0e0e0 !important;
	font-weight: 500;
}

.pinlun-pagination strong,
.pinlun-pagination b,
.pinlun-pagination .active,
.pinlun-pagination .current {
	background: var(--primary) !important;
	color: #fff !important;
	border-color: var(--primary) !important;
	font-weight: 600;
}

.pinlun-pagination select {
	height: 32px;
	padding: 0 10px;
	border: 1px solid #e0e0e0;
	border-radius: 5px;
	outline: none;
	color: #666;
	background: #fdfdfd;
	cursor: pointer;
	font-size: 14px;
	margin-left: 5px;
}

.pinlun-pagination select:hover {
	border-color: var(--primary) !important;
	color: var(--primary) !important;
	background: var(--primary-opacity-10);
}

.pinlun-image-preview-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.9);
	display: none;
	z-index: 10000;
	align-items: center;
	justify-content: center;
}

.pinlun-image-preview-overlay.pinlun-image-preview-active {
	display: flex;
}

.pinlun-image-preview-dialog {
	position: relative;
	width: 100%;
	height: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
}

.pinlun-image-preview-dialog img {
	max-width: 70vw;
	max-height: 65vh;
	object-fit: contain;
	border-radius: 8px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
	transition: opacity 0.2s ease;
}

.pinlun-image-preview-nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 56px;
	height: 56px;
	background: rgba(255, 255, 255, 0.1);
	border: 1px solid rgba(255, 255, 255, 0.15);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: all 0.3s ease;
	z-index: 10002;
}

.pinlun-image-preview-nav:hover {
	background: rgba(255, 255, 255, 0.25);
	transform: translateY(-50%) scale(1.1);
}

.pinlun-image-preview-nav svg {
	width: 22px;
	height: 22px;
	color: #fff;
	transition: transform 0.3s ease;
}

.pinlun-image-preview-nav.pinlun-image-preview-prev:hover svg {
	transform: translateX(-3px);
}

.pinlun-image-preview-nav.pinlun-image-preview-next:hover svg {
	transform: translateX(3px);
}

.pinlun-image-preview-nav.pinlun-image-preview-prev {
	left: 3%;
}

.pinlun-image-preview-nav.pinlun-image-preview-next {
	right: 3%;
}

.pinlun-image-preview-nav.pinlun-hidden,
.pinlun-hidden {
	display: none;
}

.pinlun-image-preview-close {
	position: absolute;
	top: 20px;
	right: 20px;
	width: 48px;
	height: 48px;
	background: rgba(255, 255, 255, 0.1);
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	z-index: 10003;
}

.pinlun-image-preview-close:hover {
	background: rgba(255, 255, 255, 0.3);
	transform: scale(1.1) rotate(90deg);
}

.pinlun-image-preview-close svg {
	width: 18px;
	height: 18px;
	color: #fff;
}

.pinlun-image-preview-counter {
	position: absolute;
	top: 25px;
	left: 50%;
	transform: translateX(-50%);
	background: rgba(255, 255, 255, 0.15);
	color: #fff;
	padding: 6px 14px;
	border-radius: 16px;
	font-size: 13px;
	z-index: 10002;
}

.pinlun-image-preview-content {
	position: absolute;
	bottom: 40px;
	left: 50%;
	transform: translateX(-50%);
	width: 700px;
	max-width: 90vw;
	text-align: center;
}

.pinlun-image-preview-content-text {
	color: white;
	font-size: 14px;
}

#pinlun-comment-quill-shell {
	height: 130px;
	border: 0;
	box-shadow: inset 0 -1px 0 #e5e7eb;
	position: relative;
	display: flex;
	flex-direction: column;
	box-sizing: border-box;
	border-radius: 20px;
	overflow: visible;
	background: transparent;
}

#pinlun-comment-quill-shell .qk-quill-placeholder {
	position: absolute;
	inset: 0;
	padding: 10px 0;
	box-sizing: border-box;
	opacity: 1;
	transition: opacity .12s ease;
	pointer-events: none;
}

#pinlun-comment-quill-shell .qk-quill-placeholder-toolbar {
	height: 0;
	box-sizing: border-box;
}

#pinlun-comment-quill-shell .qk-quill-placeholder-text {
	margin-top: 6px;
	color: #9ca3af;
	font-size: 15px;
	line-height: 1.8;
	user-select: none;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
}

#pinlun-comment-quill-shell:not(.qk-quill-ready) #pinlun-comment-quill-editor {
	opacity: 0;
}

#pinlun-comment-quill-shell.qk-quill-ready .qk-quill-placeholder {
	opacity: 0;
}

#pinlun-comment-quill-editor {
	height: 100%;
	display: flex;
	flex-direction: column;
	background: transparent;
	opacity: 1;
	transition: opacity .12s ease;
}

#pinlun-comment-quill-shell .ql-toolbar,
#pinlun-comment-quill-shell .ql-toolbar.ql-snow {
	border: 0 !important;
	border-bottom: 0 !important;
	box-shadow: none !important;
	background: transparent;
	padding: 6px 0;
	flex: 0 0 auto;
	transition: opacity .12s ease;
}

.ql-container.ql-snow {
	border: 1px solid #ccc;
	height: 160px;
}

.ql-toolbar.ql-snow+.ql-container.ql-snow {
	border-top: 1px solid #ccc;
}

#pinlun-comment-quill-editor.ql-container,
#pinlun-comment-quill-editor.ql-container.ql-snow {
	border: 0 !important;
	box-shadow: none !important;
	background: transparent;
	flex: 1 1 auto;
	min-height: 0;
	border-left: 0 !important;
	border-right: 0 !important;
	transition: opacity .12s ease;
}

#pinlun-comment-quill-editor .ql-editor {
	height: 100%;
	overflow-y: auto;
	padding-left: 4px;
	padding-right: 4px;
	padding-top: 8px;
	padding-bottom: 8px;
	box-sizing: border-box;
	scroll-padding-top: 0;

	font-size: 15px;
	line-height: 1.8;
	color: #1f2937;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
	min-height: 80px;
	letter-spacing: 0.2px;
	word-spacing: 0.5px;
}

#pinlun-comment-quill-editor .ql-editor img,
#pinlun-modal-quill-editor .ql-editor img {
	scroll-margin-top: 8px;
}

#pinlun-comment-quill-editor .ql-toolbar .ql-formats {
	margin-right: 6px;
}

#pinlun-comment-quill-editor .ql-toolbar button {
	width: 28px;
	height: 28px;
	border-radius: 6px;
}

#pinlun-comment-quill-editor .ql-toolbar button svg,
#pinlun-comment-quill-editor .ql-toolbar button .ql-stroke,
#pinlun-comment-quill-editor .ql-toolbar button .ql-fill,
#pinlun-comment-quill-editor .ql-toolbar button .ql-even {
	width: 20px !important;
	height: 20px !important;
}

#pinlun-comment-quill-editor .ql-toolbar button:hover {
	background: var(--primary-opacity-10);
	color: var(--primary);
}

#pinlun-comment-input {
	display: none;
}

#pinlun-modal-quill-editor {
	height: auto;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	overflow: hidden;
	background: #fff;
}

#pinlun-modal-quill-editor .ql-toolbar {
	border: none;
	border-bottom: 1px solid #e9ecef;
	background: #fafafa;
	padding: 6px 8px;
}

#pinlun-modal-quill-editor .ql-container {
	border: none;
	background: #fff;
	height: 200px !important;
}

#pinlun-modal-quill-editor .ql-editor {
	height: 100px !important;
	min-height: 100px !important;
	max-height: 100px !important;
	padding: 8px 12px;
	overflow-y: auto;
}

#pinlun-comment-quill-editor .ql-editor img,
#pinlun-modal-quill-editor .ql-editor img {
	width: calc(20% - 10px) !important;
	max-width: none !important;
	height: 80px !important;
	max-height: 80px !important;
	object-fit: cover !important;
	display: inline-block !important;
	vertical-align: top !important;
	margin: 6px 5px !important;
}

#pinlun-modal-quill-editor .ql-toolbar .ql-formats {
	margin-right: 6px;
}

#pinlun-modal-quill-editor .ql-toolbar button {
	width: 28px;
	height: 28px;
	border-radius: 6px;
}

#pinlun-modal-quill-editor .ql-toolbar button svg,
#pinlun-modal-quill-editor .ql-toolbar button .ql-stroke,
#pinlun-modal-quill-editor .ql-toolbar button .ql-fill,
#pinlun-modal-quill-editor .ql-toolbar button .ql-even {
	width: 20px !important;
	height: 20px !important;
}

#pinlun-modal-quill-editor .ql-toolbar button:hover {
	background: var(--primary-opacity-10);
	color: var(--primary);
}

.pinlun-hidden {
	display: none !important;
}

.pinlun-fade-in {
	animation: pinlun-fadeIn 0.5s ease;
}

@keyframes pinlun-fadeIn {
	from {
		opacity: 0;
		transform: translateY(10px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@media (max-width: 768px) {
	.pinlun-content-layout {
		grid-template-columns: 1fr;
	}

	.pinlun-comment-form-footer {
		flex-direction: column;
		align-items: stretch;
		gap: 10px;
	}

	.pinlun-btn-primary {
		width: 100%;
		margin-bottom: 0;
		white-space: nowrap;
	}

	.pinlun-sort-bar {
		flex-direction: column;
		align-items: stretch;
		gap: 16px;
	}

	.pinlun-sort-bar .pinlun-sort-actions {
		width: 100%;
		flex-wrap: wrap;
		justify-content: center;
		height: auto;
	}

	.pinlun-avatars-row {
		width: 100%;
		justify-content: center;
		height: auto;
		min-height: 32px;
		padding: 10px 0 0;
	}

	.pinlun-topic-item {
		padding: 10px;
	}

	.pinlun-topic-header-row,
	.pinlun-reply-header {
		flex-direction: column;
		align-items: flex-start;
		gap: 8px;
	}

	.pinlun-topic-actions {
		display: none !important;
	}

	.pinlun-comment-reply-item {
		margin-left: 40px;
	}

	.pinlun-comment-reply-item .pinlun-reply-like,
	.pinlun-comment-reply-item .pinlun-reply-dislike {
		display: none !important;
	}

	.pinlun-post01 img,
	.pinlun-reply-body img {
		width: calc(50% - 18px);
		max-width: calc(50% - 18px);
		height: 40px;
	}
}

.pinlun-modal-upload-btn {
	position: absolute;
	bottom: 10px;
	left: 10px;
	background: none;
	border: none;
	color: #666;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 5px;
	border-radius: 4px;
	transition: all 0.3s ease;
}

.pinlun-modal-upload-btn:hover {
	color: var(--primary);
	background: rgba(0, 0, 0, 0.05);
}

.pinlun-emoji-picker {
	position: absolute;
	top: calc(100% + 6px);
	padding: 12px;
	background: linear-gradient(145deg, #ffffff, #f8fafc);
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	box-shadow: 0 8px 32px rgba(15, 23, 42, .1), 0 2px 8px rgba(15, 23, 42, .05);
	display: none;
	z-index: 1000;
}

.pinlun-emoji-picker::before {
	content: '';
	position: absolute;
	top: -10px;
	left: 32px;
	width: 0;
	height: 0;
	border-left: 10px solid transparent;
	border-right: 10px solid transparent;
	border-bottom: 10px solid #ffffff;
	z-index: 1001;
}

.pinlun-emoji-picker::after {
	content: '';
	position: absolute;
	top: -12px;
	left: 30px;
	width: 0;
	height: 0;
	border-left: 12px solid transparent;
	border-right: 12px solid transparent;
	border-bottom: 12px solid #e2e8f0;
	z-index: 1000;
}

.pinlun-emoji-picker.show {
	display: block;
}

.pinlun-emoji-grid {
	display: grid;
	grid-template-columns: repeat(5, 44px);
	grid-auto-rows: 44px;
	position: relative;
	width: 232px;
	height: 138px;
	margin: 0 auto;
	gap: 3px;
	background: transparent;
	border: none;
	border-radius: 6px;
	overflow-y: auto;
	overflow-x: hidden;
}

.pinlun-emoji-grid::-webkit-scrollbar {
	width: 6px;
	opacity: 0;
	transition: opacity .2s ease;
}

.pinlun-emoji-grid:hover::-webkit-scrollbar {
	opacity: 1;
}

.pinlun-emoji-grid::-webkit-scrollbar-track {
	background: transparent;
	border-radius: 3px;
}

.pinlun-emoji-grid::-webkit-scrollbar-thumb {
	background: #cbd5e1;
	border-radius: 3px;
	opacity: 0;
	transition: opacity .2s ease;
}

.pinlun-emoji-grid:hover::-webkit-scrollbar-thumb {
	opacity: 1;
}

.pinlun-emoji-grid::-webkit-scrollbar-thumb:hover {
	background: #94a3b8;
}

.pinlun-emoji-item {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px !important;
	min-height: 44px !important;
	position: relative;
	z-index: 1;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 6px;
	outline: 0;
	appearance: none;
	background: #f8fafc !important;
	cursor: pointer;
	transition: all .2s cubic-bezier(.4, 0, .2, 1);
	float: none !important;
}

.pinlun-emoji-item:hover {
	background: color-mix(in srgb, var(--primary-color), transparent 85%) !important;
	transform: scale(1.1);
	box-shadow: 0 4px 12px color-mix(in srgb, var(--primary-color), transparent 80%);
}

.pinlun-emoji-item img {
	width: 32px;
	height: 32px;
	object-fit: contain;
	pointer-events: none;
	transition: transform .15s ease, filter .15s ease;
}

.pinlun-emoji-item:hover img {
	transform: scale(1.08);
	filter: drop-shadow(0 1px 2px rgba(59, 130, 246, .16));
}

#pinlun-comment-quill-shell .ql-toolbar button.pinlun-emoji-trigger {
	width: 30px;
	height: 30px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	vertical-align: middle;
	position: relative;
	top: -2px;
}

#pinlun-comment-quill-shell .ql-toolbar button.pinlun-emoji-trigger svg {
	width: 20px;
	height: 20px;
	display: block;
}

#pinlun-comment-quill-editor .ql-editor img[src*="/assets/emoji/"],
.pinlun-post01 img[src*="/assets/emoji/"],
.pinlun-reply-body img[src*="/assets/emoji/"] {
	width: 80px !important;
	max-width: 80px !important;
	height: 80px !important;
	object-fit: contain !important;
	margin: 4px 6px !important;
	border: 0 !important;
	background: transparent !important;
	vertical-align: middle;
}
