/* 评论 / 留言板组件（index.html 阅读器与 chat.html 留言板共用） */
.comment-panel {
	width: 100%;
	margin-top: 22px;
	padding-top: 18px;
	border-top: 1px dashed rgba(226, 212, 247, 0.9);
	font-family: "Segoe UI", "Microsoft YaHei", sans-serif;
}

.comment-head {
	display: flex;
	align-items: baseline;
	gap: 12px;
	margin-bottom: 14px;
}

.comment-title {
	font-size: 1.1rem;
	font-family: "ZCOOL KuaiLe", "Microsoft YaHei", sans-serif;
	color: #65557c;
}

.comment-count {
	font-size: 0.85rem;
	color: #a393b8;
}

.comment-status {
	min-height: 22px;
	margin-bottom: 10px;
}

.comment-login-hint,
.comment-status-text,
.comment-error {
	font-size: 0.88rem;
	line-height: 1.7;
	color: #9a8fb1;
}

.comment-error {
	color: #d96a8a;
}

.comment-login-link {
	color: #ab5f84;
	text-decoration: none;
	border-bottom: 1px dashed rgba(171, 95, 132, 0.6);
}

.comment-login-link:hover {
	border-bottom-style: solid;
}

.comment-form {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-bottom: 18px;
}

.comment-reply-hint {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 0.85rem;
	color: #8b72a4;
	background: rgba(245, 237, 255, 0.72);
	border: 1px solid rgba(229, 210, 252, 0.95);
	border-radius: 10px;
	padding: 6px 10px;
}

.comment-reply-cancel {
	border: none;
	background: transparent;
	color: #ab5f84;
	font-size: 0.82rem;
	font-family: inherit;
	cursor: pointer;
	padding: 0;
}

.comment-reply-cancel:hover {
	text-decoration: underline;
}

.comment-textarea {
	width: 100%;
	resize: vertical;
	min-height: 78px;
	padding: 10px 12px;
	border: 1px solid rgba(229, 210, 252, 0.95);
	border-radius: 12px;
	background: rgba(255, 251, 255, 0.92);
	color: #5d5372;
	font-size: 0.92rem;
	font-family: inherit;
	line-height: 1.7;
	outline: none;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.comment-textarea:focus {
	border-color: rgba(191, 168, 244, 0.9);
	box-shadow: 0 0 0 3px rgba(191, 168, 244, 0.18);
}

.comment-textarea:disabled {
	opacity: 0.62;
	cursor: not-allowed;
}

.comment-form-footer {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 12px;
}

.comment-form-error {
	flex: 1;
	font-size: 0.84rem;
	color: #d96a8a;
}

.comment-submit {
	min-width: 96px;
	height: 34px;
	padding: 0 14px;
	border: 1px solid rgba(229, 210, 252, 0.95);
	border-radius: 999px;
	background: linear-gradient(135deg, rgba(255, 241, 248, 0.96) 0%, rgba(245, 237, 255, 0.96) 100%);
	color: #8b72a4;
	font-size: 0.86rem;
	font-family: "Segoe UI", "Microsoft YaHei", sans-serif;
	cursor: pointer;
	transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.comment-submit:hover:not(:disabled) {
	transform: translateY(-1px);
	box-shadow: 0 7px 14px rgba(186, 160, 226, 0.2);
}

.comment-submit:disabled {
	opacity: 0.56;
	cursor: not-allowed;
}

.comment-list-wrap {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.comment-item {
	padding: 12px 14px;
	border-radius: 14px;
	background: rgba(255, 251, 255, 0.8);
	border: 1px solid rgba(238, 228, 255, 0.92);
	box-shadow: 0 4px 12px rgba(185, 165, 228, 0.1);
}

.comment-meta {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 6px;
}

.comment-user {
	font-weight: 600;
	font-size: 0.9rem;
	color: #65557c;
}

.comment-time {
	font-size: 0.78rem;
	color: #b3a6c6;
}

.comment-reply-btn,
.comment-delete-btn {
	border: none;
	background: transparent;
	color: #a393b8;
	font-size: 0.8rem;
	font-family: inherit;
	cursor: pointer;
	padding: 0;
}

.comment-reply-btn:hover,
.comment-delete-btn:hover {
	color: #ab5f84;
	text-decoration: underline;
}

.comment-delete-btn {
	color: #d9a0b2;
}

.comment-delete-btn:hover {
	color: #d96a8a;
}

.comment-content {
	font-size: 0.92rem;
	line-height: 1.75;
	color: #5d5372;
	white-space: pre-wrap;
	word-wrap: anywhere;
}

.comment-children {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-top: 10px;
	padding-left: 14px;
	border-left: 2px solid rgba(229, 210, 252, 0.7);
}

.comment-item-child {
	background: rgba(247, 243, 255, 0.72);
	border-color: rgba(238, 228, 255, 0.8);
	box-shadow: none;
	padding: 10px 12px;
}

.comment-pagination {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 14px;
	margin-top: 16px;
}

.comment-page-btn {
	min-width: 84px;
	height: 32px;
	padding: 0 12px;
	border: 1px solid rgba(229, 210, 252, 0.95);
	border-radius: 999px;
	background: rgba(255, 251, 255, 0.92);
	color: #8b72a4;
	font-size: 0.84rem;
	font-family: inherit;
	cursor: pointer;
	transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.comment-page-btn:hover:not(:disabled) {
	transform: translateY(-1px);
	box-shadow: 0 7px 14px rgba(186, 160, 226, 0.2);
}

.comment-page-btn:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

.comment-page-info {
	font-size: 0.84rem;
	color: #a393b8;
}

/* 留言板页面布局（chat.html） */
.board-page {
	min-height: 100vh;
	max-width: 860px;
	margin: 0 auto;
	padding: 88px 18px 48px;
	box-sizing: border-box;
	font-family: "Segoe UI", "Microsoft YaHei", sans-serif;
}

.board-header {
	text-align: center;
	margin-bottom: 26px;
}

.board-kicker {
	margin: 0 0 6px;
	font-size: 0.85rem;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: #a393b8;
}

.board-header h1 {
	margin: 0 0 8px;
	font-family: "ZCOOL KuaiLe", "Microsoft YaHei", sans-serif;
	font-size: clamp(1.6rem, 3vw, 2.1rem);
	color: #65557c;
}

.board-subtitle {
	margin: 0;
	color: #9a8fb1;
	font-size: 0.92rem;
}

.board-comments {
	background: rgba(255, 255, 255, 0.9);
	border: 1px solid rgba(238, 228, 255, 0.92);
	border-radius: 20px;
	box-shadow: 0 10px 28px rgba(185, 165, 228, 0.15);
	backdrop-filter: blur(8px);
	padding: 22px 24px;
}

.board-comments .comment-panel {
	margin-top: 0;
	padding-top: 0;
	border-top: none;
}
