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

:root {
 --primary: var(--primary-color, #9333ea);
 --primary-dark: var(--primary-color-dark, #7e22ce);
 --primary-light: var(--primary-color-light, #a855f7);
 --primary-rgb: 147, 51, 234;
 --primary-opacity-10: rgba(var(--primary-rgb), 0.1);
 --secondary: var(--primary-color-light, #a855f7);
 --text-primary: #1e293b;
 --text-secondary: #64748b;
 --text-light: #94a3b8;
 --text-lighter: #94a3b8;
 --bg-primary: #ffffff;
 --bg-secondary: #f8fafc;
 --bg-tertiary: #f1f5f9;
 --bg-quaternary: #e2e8f0;
 --border-color: #e2e8f0;
 --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
 --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}
body {
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 100vh;
	background-color: var(--bg-secondary);
	color: var(--text-primary);
	background: linear-gradient(135deg, var(--bg-secondary) 0%, #f5f3ff 100%);
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	min-height: 100vh;
	position: relative;
	padding: 0;
	overflow-x: hidden;
}
 body::before, body::after {
 content: '';
 position: absolute;
 border-radius: 50%;
 z-index: -1;
 animation: float 20s ease-in-out infinite;
}
 body::before {
 width: 400px;
 height: 400px;
 background: radial-gradient(circle, rgba(147, 51, 234, 0.1) 0%, rgba(147, 51, 234, 0) 70%);
 top: -100px;
 left: -100px;
 animation-delay: 0s;
}
 body::after {
 width: 300px;
 height: 300px;
 background: radial-gradient(circle, rgba(168, 85, 247, 0.1) 0%, rgba(168, 85, 247, 0) 70%);
 bottom: -100px;
 right: -100px;
 animation-delay: -10s;
}
body .bg-decoration {
	position: absolute;
	z-index: -1;
}
 body .bg-decoration:nth-child(1) {
 width: 200px;
 height: 200px;
 background: radial-gradient(circle, rgba(126, 34, 206, 0.05) 0%, rgba(126, 34, 206, 0) 70%);
 border-radius: 50%;
 top: 20%;
 right: 10%;
 animation: float 15s ease-in-out infinite;
 animation-delay: -5s;
}
 body .bg-decoration:nth-child(2) {
 width: 150px;
 height: 150px;
 background: radial-gradient(circle, rgba(243, 192, 18, 0.05) 0%, rgba(243, 192, 18, 0) 70%);
 border-radius: 50%;
 bottom: 20%;
 left: 10%;
 animation: float 18s ease-in-out infinite;
 animation-delay: -7s;
}
 @keyframes float {
 0%,  100% {
 transform: translate(0, 0) scale(1);
}
 25% {
 transform: translate(30px, -30px) scale(1.05);
}
 50% {
 transform: translate(0, 60px) scale(0.95);
}
 75% {
 transform: translate(-30px, -30px) scale(1.1);
}
}
a {
	color: var(--primary);
	text-decoration: none;
	transition: color 0.3s ease;
}
a:hover {
	color: var(--primary-dark);
}
.container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 16px;
}
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 8px 16px;
	border-radius: 6px;
	font-weight: 500;
	font-size: 14px;
	cursor: pointer;
	transition: all 0.3s ease;
	border: none;
	outline: none;
}
.btn-primary {
	background-color: var(--primary);
	color: white;
}
.btn-primary:hover {
	background-color: var(--primary-dark);
	transform: translateY(-1px);
	box-shadow: var(--shadow-md);
}
.btn-secondary {
	background-color: var(--bg-tertiary);
	color: var(--text-secondary);
}
.btn-secondary:hover {
	background-color: var(--bg-quaternary);
}
header {
	background-color: var(--primary);
	color: white;
	position: sticky;
	top: 0;
	z-index: 100;
	box-shadow: var(--shadow-sm);
}
.header-content {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 12px 16px;
}
.logo:hover {
	color: #eee;
}
.status-badge {
	display: inline-block;
	padding: 4px 8px;
	border-radius: 4px;
	font-size: 12px;
	font-weight: 500;
}
.status-pending {
	background-color: #fef3c7;
	color: #92400e;
}
.status-processed {
	background-color: #d1fae5;
	color: #065f46;
}
 .reports-manage th:nth-child(1), .reports-manage td:nth-child(1) {
 width: 80px;
}
 .reports-manage th:nth-child(2), .reports-manage td:nth-child(2) {
 min-width: 150px;
}
 .reports-manage th:nth-child(3), .reports-manage td:nth-child(3) {
 width: 100px;
}
 .reports-manage th:nth-child(4), .reports-manage td:nth-child(4) {
 min-width: 150px;
}
 .reports-manage th:nth-child(5), .reports-manage td:nth-child(5) {
 width: 120px;
}
 .reports-manage th:nth-child(6), .reports-manage td:nth-child(6) {
 width: 150px;
}
 .reports-manage th:nth-child(7), .reports-manage td:nth-child(7) {
 width: 80px;
}
 .reports-manage th:nth-child(8), .reports-manage td:nth-child(8) {
 width: 150px;
}
.logo {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 20px;
	font-weight: 700;
	color: white;
}
.logo-icon {
	width: 24px;
	height: 24px;
}
.nav {
	display: flex;
	align-items: center;
	gap: 20px;
}
.nav a {
	font-size: 14px;
	font-weight: 500;
	color: rgba(255, 255, 255, 0.9);
	padding: 6px 0;
	position: relative;
}
.nav a:hover {
	color: white;
}
 .nav a::after {
 content: '';
 position: absolute;
 bottom: 0;
 left: 0;
 width: 0;
 height: 2px;
 background-color: white;
 transition: width 0.3s ease;
}
 .nav a:hover::after {
 width: 100%;
}
.search-form {
	position: relative;
	max-width: 280px;
	flex: 1;
	margin: 0 16px;
}
.search-form input {
	width: 100%;
	padding: 8px 36px 8px 14px;
	border: 1px solid rgba(255, 255, 255, 0.3);
	border-radius: 20px;
	font-size: 14px;
	outline: none;
	transition: all 0.3s ease;
	background-color: rgba(255, 255, 255, 0.2);
	color: white;
}
 .search-form input::placeholder {
 color: rgba(255, 255, 255, 0.8);
}
.search-form input:focus {
	border-color: white;
	background-color: rgba(255, 255, 255, 0.3);
	box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.2);
}
.search-form button {
	position: absolute;
	right: 10px;
	top: 50%;
	transform: translateY(-50%);
	background: none;
	border: none;
	color: white;
	cursor: pointer;
	font-size: 14px;
}
.user-info {
	display: flex;
	align-items: center;
	gap: 12px;
}
.avatar {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	transition: transform 0.3s ease;
	border: 2px solid rgba(255, 255, 255, 0.3);
}
.main {
	display: grid;
	grid-template-columns: 1fr 300px;
	gap: 20px;
	padding: 20px 0;
}
.table-container {
	width: 100%;
	overflow-x: auto;
	flex: 1;
	margin: 0;
	padding: 0;
}
.admin-table {
	width: 100%;
	min-width: 100%;
	table-layout: auto;
	border-collapse: collapse;
}
.admin-table th, .admin-table td {
	white-space: normal;
	word-wrap: break-word;
	padding: 12px 16px;
	max-width: none;
}
 .admin-table.activities-manage th:nth-child(1), .admin-table.activities-manage td:nth-child(1) {
 min-width: 60px;
 width: 60px;
}
 .admin-table.activities-manage th:nth-child(2), .admin-table.activities-manage td:nth-child(2) {
 min-width: 150px;
 width: 150px;
}
 .admin-table.activities-manage th:nth-child(3), .admin-table.activities-manage td:nth-child(3) {
 min-width: 100px;
 width: 100px;
}
 .admin-table.activities-manage th:nth-child(4), .admin-table.activities-manage td:nth-child(4) {
 min-width: 100px;
 width: 100px;
}
 .admin-table.activities-manage th:nth-child(5), .admin-table.activities-manage td:nth-child(5) {
 min-width: 300px;
 flex-grow: 1;
 max-width: none;
}
body.no-sidebar .main {
	grid-template-columns: 1fr;
	width: 100%;
	max-width: 100%;
}
body.no-sidebar .admin-container {
	display: flex;
	gap: 0;
	width: 100%;
	max-width: 100%;
}
body.no-sidebar .admin-sidebar {
	display: none;
}
body.no-sidebar .admin-content {
	width: 100%;
	max-width: 100%;
	flex: 1 1 100%;
	padding: 0 15px;
	box-sizing: border-box;
}
body.no-sidebar .table-container {
	width: 100%;
	overflow-x: auto;
}
.admin-card {
	width: 100%;
	max-width: 100%;
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}
.sidebar {
	display: flex;
	flex-direction: column;
	gap: 20px;
}
.sidebar-section {
	background-color: var(--bg-primary);
	border-radius: 8px;
	box-shadow: var(--shadow-sm);
	padding: 30px;
}
.sidebar-title {
	font-size: 16px;
	font-weight: 600;
	color: var(--text-primary);
	margin-bottom: 16px;
	display: flex;
	align-items: center;
	gap: 8px;
}
.sidebar-title i {
	color: var(--primary);
}
footer {
	color: white;
	padding: 30px 0;
	margin-top: 20px;
}
.footer-content {
	text-align: center;
	font-size: 13px;
}
.footer-links {
	display: flex;
	justify-content: center;
	gap: 16px;
	margin-bottom: 12px;
	flex-wrap: wrap;
}
.footer-link {
	color: white;
	font-size: 12px;
}
.footer-link:hover {
	color: white;
}
 @media (max-width: 1024px) {
 .main {
 grid-template-columns: 1fr;
}
}
 @media (max-width: 768px) {
 .header-content {
 flex-wrap: wrap;
 gap: 12px;
}
 .nav {
 order: 4;
 width: 100%;
 justify-content: center;
 gap: 16px;
}
 .search-form {
 max-width: none;
 margin: 0;
 order: 3;
 width: 100%;
}
 .post-container,  .comments-section {
 padding: 16px;
}
 .post-title {
 font-size: 20px;
}
}
 @media (max-width: 480px) {
 .header-content {
 padding: 10px;
}
 .main {
 padding: 12px 0;
 gap: 16px;
}
}
.text-center {
	text-align: center;
}
.text-muted {
	color: var(--text-secondary);
}
.mt-1 {
	margin-top: 8px;
}
.mt-2 {
	margin-top: 16px;
}
.mt-3 {
	margin-top: 24px;
}
.mb-1 {
	margin-bottom: 8px;
}
.mb-2 {
	margin-bottom: 16px;
}
.mb-3 {
	margin-bottom: 24px;
}
.post-title {
	font-size: 24px;
	font-weight: 700;
	color: var(--text-primary);
	margin-bottom: 16px;
	line-height: 1.3;
}
.badge {
	display: inline-block;
	padding: 2px 8px;
	border-radius: 12px;
	font-size: 12px;
	font-weight: 500;
	margin-right: 6px;
}
.badge-property {
	background-color: #f59e0b;
	color: white;
}
.post-meta {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-bottom: 20px;
	padding-bottom: 16px;
	border-bottom: 1px solid var(--border-color);
	font-size: 14px;
	color: var(--text-secondary);
}
.post-author {
	display: flex;
	align-items: center;
	gap: 8px;
}
.author-avatar {
	width: 36px;
	height: 36px;
	border-radius: 50%;
}
.post-content {
	color: var(--text-primary);
	line-height: 1.8;
}
.post-content p {
	margin-bottom: 12px;
}
.post-content img {
	max-width: 100%;
	height: auto;
	border-radius: 50%;
	margin: 16px 0;
	margin-right: 10px;
}
.post-tags {
	display: flex;
	gap: 8px;
	margin-bottom: 20px;
	flex-wrap: wrap;
}
.post-tag {
	padding: 4px 12px;
	border-radius: 16px;
	background-color: var(--bg-tertiary);
	color: var(--text-secondary);
	font-size: 12px;
	transition: all 0.3s ease;
}
.post-tag:hover {
	background-color: var(--primary-light);
	color: white;
}
.post-actions {
	display: flex;
	justify-content: space-between;
	padding-top: 16px;
	border-top: 1px solid var(--border-color);
}
.post-actions-left {
	display: flex;
	gap: 12px;
}
.post-actions-right {
	display: flex;
	gap: 12px;
}
.post-action {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 8px 16px;
	border-radius: 6px;
	cursor: pointer;
	transition: all 0.3s ease;
	border: none;
	font-size: 14px;
}
.post-like {
	background-color: #16a34a;
	color: white;
}
.post-like:hover {
	background-color: #15803d;
	transform: translateY(-1px);
}
.post-like.liked {
	background-color: #e0e7ff;
	color: #4f46e5;
}
.post-share {
	background-color: #3b82f6;
	color: white;
}
.post-share:hover {
	background-color: #2563eb;
	transform: translateY(-1px);
}
.post-report {
	background-color: #ef4444;
	color: white;
}
.post-report:hover {
	background-color: #dc2626;
	transform: translateY(-1px);
}
.modal {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.5);
	justify-content: center;
	align-items: center;
	z-index: 1000;
}
.modal-content {
	background-color: white;
	padding: 24px;
	border-radius: 8px;
	width: 90%;
	max-width: 400px;
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
.modal-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 16px;
	padding-bottom: 12px;
	border-bottom: 1px solid #e5e7eb;
}
.modal-title {
	font-size: 18px;
	font-weight: 600;
	margin: 0;
}
.close-btn {
	background: none;
	border: none;
	font-size: 24px;
	cursor: pointer;
	color: #6b7280;
}
.share-options {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin-bottom: 20px;
}
.share-option {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px;
	border: 1px solid #e5e7eb;
	border-radius: 6px;
	cursor: pointer;
	transition: all 0.3s ease;
}
.share-option:hover {
	background-color: #f9fafb;
	border-color: #d1d5db;
}
.share-option-icon {
	width: 40px;
	height: 40px;
	display: flex;
	justify-content: center;
	align-items: center;
	border-radius: 50%;
	color: white;
	font-size: 20px;
}
.share-text {
	flex: 1;
}
.copy-link-container {
	display: flex;
	gap: 8px;
	margin-top: 16px;
}
.share-link-input {
	flex: 1;
	padding: 8px 12px;
	border: 1px solid #e5e7eb;
	border-radius: 4px;
	font-size: 14px;
}
.copy-btn {
	padding: 8px 16px;
	background-color: #3b82f6;
	color: white;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	transition: background-color 0.3s ease;
}
.copy-btn:hover {
	background-color: #2563eb;
}
.comments-section {
	background-color: var(--bg-primary);
	border-radius: 8px;
	box-shadow: var(--shadow-sm);
	padding: 50px;
}
.section-title {
	font-size: 18px;
	font-weight: 600;
	color: var(--text-primary);
	margin-bottom: 20px;
	display: flex;
	align-items: center;
	gap: 8px;
}
.section-title i {
	color: var(--primary);
}
.comment-form {
	margin-bottom: 24px;
}
.comment-form textarea {
	width: 100%;
	min-height: 120px;
	padding: 12px;
	border: 1px solid var(--border-color);
	border-radius: 6px;
	font-size: 14px;
	font-family: inherit;
	resize: vertical;
	outline: none;
}
.comment-form textarea:focus {
	border-color: var(--primary);
}
.comment-form-footer {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-top: 12px;
}
.char-count {
	font-size: 12px;
	color: var(--text-secondary);
}
.comments-list {
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 16px;
}
.comment-item {
	display: flex;
	gap: 12px;
	padding: 16px;
	background-color: var(--bg-tertiary);
	border-radius: 6px;
}
.comment-avatar {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	flex-shrink: 0;
}
.comment-content {
	flex: 1;
}
.comment-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 6px;
}
.comment-author {
	font-weight: 600;
	color: var(--text-primary);
	font-size: 14px;
}
.comment-time {
	font-size: 12px;
	color: var(--text-secondary);
}
.comment-text {
	font-size: 14px;
	line-height: 1.6;
	margin-bottom: 8px;
}
.comment-actions {
	display: flex;
	gap: 12px;
}
.comment-action {
	font-size: 12px;
	color: var(--text-secondary);
	cursor: pointer;
	display: flex;
	align-items: center;
	gap: 4px;
}
.comment-action:hover {
	color: var(--primary);
}
.author-info {
	text-align: center;
}
.author-large-avatar {
	width: 80px;
	height: 80px;
	border-radius: 50%;
	margin-bottom: 12px;
}
.author-name {
	font-size: 16px;
	font-weight: 600;
	color: var(--text-primary);
	margin-bottom: 4px;
}
.author-level {
	font-size: 12px;
	color: var(--primary);
	margin-bottom: 12px;
}
.related-posts-list {
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 12px;
}
.related-post-item {
	display: flex;
	gap: 12px;
	transition: transform 0.3s ease;
	border-bottom: 1px solid var(--border-color);
	padding-bottom: 10px;
}
.related-post-item:hover {
	transform: translateX(2px);
}
.related-post-thumbnail {
	width: 60px;
	height: 60px;
	border-radius: 4px;
	object-fit: cover;
	flex-shrink: 0;
}
.related-post-title {
	font-size: 14px;
	color: var(--text-primary);
	line-height: 1.4;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.error-container {
	background: white;
	border-radius: 8px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
	padding: 28px 20px;
	text-align: center;
	max-width: 420px;
	width: 90%;
	border: 1px solid var(--border-color);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.error-container h1 {
	color: #1e293b;
	font-size: 28px;
	font-weight: 700;
	margin-bottom: 16px;
	line-height: 1.3;
}
.error-container p {
	color: #64748b;
	font-size: 16px;
	line-height: 1.6;
	margin-bottom: 24px;
}
.error-icon {
	font-size: 72px;
	color: #ef4444;
}
.progress-container {
	background-color: #f3f4f6;
	border-radius: 12px;
	height: 4px;
	width: 90%;
	margin: 0px 0;
	overflow: hidden;
	visibility: visible;
	opacity: 1;
	margin: 0 auto
}
.progress-bar {
	background: linear-gradient(90deg, #3b82f6, #60a5fa);
	height: 100%;
	width: 0%;
	transition: width 0.1s ease;
	border-radius: 12px;
	box-shadow: 0 0 5px rgba(59, 130, 246, 0.5);
}
 margin-bottom: 28px;
transition: transform 0.3s ease;
}
.error-icon:hover {
	transform: scale(1.1);
}
.error-list, .checklist {
	background-color: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	padding: 20px;
	text-align: left;
	margin: 24px 0;
}
.error-item, .checklist li {
	color: #64748b;
	margin-bottom: 10px;
	line-height: 1.6;
	font-size: 15px;
	list-style-type: disc;
	list-style-position: inside;
}
.error-item:last-child, .checklist li:last-child {
	margin-bottom: 0;
}
.environment-info {
	margin-top: 20px;
	font-size: 14px;
	color: #666;
	text-align: left;
	background-color: #f8f9fa;
	border-radius: 6px;
	padding: 15px;
}
.retry-btn {
	background-color: #3b82f6;
	color: white;
	border: none;
	border-radius: 8px;
	padding: 12px 28px;
	cursor: pointer;
	font-size: 16px;
	font-weight: 500;
	transition: all 0.3s ease;
	box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
	margin-top: 20px;
}
.retry-btn:hover {
	background-color: #2563eb;
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}
.retry-btn:active {
	transform: translateY(0);
}
.checklist {
	text-align: left;
	margin: 24px 20px;
}
.checklist li {
	margin-bottom: 10px;
	color: #64748b;
}
.error-details {
	background-color: #f8f9fa;
	border: 1px solid #e2e8f0;
	border-radius: 6px;
	padding: 15px;
	text-align: left;
	font-family: monospace;
	font-size: 14px;
	color: #e74c3c;
	margin: 24px 0;
	white-space: pre-wrap;
	word-break: break-all;
}
