/* 基础样式重置 */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

:root {
	--primary-color: #ff2442;
	--primary-hover: #e02040;
	--secondary-color: #6c757d;
	--text-primary: #333;
	--text-secondary: #666;
	--text-light: #999;
	--bg-primary: #fff;
	--bg-secondary: #f5f5f5;
	--bg-tertiary: #f0f2f5;
	--border-color: #e0e0e0;
	--shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
	--shadow-lg: 0 4px 20px rgba(0, 0, 0, 0.15);
	--shadow-sm: 0 1px 4px rgba(0, 0, 0, 0.08);
	--shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
	--radius: 12px;
	--radius-lg: 16px;
	--radius-sm: 8px;
	--border-radius-sm: 8px;
	--border-radius-md: 12px;
	--border-radius-lg: 16px;
	--transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	--gradient-primary: linear-gradient(135deg, var(--primary-color) 0%, #ff4d6d 100%);
	--gradient-secondary: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
	--font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

body {
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
	background-color: var(--bg-secondary);
	color: var(--text-primary);
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	scroll-behavior: smooth;
	overflow-x: hidden;
}

a {
	text-decoration: none;
	color: inherit;
}

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

/* 公告展示 */
.announcement-container {
	margin: 20px 0;
	padding: 0;
}

.announcement {
	background: var(--bg-primary);
	border-radius: var(--radius);
	padding: 16px 20px;
	margin-bottom: 12px;
	box-shadow: var(--shadow-sm);
	transition: var(--transition);
	border-left: 4px solid var(--primary-color);
}

.announcement:hover {
	box-shadow: var(--shadow-md);
	transform: translateY(-2px);
}

.announcement.info {
	border-left-color: #17a2b8;
	background: linear-gradient(135deg, #f8f9fa 0%, #e3f2fd 100%);
}

.announcement.warning {
	border-left-color: #ffc107;
	background: linear-gradient(135deg, #fff8e1 0%, #fff3cd 100%);
}

.announcement.success {
	border-left-color: #28a745;
	background: linear-gradient(135deg, #f8f9fa 0%, #d4edda 100%);
}

.announcement.danger {
	border-left-color: #dc3545;
	background: linear-gradient(135deg, #fff5f5 0%, #f8d7da 100%);
}

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

.announcement-title {
	font-size: 16px;
	font-weight: 600;
	color: var(--text-primary);
}

.announcement-time {
	font-size: 12px;
	color: var(--text-light);
}

.announcement-content {
	font-size: 14px;
	color: var(--text-secondary);
	line-height: 1.5;
}

/* 公告弹窗 */
.announcement-popup {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.5);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 1000;
	opacity: 0;
	visibility: hidden;
	transition: all 0.3s ease;
}

.announcement-popup.show {
	opacity: 1;
	visibility: visible;
}

.popup-content {
	background: var(--bg-primary);
	border-radius: var(--radius);
	width: 90%;
	max-width: 500px;
	max-height: 80vh;
	overflow-y: auto;
	box-shadow: var(--shadow-lg);
	transform: translateY(-20px);
	transition: transform 0.3s ease;
}

.announcement-popup.show .popup-content {
	transform: translateY(0);
}

.popup-header {
	padding: 20px;
	border-bottom: 1px solid var(--border-color);
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.popup-header h3 {
	margin: 0;
	font-size: 18px;
	font-weight: 600;
	color: var(--text-primary);
	text-align: center;
	flex: 1;
}

.popup-close {
	background: none;
	border: none;
	font-size: 24px;
	cursor: pointer;
	color: var(--text-light);
	padding: 0;
	width: 30px;
	height: 30px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	transition: all 0.2s ease;
}

.popup-close:hover {
	background: var(--bg-secondary);
	color: var(--text-primary);
}

.popup-body {
	padding: 20px;
}

.popup-body p {
	margin: 0;
	font-size: 14px;
	color: var(--text-secondary);
	line-height: 1.6;
	text-indent: 2em;
}

.popup-footer {
	padding: 20px;
	border-top: 1px solid var(--border-color);
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.popup-footer span {
	font-size: 12px;
	color: var(--text-light);
}

.popup-btn {
	background: var(--primary-color);
	color: white;
	border: none;
	padding: 8px 16px;
	border-radius: var(--radius);
	cursor: pointer;
	font-size: 14px;
	transition: all 0.2s ease;
}

.popup-btn:hover {
	background: var(--primary-hover);
	transform: translateY(-1px);
}

/* 响应式弹窗 */
@media (max-width: 768px) {
	.popup-content {
		width: 95%;
		max-height: 90vh;
	}

	.popup-header,
	.popup-body,
	.popup-footer {
		padding: 16px;
	}

	.popup-header h3 {
		font-size: 16px;
	}

	.popup-body p {
		font-size: 13px;
	}
}

/* 头部导航 */
.header {
	background: var(--bg-primary);
	box-shadow: var(--shadow);
	position: sticky;
	top: 0;
	z-index: 1000;
	transition: var(--transition);
}

.header.scrolled {
	box-shadow: var(--shadow-lg);
	background: rgba(255, 255, 255, 0.95);
	backdrop-filter: blur(10px);
}

.header .container {
	display: flex;
	align-items: center;
	height: 64px;
	gap: 24px;
	transition: var(--transition);
}

.logo {
	flex-shrink: 0;
}

.logo img {
	height: 32px;
}

.search-box {
	flex: 1;
	max-width: 400px;
	margin: 0 20px;
	position: relative;
	transition: var(--transition);
}

.search-box input {
	width: 100%;
	padding: 12px 44px 12px 16px;
	border: 1px solid var(--border-color);
	border-radius: 24px;
	font-size: 14px;
	outline: none;
	transition: var(--transition);
	background: var(--bg-secondary);
	box-shadow: var(--shadow-sm);
}

.search-box input:focus {
	border-color: var(--primary-color);
	background: var(--bg-primary);
	box-shadow: 0 0 0 3px rgba(255, 36, 66, 0.1);
	transform: translateY(-1px);
}

.search-box button {
	position: absolute;
	right: 6px;
	top: 50%;
	transform: translateY(-50%);
	background: var(--gradient-primary);
	color: white;
	border: none;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: var(--transition);
	box-shadow: var(--shadow-sm);
}

.search-box button:hover {
	transform: translateY(-50%) scale(1.05);
	box-shadow: 0 4px 12px rgba(255, 36, 66, 0.3);
}

.nav {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-shrink: 0;
}

.nav a {
	font-size: 15px;
	color: var(--text-secondary);
	transition: var(--transition);
	padding: 10px 18px;
	border-radius: 24px;
	white-space: nowrap;
	position: relative;
	overflow: hidden;
}

.nav a::before {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	width: 0;
	height: 0;
	border-radius: 50%;
	background: rgba(255, 36, 66, 0.1);
	transform: translate(-50%, -50%);
	transition: width 0.6s, height 0.6s;
}

.nav a:hover::before {
	width: 300px;
	height: 300px;
}

.nav a:hover {
	color: var(--primary-color);
	transform: translateY(-1px);
}

.nav a.active {
	color: var(--primary-color);
	font-weight: 500;
	background: rgba(255, 36, 66, 0.1);
}

.publish-btn {
	background: var(--gradient-primary) !important;
	color: white !important;
	box-shadow: var(--shadow-sm);
}

.publish-btn:hover {
	transform: translateY(-2px) !important;
	box-shadow: 0 4px 12px rgba(255, 36, 66, 0.3) !important;
}

.user-actions {
	flex-shrink: 0;
	margin-left: auto;
}

.user-actions {
	display: flex;
	align-items: center;
	gap: 16px;
}

.user-actions .avatar {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	object-fit: cover;
	cursor: pointer;
	transition: var(--transition);
	border: 2px solid transparent;
}

.user-actions .avatar:hover {
	transform: scale(1.1);
	border-color: var(--primary-color);
	box-shadow: 0 4px 12px rgba(255, 36, 66, 0.3);
}

.btn-login {
	background: var(--gradient-primary);
	color: white;
	padding: 10px 24px;
	border-radius: 24px;
	font-size: 14px;
	font-weight: 500;
	transition: var(--transition);
	box-shadow: var(--shadow-sm);
	cursor: pointer;
	border: none;
}

.btn-login:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(255, 36, 66, 0.3);
}

/* 标签导航 */
.tags-nav {
	display: flex;
	gap: 12px;
	padding: 20px 0;
	overflow-x: auto;
	scrollbar-width: none;
	-ms-overflow-style: none;
}

.tags-nav::-webkit-scrollbar {
	display: none;
}

.tags-nav a {
	white-space: nowrap;
	padding: 10px 20px;
	border-radius: 24px;
	background: var(--bg-primary);
	color: var(--text-secondary);
	font-size: 14px;
	font-weight: 500;
	transition: var(--transition);
	box-shadow: var(--shadow-sm);
	position: relative;
	overflow: hidden;
}

.tags-nav a::before {
	content: '';
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
	transition: left 0.6s;
}

.tags-nav a:hover::before {
	left: 100%;
}

.tags-nav a:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(255, 36, 66, 0.2);
}

.tags-nav a.active {
	background: var(--gradient-primary);
	color: white;
	box-shadow: 0 4px 12px rgba(255, 36, 66, 0.3);
	transform: translateY(-2px);
}

/* 瀑布流布局 */
.waterfall {
	column-count: 5;
	column-gap: 20px;
	padding: 0 4px;
}

/* 瀑布流动画效果 */
@keyframes fadeInUp {
	from {
		opacity: 0;
		transform: translateY(20px);
	}

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

/* 笔记卡片 */
.note-card {
	break-inside: avoid;
	margin-bottom: 20px;
	background: var(--bg-primary);
	border-radius: var(--radius-lg);
	overflow: hidden;
	box-shadow: var(--shadow);
	transition: var(--transition);
	cursor: pointer;
	position: relative;
	animation: fadeInUp 0.6s ease-out forwards;
}

.note-card::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 4px;
	background: var(--gradient-primary);
	transform: scaleX(0);
	transition: transform 0.3s ease;
}

.note-card:hover::before {
	transform: scaleX(1);
}

.note-card:hover {
	transform: translateY(-8px) scale(1.02);
	box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.note-card .cover {
	width: 100%;
	display: block;
}

.cover-container {
	position: relative;
	overflow: hidden;
}

.media-type-indicator {
	position: absolute;
	top: 10px;
	left: 10px;
	background: rgba(0, 0, 0, 0.7);
	color: white;
	padding: 4px 12px;
	border-radius: 12px;
	font-size: 12px;
	font-weight: 500;
	z-index: 1;
	backdrop-filter: blur(2px);
	transition: all 0.3s ease;
	opacity: 0;
	transform: translateY(-10px);
}

.cover-container:hover .media-type-indicator {
	opacity: 1;
	transform: translateY(0);
}

.media-type-indicator:hover {
	background: rgba(0, 0, 0, 0.9);
	transform: scale(1.05);
}

.cover-overlay {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0);
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.3s ease;
	z-index: 0;
}

.cover-container:hover .cover-overlay {
	background: rgba(0, 0, 0, 0.3);
}

.cover-overlay i {
	color: white;
	font-size: 24px;
	opacity: 0;
	transition: all 0.3s ease;
	background: rgba(0, 0, 0, 0.5);
	padding: 12px;
	border-radius: 50%;
}

.cover-container:hover .cover-overlay i {
	opacity: 1;
	transform: scale(1.1);
}

.note-card .content {
	padding: 12px;
}

.note-card .title {
	font-size: 14px;
	line-height: 1.5;
	margin-bottom: 8px;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.note-card .author {
	display: flex;
	align-items: center;
	gap: 8px;
}

.note-card .author .follow-btn {
	margin-left: auto;
	padding: 4px 12px;
	border: 1px solid var(--primary-color);
	border-radius: 16px;
	background: white;
	color: var(--primary-color);
	font-size: 12px;
	cursor: pointer;
	transition: all 0.3s ease;
	position: relative;
	overflow: hidden;
	white-space: nowrap;
	min-width: 60px;
	text-align: center;
}

.note-card .author .follow-btn:hover {
	background: #fff5f5;
	transform: translateY(-1px);
}

.note-card .author .follow-btn.following {
	background: #ff2442;
	color: white;
	border-color: #ff2442;
}

.note-card .author .follow-btn.following:hover {
	background: #e01e3a;
	border-color: #e01e3a;
}

/* 涟漪效果 */
.note-card .author .follow-btn::after {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	width: 0;
	height: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.5);
	transform: translate(-50%, -50%);
	transition: width 0.6s, height 0.6s;
}

.note-card .author .follow-btn:active::after {
	width: 300px;
	height: 300px;
}

.note-card .author img {
	width: 24px;
	height: 24px;
	border-radius: 50%;
}

.note-card .author span {
	font-size: 12px;
	color: var(--text-light);
}

.note-card .actions {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-top: 10px;
	padding-top: 10px;
	border-top: 1px solid var(--border-color);
}

.note-card .actions button {
	background: none;
	border: none;
	color: var(--text-light);
	font-size: 12px;
	cursor: pointer;
	display: flex;
	align-items: center;
	gap: 4px;
}

.note-card .actions button:hover {
	color: var(--primary-color);
}

.note-card .actions button.liked {
	color: var(--primary-color);
}

/* 加载更多 */
.load-more {
	text-align: center;
	padding: 40px 0;
}

.btn-load {
	background: var(--bg-primary);
	border: 1px solid var(--border-color);
	padding: 14px 48px;
	border-radius: 28px;
	cursor: pointer;
	font-size: 14px;
	font-weight: 500;
	transition: var(--transition);
	box-shadow: var(--shadow-sm);
	position: relative;
	overflow: hidden;
}

.btn-load::before {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	width: 0;
	height: 0;
	border-radius: 50%;
	background: rgba(255, 36, 66, 0.1);
	transform: translate(-50%, -50%);
	transition: width 0.6s, height 0.6s;
}

.btn-load:hover::before {
	width: 300px;
	height: 300px;
}

.btn-load:hover {
	border-color: var(--primary-color);
	color: var(--primary-color);
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(255, 36, 66, 0.2);
}

/* 弹窗 */
.modal {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.6);
	z-index: 2000;
	justify-content: center;
	align-items: center;
	backdrop-filter: blur(10px);
	transition: var(--transition);
}

.modal.show {
	display: flex;
	animation: fadeIn 0.3s ease;
}

.modal-content {
	background: var(--bg-primary);
	border-radius: var(--radius-lg);
	padding: 32px;
	width: 90%;
	max-width: 420px;
	position: relative;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
	transform: scale(0.9);
	opacity: 0;
	transition: var(--transition);
}

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

@keyframes fadeIn {
	from {
		opacity: 0;
	}

	to {
		opacity: 1;
	}
}

.modal .close {
	position: absolute;
	right: 15px;
	top: 15px;
	font-size: 24px;
	cursor: pointer;
	color: var(--text-light);
}

.auth-tabs {
	display: flex;
	gap: 20px;
	margin-bottom: 20px;
	border-bottom: 1px solid var(--border-color);
}

.tab-btn {
	background: none;
	border: none;
	padding: 10px 0;
	font-size: 16px;
	cursor: pointer;
	color: var(--text-secondary);
	position: relative;
}

.tab-btn.active {
	color: var(--primary-color);
}

.tab-btn.active::after {
	content: '';
	position: absolute;
	bottom: -1px;
	left: 0;
	right: 0;
	height: 2px;
	background: var(--primary-color);
}

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

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

.form-group input {
	width: 100%;
	padding: 12px 15px;
	border: 1px solid var(--border-color);
	border-radius: 8px;
	font-size: 14px;
	outline: none;
}

.form-group input:focus {
	border-color: var(--primary-color);
}

.btn-submit {
	width: 100%;
	padding: 12px;
	background: var(--primary-color);
	color: white;
	border: none;
	border-radius: 8px;
	font-size: 16px;
	cursor: pointer;
	transition: background 0.3s;
}

.btn-submit:hover {
	background: var(--primary-hover);
}

/* 回到顶部 */
.back-to-top {
	position: fixed;
	right: 32px;
	bottom: 32px;
	width: 52px;
	height: 52px;
	background: var(--gradient-primary);
	border: none;
	border-radius: 50%;
	box-shadow: 0 4px 20px rgba(255, 36, 66, 0.4);
	cursor: pointer;
	display: none;
	align-items: center;
	justify-content: center;
	font-size: 20px;
	color: white;
	transition: var(--transition);
	z-index: 999;
	transform: translateY(100px);
	opacity: 0;
}

.back-to-top.show {
	display: flex;
	transform: translateY(0);
	opacity: 1;
	animation: bounceInUp 0.6s ease;
}

.back-to-top:hover {
	transform: translateY(-4px) scale(1.1);
	box-shadow: 0 6px 24px rgba(255, 36, 66, 0.5);
}

@keyframes bounceInUp {
	from {
		opacity: 0;
		transform: translateY(100px);
	}

	60% {
		opacity: 1;
		transform: translateY(-20px);
	}

	80% {
		transform: translateY(10px);
	}

	100% {
		transform: translateY(0);
	}
}

/* 笔记详情页 */
.note-detail {
	display: grid;
	grid-template-columns: 1fr 400px;
	gap: 20px;
	padding: 20px 0;
}

.note-images {
	background: var(--bg-primary);
	border-radius: var(--radius);
	overflow: hidden;
}

.note-images img {
	width: 100%;
	display: block;
}

.note-info {
	background: var(--bg-primary);
	border-radius: var(--radius);
	padding: 20px;
}

.note-author {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 20px;
	padding-bottom: 20px;
	border-bottom: 1px solid var(--border-color);
}

.note-author img {
	width: 48px;
	height: 48px;
	border-radius: 50%;
}

.note-author .info h4 {
	font-size: 16px;
	margin-bottom: 4px;
}

.note-author .info p {
	font-size: 13px;
	color: var(--text-light);
}

.note-author .follow-btn {
	margin-left: auto;
	padding: 8px 20px;
	border: 1px solid var(--primary-color);
	border-radius: 20px;
	background: white;
	color: var(--primary-color);
	font-size: 14px;
	cursor: pointer;
	transition: all 0.3s ease;
	position: relative;
	overflow: hidden;
}

.note-author .follow-btn:hover {
	background: #fff5f5;
	transform: translateY(-1px);
}

.note-author .follow-btn.following {
	background: linear-gradient(135deg, var(--primary-color) 0%, #ff4d6d 100%);
	color: white;
	border-color: var(--primary-color);
}

.note-author .follow-btn.following:hover {
	background: linear-gradient(135deg, #ff4d6d 0%, var(--primary-color) 100%);
}

/* 涟漪效果 */
.note-author .follow-btn::after {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	width: 0;
	height: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.5);
	transform: translate(-50%, -50%);
	transition: width 0.6s, height 0.6s;
}

.note-author .follow-btn:active::after {
	width: 300px;
	height: 300px;
}

.note-content h1 {
	font-size: 20px;
	margin-bottom: 12px;
}

.note-content p {
	font-size: 15px;
	line-height: 1.8;
	color: var(--text-secondary);
	margin-bottom: 16px;
}

.note-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 20px;
}

.note-tags span {
	background: var(--bg-secondary);
	padding: 6px 12px;
	border-radius: 16px;
	font-size: 13px;
	color: var(--primary-color);
}

.note-stats {
	display: flex;
	gap: 20px;
	padding: 16px 0;
	border-top: 1px solid var(--border-color);
	border-bottom: 1px solid var(--border-color);
	margin-bottom: 20px;
}

.note-stats span {
	font-size: 14px;
	color: var(--text-light);
}

.note-actions-bar {
	display: flex;
	gap: 12px;
}

.note-actions-bar button {
	flex: 1;
	padding: 12px;
	border: 1px solid var(--border-color);
	background: var(--bg-primary);
	border-radius: 8px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	transition: all 0.3s;
}

.note-actions-bar button:hover,
.note-actions-bar button.active {
	border-color: var(--primary-color);
	color: var(--primary-color);
}

/* 评论区 */
.comments-section {
	margin-top: 30px;
	padding-top: 20px;
	border-top: 1px solid var(--border-color);
}

.comments-section h3 {
	font-size: 18px;
	font-weight: 600;
	margin-bottom: 20px;
	color: var(--text-primary);
	display: flex;
	align-items: center;
	gap: 8px;
}

.comments-section h3::before {
	content: '';
	width: 4px;
	height: 20px;
	background: var(--primary-color);
	border-radius: 2px;
}

.comment-input {
	display: flex;
	gap: 12px;
	margin-bottom: 24px;
	padding: 16px;
	background: var(--bg-secondary);
	border-radius: var(--radius);
	transition: all 0.3s ease;
}

.comment-input:hover {
	background: #f0f0f0;
}

.comment-input img {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	border: 2px solid var(--primary-color);
	object-fit: cover;
	transition: transform 0.3s ease;
}

.comment-input img:hover {
	transform: scale(1.05);
}

.comment-input .input-wrapper {
	flex: 1;
	display: flex;
	gap: 12px;
	align-items: center;
}

.comment-input input {
	flex: 1;
	padding: 12px 20px;
	border: 1px solid var(--border-color);
	border-radius: 24px;
	outline: none;
	font-size: 14px;
	transition: all 0.3s ease;
	background: var(--bg-primary);
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.comment-input input:focus {
	border-color: var(--primary-color);
	box-shadow: 0 0 0 3px rgba(255, 36, 66, 0.1);
	transform: translateY(-1px);
}

.comment-input button {
	background: linear-gradient(135deg, var(--primary-color) 0%, #ff4d6d 100%);
	color: white;
	border: none;
	padding: 12px 28px;
	border-radius: 24px;
	cursor: pointer;
	font-size: 14px;
	font-weight: 500;
	transition: all 0.3s ease;
	box-shadow: 0 2px 8px rgba(255, 36, 66, 0.3);
}

.comment-input button:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(255, 36, 66, 0.4);
}

.comment-input button:active {
	transform: translateY(0);
}

.comments-list {
	display: flex;
	flex-direction: column;
	gap: 6px;
	max-height: 300px;
	overflow-y: auto;
	padding-right: 8px;
}

.comments-list::-webkit-scrollbar {
	width: 6px;
}

.comments-list::-webkit-scrollbar-track {
	background: #f1f1f1;
	border-radius: 3px;
}

.comments-list::-webkit-scrollbar-thumb {
	background: #ddd;
	border-radius: 3px;
}

.comments-list::-webkit-scrollbar-thumb:hover {
	background: var(--primary-color);
}

.comment-item {
	display: flex;
	gap: 12px;
	padding: 16px;
	background: var(--bg-primary);
	border-radius: var(--radius);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
	transition: all 0.3s ease;
	position: relative;
}

.comment-item.delete-active {
	z-index: 100;
}

.comment-item::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 4px;
	height: 100%;
	background: var(--primary-color);
	border-radius: 4px 0 0 4px;
	transform: scaleY(0);
	transition: transform 0.3s ease;
}

.comment-item:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.comment-item:hover::before {
	transform: scaleY(1);
}

.comment-item img {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	object-fit: cover;
	border: 2px solid var(--border-color);
	transition: all 0.3s ease;
	flex-shrink: 0;
}

.comment-item img:hover {
	border-color: var(--primary-color);
	transform: scale(1.05);
}

.comment-item .content {
	flex: 1;
	min-width: 0;
}

.comment-item .author {
	font-size: 14px;
	font-weight: 600;
	margin-bottom: 6px;
	color: var(--text-primary);
	display: flex;
	align-items: center;
	gap: 8px;
}

.comment-item .author::after {
	content: '';
	width: 6px;
	height: 6px;
	background: var(--primary-color);
	border-radius: 50%;
	opacity: 0.8;
}

.comment-item .text {
	font-size: 15px;
	color: var(--text-secondary);
	margin-bottom: 10px;
	line-height: 1.6;
	word-wrap: break-word;
}

.comment-item .meta {
	display: flex;
	gap: 20px;
	font-size: 12px;
	color: var(--text-light);
	align-items: center;
}

.comment-item .meta span {
	transition: color 0.3s ease;
}

.comment-item .meta span:hover {
	color: var(--primary-color);
}

.comment-item .meta button {
	background: none;
	border: none;
	color: var(--text-light);
	cursor: pointer;
	font-size: 12px;
	display: flex;
	align-items: center;
	gap: 4px;
	transition: all 0.3s ease;
	padding: 4px 8px;
	border-radius: 12px;
}

.comment-item .meta button:hover {
	color: var(--primary-color);
	background: rgba(255, 36, 66, 0.1);
	transform: translateY(-1px);
}

.comment-item .meta button.liked {
	color: var(--primary-color);
}

/* 删除功能样式 */
.delete-container {
	position: relative;
	display: inline-block;
}

.delete-comment {
	background: none;
	border: none;
	color: var(--text-light);
	cursor: pointer;
	font-size: 10px;
	padding: 0;
	border-radius: 8px;
	transition: all 0.3s ease;
}

.delete-comment:hover {
	color: var(--primary-color);
	background: rgba(255, 36, 66, 0.1);
}

.delete-confirm {
	position: absolute;
	top: 100%;
	right: 0;
	background: var(--bg-primary);
	border: 0px solid var(--border-color);
	border-radius: 6px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
	padding: 15px;
	min-width: 60px;
	z-index: 10000;
	transform: translateY(-10px);
	opacity: 0;
	visibility: hidden;
	transition: all 0.3s ease;
	overflow: hidden;
	max-height: 120px;
}

.delete-confirm.show {
	transform: translateY(5px);
	opacity: 1;
	visibility: visible;
	max-height: 120px;
}

.delete-container .delete-confirm-content {
	padding: 0px;
}

.delete-container .delete-confirm-buttons {
	display: flex;
	flex-direction: column;
	gap: 0px;
}

.delete-container .delete-confirm button {
	display: block;
	width: 100%;
	padding: 0;
	border: 0px solid #ddd;
	border-radius: 4px;
	font-size: 10px;
	cursor: pointer;
	transition: all 0.3s ease;
	margin-bottom: 0;
	font-weight: 500;
}

.delete-container .delete-confirm button:last-child {
	margin-bottom: 0;
}

.delete-container .delete-confirm .confirm-btn {
	background: var(--primary-color);
	color: white;
}

.delete-container .delete-confirm .confirm-btn:hover {
	background: var(--primary-hover);
	transform: translateY(-1px);
}

.delete-container .delete-confirm .cancel-btn {
	background: var(--bg-secondary);
	color: var(--text-secondary);
}

.delete-container .delete-confirm .cancel-btn:hover {
	background: #e0e0e0;
	transform: translateY(-1px);
}

.ripple-effect {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 0;
	height: 0;
	border-radius: 50%;
	background: rgba(255, 36, 66, 0.3);
	transform: translate(-50%, -50%);
	transition: width 0.6s, height 0.6s;
	pointer-events: none;
}

@keyframes ripple {
	0% {
		transform: scale(0);
		opacity: 1;
	}

	100% {
		transform: scale(4);
		opacity: 0;
	}
}

.user-menu-trigger::after {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	width: 4px;
	height: 4px;
	background: rgba(255, 36, 66, 0.3);
	border-radius: 50%;
	transform: translate(-50%, -50%) scale(0);
	opacity: 0;
}

.user-menu-trigger:hover::after {
	animation: ripple 0.6s ease-out;
}

/* 空状态 */
.comments-list .empty-state {
	text-align: center;
	padding: 40px 20px;
	background: var(--bg-secondary);
	border-radius: var(--radius);
	margin-top: 10px;
}

.comments-list .empty-state p {
	color: var(--text-light);
	font-size: 14px;
	margin: 0;
}

.comments-list .empty-state::before {
	content: '💬';
	font-size: 32px;
	display: block;
	margin-bottom: 12px;
	opacity: 0.5;
}

/* 个人主页 */
.profile-header {
	background: var(--bg-primary);
	padding: 40px 0;
	margin-bottom: 20px;
}

.profile-header .container {
	display: flex;
	gap: 30px;
}

.profile-avatar {
	width: 120px;
	height: 120px;
	border-radius: 50%;
	object-fit: cover;
}

.profile-info {
	flex: 1;
}

.profile-info h2 {
	font-size: 24px;
	margin-bottom: 8px;
}

.profile-info .username {
	color: var(--text-light);
	font-size: 14px;
	margin-bottom: 12px;
}

.profile-info .bio {
	color: var(--text-secondary);
	margin-bottom: 16px;
}

.profile-stats {
	display: flex;
	gap: 30px;
	margin-bottom: 16px;
}

.profile-stats span {
	font-size: 14px;
	color: var(--text-secondary);
}

.profile-stats strong {
	color: var(--text-primary);
	margin-right: 4px;
}

.profile-actions {
	display: flex;
	gap: 12px;
}

.profile-actions button {
	padding: 10px 30px;
	border-radius: 24px;
	border: none;
	cursor: pointer;
	font-size: 14px;
}

.profile-actions .btn-primary {
	background: var(--primary-color);
	color: white;
}

.profile-actions .btn-secondary {
	background: var(--bg-secondary);
	color: var(--text-primary);
}

.profile-tabs {
	display: flex;
	gap: 30px;
	border-bottom: 1px solid var(--border-color);
	margin-bottom: 20px;
}

.profile-tabs a {
	padding: 12px 0;
	font-size: 15px;
	color: var(--text-secondary);
	border-bottom: 2px solid transparent;
	transition: all 0.3s;
}

.profile-tabs a.active {
	color: var(--primary-color);
	border-bottom-color: var(--primary-color);
}

/* 发布页面 */
.publish-form {
	max-width: 800px;
	margin: 0 auto;
	background: var(--bg-primary);
	border-radius: var(--border-radius-lg);
	padding: 30px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
	margin-top: 20px;
	margin-bottom: 80px;
}

.publish-form h2 {
	margin-bottom: 24px;
	font-size: 24px;
	font-weight: 700;
	color: var(--text-primary);
	text-align: center;
}

.media-upload {
	border: 2px dashed var(--border-color);
	border-radius: var(--border-radius-lg);
	padding: 60px 40px;
	text-align: center;
	margin-bottom: 24px;
	cursor: pointer;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
	position: relative;
	overflow: hidden;
}

.media-upload:hover {
	border-color: var(--primary-color);
	box-shadow: 0 4px 16px rgba(255, 36, 66, 0.15);
}

.media-upload i {
	font-size: 64px;
	color: var(--primary-color);
	margin-bottom: 16px;
	transition: transform 0.3s ease;
}

.media-upload:hover i {
	transform: scale(1.1);
}

.media-upload p {
	color: var(--text-secondary);
	font-size: 16px;
	margin: 0;
}

.uploaded-media {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
	gap: 16px;
	margin-bottom: 24px;
}

.uploaded-media .media-item {
	position: relative;
	aspect-ratio: 1;
	border-radius: var(--border-radius-md);
	overflow: hidden;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
	transition: all 0.3s ease;
}

.uploaded-media .media-item:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.uploaded-media img,
.uploaded-media video {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.uploaded-media .remove {
	position: absolute;
	top: 8px;
	right: 8px;
	background: rgba(0, 0, 0, 0.7);
	color: white;
	border: none;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 14px;
	transition: all 0.3s ease;
	opacity: 0;
}

.uploaded-media .media-item:hover .remove {
	opacity: 1;
}

.uploaded-media .remove:hover {
	background: var(--primary-color);
	transform: scale(1.1);
}

.form-group {
	margin-bottom: 20px;
}

.form-group input[type="text"] {
	width: 100%;
	padding: 16px 20px;
	border: 2px solid var(--border-color);
	border-radius: var(--border-radius-md);
	font-size: 16px;
	outline: none;
	transition: all 0.3s ease;
	background: white;
}

.form-group input[type="text"]:focus {
	border-color: var(--primary-color);
	box-shadow: 0 0 0 3px rgba(255, 36, 66, 0.1);
}

/* 确保标签输入框内部的输入框不显示焦点边框 */
.tag-input input:focus {
	border: none !important;
	box-shadow: none !important;
}

.form-group textarea {
	width: 100%;
	padding: 16px 20px;
	border: 2px solid var(--border-color);
	border-radius: var(--border-radius-md);
	font-size: 16px;
	resize: vertical;
	min-height: 160px;
	outline: none;
	transition: all 0.3s ease;
	background: white;
	font-family: inherit;
	line-height: 1.5;
}

.form-group textarea:focus {
	border-color: var(--primary-color);
	box-shadow: 0 0 0 3px rgba(255, 36, 66, 0.1);
}

.form-group label {
	display: block;
	margin-bottom: 8px;
	font-weight: 600;
	color: var(--text-primary);
	font-size: 14px;
}

.tag-input {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	padding: 16px 20px;
	border: 2px solid var(--border-color);
	border-radius: var(--border-radius-md);
	transition: all 0.3s ease;
	background: white;
}

.tag-input:focus-within {
	border-color: var(--primary-color);
	box-shadow: 0 0 0 3px rgba(255, 36, 66, 0.1);
}

.tag-input input {
	border: none !important;
	outline: none !important;
	flex: 1;
	min-width: 120px;
	font-size: 16px;
	background: transparent !important;
	padding: 0px 4px !important;
	margin: 0 !important;
}

.tag-item {
	background: var(--primary-color);
	color: white;
	padding: 6px 16px;
	border-radius: 20px;
	font-size: 14px;
	display: flex;
	align-items: center;
	gap: 8px;
	transition: all 0.3s ease;
}

.tag-item:hover {
	background: var(--primary-hover);
	transform: translateY(-1px);
}

.tag-item .remove {
	cursor: pointer;
	font-size: 16px;
	line-height: 1;
}

.tag-item .remove:hover {
	transform: scale(1.2);
}

.tag-selector {
	margin-top: 12px;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.tag-selector .tag-item {
	background: var(--bg-secondary);
	color: var(--text-primary);
	cursor: pointer;
}

.tag-selector .tag-item.selected {
	background: var(--primary-color);
	color: white;
}

.btn-publish {
	width: 100%;
	padding: 16px;
	background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
	color: white;
	border: none;
	border-radius: var(--border-radius-md);
	font-size: 18px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	margin-top: 10px;
	box-shadow: 0 4px 12px rgba(255, 36, 66, 0.3);
}

.btn-publish:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(255, 36, 66, 0.4);
}

.btn-publish:disabled {
	background: var(--text-light);
	cursor: not-allowed;
	transform: none;
	box-shadow: none;
}

/* 响应式设计 */
@media (max-width: 768px) {
	.publish-form {
		padding: 24px;
		margin-top: 10px;
		margin-bottom: 70px;
	}

	.publish-form h2 {
		font-size: 20px;
	}

	.media-upload {
		padding: 40px 20px;
	}

	.media-upload i {
		font-size: 48px;
	}

	.media-upload p {
		font-size: 14px;
	}

	.uploaded-media {
		grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
		gap: 12px;
	}

	.form-group input[type="text"],
	.form-group textarea {
		padding: 14px 16px;
		font-size: 14px;
	}

	.form-group textarea {
		min-height: 120px;
	}

	.btn-publish {
		padding: 14px;
		font-size: 16px;
	}
}

@media (max-width: 480px) {
	.publish-form {
		padding: 20px;
	}

	.media-upload {
		padding: 30px 15px;
	}

	.media-upload i {
		font-size: 40px;
	}

	.uploaded-media {
		grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
		gap: 10px;
	}

	.form-group input[type="text"],
	.form-group textarea {
		padding: 12px 14px;
		font-size: 13px;
	}

	.tag-item {
		padding: 4px 12px;
		font-size: 12px;
	}

	.btn-publish {
		padding: 12px;
		font-size: 15px;
	}
}

/* 消息通知 */
.notification-item {
	display: flex;
	gap: 12px;
	padding: 16px;
	background: var(--bg-primary);
	border-radius: var(--radius);
	margin-bottom: 12px;
}

.notification-item.unread {
	background: #fff5f5;
}

.notification-item img {
	width: 48px;
	height: 48px;
	border-radius: 50%;
}

.notification-item .content {
	flex: 1;
}

.notification-item .text {
	font-size: 14px;
	margin-bottom: 4px;
}

.notification-item .time {
	font-size: 12px;
	color: var(--text-light);
}

/* 搜索页面 */
.search-results {
	padding: 20px 0;
}

.search-tabs {
	display: flex;
	gap: 30px;
	border-bottom: 1px solid var(--border-color);
	margin-bottom: 20px;
}

.search-tabs a {
	padding: 12px 0;
	font-size: 15px;
	color: var(--text-secondary);
	border-bottom: 2px solid transparent;
}

.search-tabs a.active {
	color: var(--primary-color);
	border-bottom-color: var(--primary-color);
}

/* 空状态 */
.empty-state {
	text-align: center;
	padding: 60px 20px;
}

.empty-state i {
	font-size: 64px;
	color: var(--border-color);
	margin-bottom: 16px;
}

.empty-state p {
	color: var(--text-light);
}

/* Toast提示 */
.toast {
	position: fixed;
	top: 80px;
	left: 50%;
	transform: translateX(-50%) translateY(-20px);
	background: rgba(0, 0, 0, 0.8);
	color: white;
	padding: 12px 24px;
	border-radius: 24px;
	font-size: 14px;
	opacity: 0;
	transition: all 0.3s;
	z-index: 10001;
}

.toast.show {
	opacity: 1;
	transform: translateX(-50%) translateY(0);
}

/* 加载动画 */
.loading {
	display: inline-block;
	width: 20px;
	height: 20px;
	border: 2px solid var(--border-color);
	border-top-color: var(--primary-color);
	border-radius: 50%;
	animation: spin 1s linear infinite;
}

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

/* 隐藏 */
.hidden {
	display: none !important;
}

/* 邮箱验证码输入 */
.email-code-group {
	margin-bottom: 16px;
}

.email-code-input {
	display: flex;
	gap: 12px;
}

.email-code-input input {
	flex: 1;
	padding: 12px 15px;
	border: 1px solid var(--border-color);
	border-radius: 8px;
	font-size: 14px;
	text-align: center;
	letter-spacing: 2px;
}

.btn-send-code {
	padding: 12px 20px;
	background: var(--primary-color);
	color: white;
	border: none;
	border-radius: 8px;
	font-size: 14px;
	cursor: pointer;
	white-space: nowrap;
	transition: background 0.3s;
	min-width: 120px;
}

.btn-send-code:hover {
	background: var(--primary-hover);
}

.btn-send-code:disabled {
	background: var(--text-light);
	cursor: not-allowed;
}

.btn-send-code.countdown {
	background: var(--text-light);
}

/* 表单选项 */
.form-options {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 20px;
	font-size: 14px;
}

.remember-me {
	display: flex;
	align-items: center;
	gap: 6px;
	color: var(--text-secondary);
	cursor: pointer;
}

.remember-me input {
	width: 16px;
	height: 16px;
	accent-color: var(--primary-color);
}

.forgot-password {
	color: var(--primary-color);
	text-decoration: none;
}

.forgot-password:hover {
	text-decoration: underline;
}

/* 忘记密码页面 */
#forgotPasswordTab h3 {
	text-align: center;
	margin-bottom: 20px;
	font-size: 18px;
	color: var(--text-primary);
}

.back-to-login {
	display: block;
	text-align: center;
	margin-top: 16px;
	color: var(--primary-color);
	text-decoration: none;
	font-size: 14px;
}

.back-to-login:hover {
	text-decoration: underline;
}

/* 登录弹窗增强 */
.modal-content {
	max-width: 420px;
	width: 90%;
}

.modal-content .form-group {
	margin-bottom: 16px;
}

.modal-content .form-group input {
	width: 100%;
	padding: 14px 16px;
	border: 1px solid var(--border-color);
	border-radius: 8px;
	font-size: 15px;
	transition: border-color 0.3s;
}

.modal-content .form-group input:focus {
	border-color: var(--primary-color);
	outline: none;
}

.modal-content .btn-submit {
	width: 100%;
	padding: 14px;
	background: var(--primary-color);
	color: white;
	border: none;
	border-radius: 8px;
	font-size: 16px;
	cursor: pointer;
	transition: background 0.3s;
	margin-top: 8px;
}

.modal-content .btn-submit:hover {
	background: var(--primary-hover);
}

/* 用户操作区域包装器 */
.user-actions-wrapper {
	display: flex;
	align-items: center;
	gap: 12px;
}

/* 用户下拉菜单 */
.user-dropdown {
	position: relative;
	display: inline-block;
}

.notification-icon {
	position: relative;
	font-size: 20px;
	color: var(--text-secondary);
	padding: 8px;
}

.notification-icon:hover {
	color: var(--primary-color);
}

.notification-dot {
	position: absolute;
	top: 6px;
	right: 6px;
	width: 8px;
	height: 8px;
	background: var(--primary-color);
	border-radius: 50%;
	animation: pulse 2s infinite;
}

@keyframes pulse {

	0%,
	100% {
		opacity: 1;
	}

	50% {
		opacity: 0.5;
	}
}

.user-menu-trigger {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 6px 12px;
	border-radius: 20px;
	cursor: pointer;
	transition: background 0.3s;
	position: relative;
}

.user-menu-trigger:hover {
	background: var(--bg-secondary);
}

.user-menu-trigger .avatar {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	object-fit: cover;
}

.user-menu-trigger .nickname {
	font-size: 14px;
	color: var(--text-primary);
	max-width: 80px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.user-menu-trigger .fa-chevron-down {
	font-size: 12px;
	color: var(--text-light);
	transition: transform 0.3s;
}

.user-menu-trigger:hover .fa-chevron-down {
	transform: rotate(180deg);
}

.message-dot {
	position: absolute;
	top: 4px;
	right: 4px;
	width: 10px;
	height: 10px;
	background: var(--primary-color);
	border-radius: 50%;
	border: 2px solid var(--bg-primary);
	animation: pulse 2s infinite;
}

/* 下拉菜单 */
.user-dropdown-menu {
	position: absolute;
	top: 100%;
	right: 0;
	width: 240px;
	background: var(--bg-primary);
	border-radius: 12px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
	opacity: 0;
	visibility: hidden;
	transform: translateY(-10px);
	transition: all 0.3s ease;
	z-index: 1001;
	overflow: hidden;
	margin-top: 8px;
}

/* 创建一个透明的桥接区域，覆盖触发器和菜单之间的间隙 */
.user-dropdown-menu::before {
	content: '';
	position: absolute;
	top: -20px;
	left: 0;
	right: 0;
	height: 20px;
	background: transparent;
}

/* 下拉菜单显示控制 - 使用JS控制 */
.user-dropdown-menu.show {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
	pointer-events: auto;
}

/* 下拉菜单头部 */
.dropdown-header {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 16px;
	background: linear-gradient(135deg, var(--primary-color) 0%, #ff6b7a 100%);
}

.dropdown-avatar {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	border: 3px solid rgba(255, 255, 255, 0.3);
	object-fit: cover;
}

.dropdown-info {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.dropdown-nickname {
	font-size: 16px;
	font-weight: 600;
	color: white;
}

.dropdown-uid {
	font-size: 12px;
	color: rgba(255, 255, 255, 0.8);
}

/* 分隔线 */
.dropdown-divider {
	height: 1px;
	background: var(--border-color);
	margin: 8px 0;
}

/* 下拉菜单项 */
.dropdown-item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 16px;
	color: var(--text-primary);
	text-decoration: none;
	transition: background 0.2s;
	position: relative;
}

.dropdown-item:hover {
	background: var(--bg-secondary);
}

.dropdown-item i {
	width: 20px;
	text-align: center;
	color: var(--text-secondary);
	font-size: 16px;
}

.dropdown-item span {
	font-size: 14px;
}

.dropdown-item.logout-item {
	color: var(--primary-color);
}

.dropdown-item.logout-item i {
	color: var(--primary-color);
}

/* 未读消息标记 */
.unread-badge {
	position: absolute;
	right: 16px;
	background: var(--primary-color);
	color: white;
	font-size: 10px;
	padding: 2px 6px;
	border-radius: 10px;
	font-weight: 600;
}

/* 搜索建议 */
.search-suggestions {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	background: white;
	border-radius: 0 0 20px 20px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
	z-index: 1001;
	max-height: 200px;
	overflow-y: auto;
	display: none;
}

.search-suggestion-item {
	padding: 10px 15px;
	cursor: pointer;
	transition: background-color 0.2s ease;
}

.search-suggestion-item:hover {
	background-color: #f5f5f5;
}

.search-suggestion-item strong {
	color: var(--primary-color);
	font-weight: 600;
}

/* 笔记详情页 */
.note-detail-content {
	display: flex;
	gap: 20px;
	padding: 20px;
	background: #f5f5f5;
	min-height: 80vh;
}

.note-left {
	flex: 1;
	min-width: 500px;
	background: #f8f8f8;
	border-radius: 8px;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 600px;
}

.note-right {
	width: 350px;
	background: #fff;
	border-radius: 8px;
	overflow-y: auto;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
	min-height: 600px;
}

.note-media-container {
	width: 90%;
	height: 90%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #000;
	border-radius: 8px;
	overflow: hidden;
}

.note-media {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
}

.note-images {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
}

.note-images img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
	border-radius: 4px;
}

.note-video-container {
	width: 100%;
	height: 100%;
	position: relative;
	overflow: hidden;
}

.note-video {
	width: 100%;
	height: 100%;
	object-fit: contain;
	border: none;
}

/* 视频缩略图样式 */
.video-thumbnail {
	width: 100%;
	height: 100%;
	cursor: pointer;
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
}

.video-thumbnail img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	border-radius: 4px;
}

.video-play-btn {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 80px;
	height: 80px;
	background-color: rgba(0, 0, 0, 0.6);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.3s ease;
	backdrop-filter: blur(2px);
}

.video-play-btn i {
	color: white;
	font-size: 32px;
	margin-left: 8px;
}

.video-thumbnail:hover .video-play-btn {
	background-color: rgba(255, 36, 66, 0.8);
	transform: translate(-50%, -50%) scale(1.1);
}

/* 视频播放器样式 */
.note-video::-webkit-media-controls {
	background-color: rgba(0, 0, 0, 0.7);
	border-radius: 0 0 4px 4px;
}

.note-video::-webkit-media-controls-play-button {
	background-color: rgba(255, 36, 66, 0.8);
	border-radius: 50%;
}

.note-video::-webkit-media-controls-volume-slider {
	background-color: rgba(255, 255, 255, 0.3);
	border-radius: 10px;
}

.note-video::-webkit-media-controls-timeline {
	background-color: rgba(255, 255, 255, 0.3);
	border-radius: 10px;
}

/* 响应式视频样式 - 参考 bbs.bhtea.online */

/* 移动端底部导航栏 */
.mobile-nav {
	display: none;
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	background: var(--bg-primary);
	box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
	z-index: 1000;
	padding: 8px 0;
	padding-bottom: env(safe-area-inset-bottom, 8px);
}

.mobile-nav-list {
	display: flex;
	justify-content: space-around;
	align-items: center;
	list-style: none;
	margin: 0;
	padding: 0;
}

.mobile-nav-item {
	flex: 1;
	text-align: center;
}

.mobile-nav-link {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	padding: 8px;
	color: var(--text-light);
	font-size: 11px;
	transition: var(--transition);
	text-decoration: none;
}

.mobile-nav-link i {
	font-size: 22px;
	transition: var(--transition);
}

.mobile-nav-link.active,
.mobile-nav-link:hover {
	color: var(--primary-color);
}

.mobile-nav-link.active i {
	transform: scale(1.1);
}

/* 发布按钮样式 */
.mobile-nav-link.publish i {
	font-size: 22px;
	transition: var(--transition);
}

/* 视频卡片样式优化 */
.note-card .cover-container {
	position: relative;
	overflow: hidden;
	border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.note-card .cover-container video {
	width: 100%;
	height: auto;
	display: block;
	transition: var(--transition);
}

.note-card:hover .cover-container video {
	transform: scale(1.05);
}

/* 视频播放按钮优化 */
.video-play-btn {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 60px;
	height: 60px;
	background: rgba(255, 36, 66, 0.9);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: var(--transition);
	backdrop-filter: blur(4px);
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
	cursor: pointer;
	z-index: 2;
}

.video-play-btn i {
	color: white;
	font-size: 24px;
	margin-left: 4px;
}

.video-play-btn:hover {
	transform: translate(-50%, -50%) scale(1.15);
	background: var(--primary-color);
}

/* 视频时长标签 */
.video-duration {
	position: absolute;
	bottom: 8px;
	right: 8px;
	background: rgba(0, 0, 0, 0.7);
	color: white;
	padding: 2px 8px;
	border-radius: 4px;
	font-size: 12px;
	font-weight: 500;
	backdrop-filter: blur(2px);
}

/* 视频全屏播放样式 */
.video-fullscreen-overlay {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: #000;
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
}

.video-fullscreen-overlay video {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

/* 视频控制栏 */
.video-controls {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
	padding: 20px 16px 16px;
	display: flex;
	align-items: center;
	gap: 12px;
	opacity: 0;
	transition: opacity 0.3s;
}

.video-container:hover .video-controls,
.video-container.show-controls .video-controls {
	opacity: 1;
}

.video-controls button {
	background: none;
	border: none;
	color: white;
	font-size: 20px;
	cursor: pointer;
	padding: 8px;
	border-radius: 50%;
	transition: var(--transition);
}

.video-controls button:hover {
	background: rgba(255, 255, 255, 0.2);
}

.video-progress {
	flex: 1;
	height: 4px;
	background: rgba(255, 255, 255, 0.3);
	border-radius: 2px;
	cursor: pointer;
	position: relative;
}

.video-progress-bar {
	height: 100%;
	background: var(--primary-color);
	border-radius: 2px;
	width: 0%;
	transition: width 0.1s linear;
}

.video-time {
	color: white;
	font-size: 12px;
	min-width: 80px;
	text-align: center;
}

/* 响应式适配 */
@media (max-width: 768px) {

	/* 显示移动端导航 */
	.mobile-nav {
		display: block;
	}

	/* 调整主内容区域，为底部导航留出空间 */
	body {
		padding-bottom: 70px;
	}

	/* 瀑布流优化 */
	.waterfall {
		column-count: 2;
		column-gap: 12px;
		padding: 0 12px;
	}

	.note-card {
		margin-bottom: 12px;
		border-radius: var(--radius);
	}

	.note-card::before {
		display: none;
	}

	/* 视频播放按钮移动端优化 */
	.video-play-btn {
		width: 48px;
		height: 48px;
	}

	.video-play-btn i {
		font-size: 18px;
	}

	/* 视频时长标签移动端 */
	.video-duration {
		font-size: 10px;
		padding: 2px 6px;
	}

	/* 笔记详情页移动端优化 */
	.note-detail-content {
		flex-direction: column;
		padding: 12px;
		gap: 12px;
		min-height: auto;
	}

	.note-left {
		min-width: auto;
		min-height: 300px;
		border-radius: var(--radius);
	}

	.note-right {
		width: 100%;
		min-height: auto;
		border-radius: var(--radius);
	}

	.note-media-container {
		width: 100%;
		height: 100%;
		border-radius: var(--radius);
	}

	/* 视频全屏播放移动端 */
	.video-fullscreen-overlay {
		background: #000;
	}

	.video-fullscreen-overlay video {
		object-fit: contain;
	}

	/* 视频控制栏移动端 */
	.video-controls {
		padding: 16px 12px 12px;
		gap: 8px;
	}

	.video-controls button {
		font-size: 18px;
		padding: 6px;
	}

	.video-time {
		font-size: 11px;
		min-width: 70px;
	}

	/* 头部导航移动端优化 */
	.header .container {
		height: 56px;
		padding: 0 12px;
		gap: 12px;
	}

	.logo img {
		height: 28px;
	}

	/* 标签导航移动端 */
	.tags-nav {
		padding: 12px;
		gap: 8px;
	}

	.tags-nav a {
		padding: 8px 16px;
		font-size: 13px;
	}

	/* 隐藏桌面端导航 */
	.nav {
		display: none;
	}

	/* 搜索框移动端 */
	.search-box {
		margin: 0;
		max-width: none;
	}

	.search-box input {
		padding: 10px 40px 10px 14px;
		font-size: 13px;
	}

	.search-box button {
		width: 32px;
		height: 32px;
	}

	/* 用户操作区域移动端 */
	.user-actions {
		gap: 8px;
	}

	.user-actions .avatar {
		width: 32px;
		height: 32px;
	}

	.btn-login {
		padding: 8px 16px;
		font-size: 12px;
	}

	/* 回到顶部按钮移动端 */
	.back-to-top {
		right: 16px;
		bottom: 80px;
		width: 44px;
		height: 44px;
		font-size: 16px;
	}
}

@media (max-width: 480px) {

	/* 小屏幕手机优化 */
	.waterfall {
		column-count: 2;
		column-gap: 8px;
		padding: 0 8px;
	}

	.note-card {
		margin-bottom: 8px;
		border-radius: var(--radius-sm);
	}

	.note-card .content {
		padding: 10px;
	}

	.note-card .title {
		font-size: 13px;
		line-height: 1.4;
	}

	/* 视频播放按钮小屏幕 */
	.video-play-btn {
		width: 40px;
		height: 40px;
	}

	.video-play-btn i {
		font-size: 16px;
	}

	/* 移动端导航小屏幕 */
	.mobile-nav-link {
		font-size: 10px;
		padding: 6px;
	}

	.mobile-nav-link i {
		font-size: 20px;
	}

	.mobile-nav-link.publish i {
		font-size: 20px;
		transition: var(--transition);
	}

	/* 标签导航小屏幕 */
	.tags-nav {
		padding: 8px;
		gap: 6px;
	}

	.tags-nav a {
		padding: 6px 12px;
		font-size: 12px;
	}

	/* 笔记详情页小屏幕 */
	.note-left {
		min-height: 250px;
	}

	.note-detail-content {
		padding: 8px;
		gap: 8px;
	}
}

/* 平板适配 */
@media (min-width: 769px) and (max-width: 1024px) {
	.waterfall {
		column-count: 3;
		column-gap: 16px;
	}

	.note-card {
		margin-bottom: 16px;
	}

	/* 笔记详情页平板 */
	.note-detail-content {
		flex-direction: column;
		gap: 16px;
	}

	.note-left {
		min-width: auto;
		min-height: 400px;
	}

	.note-right {
		width: 100%;
	}
}

/* 电脑端大屏优化 */
@media (min-width: 1400px) {
	.waterfall {
		column-count: 6;
		column-gap: 24px;
	}

	.note-card {
		margin-bottom: 24px;
	}

	.note-card:hover {
		transform: translateY(-12px) scale(1.03);
	}

	/* 视频播放按钮大屏 */
	.video-play-btn {
		width: 70px;
		height: 70px;
	}

	.video-play-btn i {
		font-size: 28px;
	}
}

/* 横屏视频适配 */
@media (orientation: landscape) and (max-width: 768px) {
	.video-fullscreen-overlay {
		background: #000;
	}

	.video-fullscreen-overlay video {
		object-fit: contain;
		max-width: 100%;
		max-height: 100%;
	}

	.note-left {
		min-height: 200px;
	}
}

/* 视频加载动画 */
.video-loading {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	display: flex;
	align-items: center;
	justify-content: center;
}

.video-loading-spinner {
	width: 40px;
	height: 40px;
	border: 3px solid rgba(255, 255, 255, 0.3);
	border-top-color: var(--primary-color);
	border-radius: 50%;
	animation: spin 1s linear infinite;
}

/* 视频静音提示 */
.video-mute-hint {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	background: rgba(0, 0, 0, 0.7);
	color: white;
	padding: 12px 20px;
	border-radius: 24px;
	font-size: 14px;
	display: flex;
	align-items: center;
	gap: 8px;
	backdrop-filter: blur(4px);
	animation: fadeInOut 2s ease-in-out;
}

@keyframes fadeInOut {

	0%,
	100% {
		opacity: 0;
	}

	20%,
	80% {
		opacity: 1;
	}
}

/* 视频封面优化 */
.video-cover {
	position: relative;
	width: 100%;
	padding-top: 133.33%;
	/* 3:4 竖屏比例 */
	overflow: hidden;
	background: #000;
}

.video-cover img,
.video-cover video {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* 横屏视频封面 */
.video-cover.landscape {
	padding-top: 56.25%;
	/* 16:9 横屏比例 */
}

/* 视频信息浮层 */
.video-info-overlay {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
	padding: 40px 12px 12px;
	color: white;
}

.video-info-overlay .title {
	font-size: 14px;
	font-weight: 500;
	margin-bottom: 4px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.video-info-overlay .author {
	font-size: 12px;
	opacity: 0.8;
	display: flex;
	align-items: center;
	gap: 6px;
}

.video-info-overlay .author img {
	width: 20px;
	height: 20px;
	border-radius: 50%;
}