.homepage-content {
	padding-top: calc(0.5rem + 60px);
	background: #f5f5f5;
	width: 100%;
	max-width: none;
	margin: 0;
}

.homepage-layout {
	display: flex !important;
	gap: 30px !important;
}

/* ========== 个人空间我的视频：整条Flex高度链修复 ==========
   必须保证每一层容器都正确传递高度，margin-top:auto才生效 */

/* 第0层：.site-content 本身是 #page(flex) 的子项(flex:1)，它也需要变成flex容器 */
.site-content.homepage-content {
	display: flex !important;
	flex-direction: column !important;
	flex: 1 !important;
}

/* 第1层：.content-area 从 .site-content 继承高度 */
.homepage-content .content-area {
	display: flex !important;
	flex-direction: column !important;
	flex: 1 !important;
	width: 100% !important;
}

/* homepage-layout 内部保持左右两栏布局 */
.homepage-layout {
	width: 100%;
	max-width: 100%;
}

.blog-full-layout {
	display: flex !important;
	gap: 20px !important;
	position: relative !important;
	max-width: 1900px !important;
	margin: 0 auto !important;
	padding: 0 24px !important;
	/* 第2层：.blog-full-layout 撑满 .content-area 高度 */
	flex: 1 !important;
	width: 100% !important;
}

.blog-full-layout.blog-layout-full .blog-main-content {
	width: 100% !important;
	/* 第3层：.blog-main-content 撑满 .blog-full-layout 高度，保持 row 方向让 main 与 sidebar 左右并排 */
	flex: 1 !important;
	display: flex !important;
	flex-direction: row !important;
}

.blog-full-layout.blog-layout-full .site-main {
	flex: 1 !important;
	max-width: none !important;
	/* 第4层：.site-main 撑满 .blog-main-content，变成垂直flex容器 */
	display: flex !important;
	flex-direction: column !important;
	width: 100% !important;
}

/* 第5层：section撑满剩余高度 */
.blog-layout-full .latest-posts-section {
	width: 100% !important;
	flex: 1 !important;
	display: flex !important;
	flex-direction: column !important;
	align-items: stretch !important;
	justify-content: flex-start !important;
}

.blog-layout-full .my-video-grid {
	width: 100% !important;
	flex-shrink: 0 !important;
}

/* 第6层（最关键）：margin-top: auto 把分页推到最底部 */
.blog-layout-full .pagination-container {
	width: 100% !important;
	text-align: center !important;
	margin-top: auto !important;
	padding-top: 0 !important;
	padding-bottom: 0 !important;
	flex-shrink: 0 !important;
	display: block !important;
	clear: both !important;
	float: none !important;
}

.blog-layout-full .pagination-container ul {
	display: inline-flex !important;
}

.blog-left-card {
	width: 310px !important;
	flex-shrink: 0 !important;
	height: fit-content !important;
	z-index: 10 !important;
}

/* 保障：左栏作者卡内部三个模块撑满容器 */
.blog-left-card .user-profile-wrapper,
.blog-left-card .user-profile-wrapper > * {
	width: 100% !important;
	max-width: 100% !important;
	box-sizing: border-box !important;
}

.blog-main-content {
	display: flex !important;
	gap: 20px !important;
	flex: 1 !important;
}

.site-main {
	flex: 1 !important;
}

.home-sidebar {
	width: 330px !important;
	flex-shrink: 0 !important;
	display: flex !important;
	flex-direction: column !important;
	gap: 20px !important;
	height: fit-content !important;
}

/* 保障：右栏小部件撑满侧边栏宽度 */
.home-sidebar .popular-posts-card,
.home-sidebar .tags-cloud-card {
	width: 100% !important;
	max-width: 100% !important;
	box-sizing: border-box !important;
}

.kb-site-content {
	position: relative !important;
	overflow: visible !important;
}

.kb-site-content #primary.content-area {
	position: relative !important;
	overflow: visible !important;
}

.kb-full-layout {
	display: flex !important;
	flex-direction: row !important;
	gap: 30px !important;
	max-width: 1400px !important;
	margin: 0 auto !important;
	padding: 0 30px !important;
	width: 100% !important;
	position: relative !important;
	overflow: visible !important;
}

#main.site-main.kb-main {
	flex: 1 !important;
	min-width: 0 !important;
}

.kb-sidebar {
	width: 320px !important;
	flex-shrink: 0 !important;
	display: flex !important;
	flex-direction: column !important;
	gap: 20px !important;
	height: fit-content !important;
}

.single-full-layout {
	display: flex !important;
	flex-direction: row !important;
	gap: 30px !important;
	max-width: 1400px !important;
	margin: 0 auto !important;
	padding: 0 30px !important;
	width: 100% !important;
	position: relative !important;
	overflow: visible !important;
}

#main.site-main.single-main {
	flex: 1 !important;
	min-width: 0 !important;
}

.single-sidebar {
	width: 320px !important;
	flex-shrink: 0 !important;
	display: flex !important;
	flex-direction: column !important;
	gap: 20px !important;
	height: fit-content !important;
}

.section-header {
	display: flex;
	align-items: center;
	margin-bottom: 25px;
}

.section-header h2 {
	font-size: 1.5rem;
	font-weight: 600;
	color: #333;
	padding-left: 12px;
	border-left: 4px solid #4a6cf7;
	margin: 0;
}

.latest-posts-list {
	display: flex !important;
	flex-direction: column !important;
	gap: 20px !important;
}

.home-post-card {
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
	position: relative;
	display: flex !important;
	padding: 14px !important;
	overflow: visible !important;
	gap: 14px !important;
	border: 1px solid #e8f0ff;
}

.post-card-content {
	flex: 1 !important;
	padding: 0 !important;
	display: flex !important;
	flex-direction: column !important;
	gap: 10px !important;
	position: relative !important;
	z-index: 2 !important;
	margin-right: 0 !important;
}

.post-card-right {
	flex-shrink: 0 !important;
	position: relative !important;
	border-radius: 12px !important;
	overflow: hidden !important;
	background: #EEF3FF !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	margin-left: 16px !important;
	flex-basis: 40px !important;
	transition: background-color 0.3s ease !important;
}

.post-card-right:hover {
	background: rgba(74, 108, 247, 0.05) !important;
}

.post-card-right:hover .post-card-arrow {
	background: rgba(74, 108, 247, 0.6) !important;
	color: #fff !important;
}

.post-card-title {
	font-size: 1.3rem !important;
	font-weight: 700 !important;
	line-height: 1.5 !important;
	margin: 0 !important;
	display: -webkit-box !important;
	line-clamp: 2 !important;
	-webkit-line-clamp: 2 !important;
	-webkit-box-orient: vertical !important;
	overflow: hidden !important;
	flex-shrink: 0 !important;
	position: relative !important;
	padding-left: 16px !important;
}

.post-card-title::before {
	content: '' !important;
	position: absolute !important;
	left: 0 !important;
	top: 50% !important;
	transform: translateY(-50%) !important;
	width: 4px !important;
	height: 24px !important;
	background: linear-gradient(180deg, #7BA3FF 0%, #4a6cf7 100%) !important;
	border-radius: 2px !important;
}

.post-card-title a {
	color: #333 !important;
	text-decoration: none !important;
	transition: color 0.3s ease !important;
}

.post-card-title a:hover {
	color: #4a6cf7 !important;
}

.post-card-meta {
	display: flex !important;
	gap: 20px !important;
	align-items: center !important;
}

.post-card-date,
.post-card-category,
.post-card-words {
	font-size: 0.8rem !important;
	color: #4a6cf7 !important;
	display: flex !important;
	align-items: center !important;
	gap: 6px !important;
}

.post-card-date svg,
.post-card-category svg,
.post-card-words svg {
	width: 14px !important;
	height: 14px !important;
	color: #4a6cf7 !important;
}

.post-card-excerpt {
	font-size: 0.9rem !important;
	color: #666 !important;
	line-height: 1.7 !important;
	margin: 0 !important;
	overflow: hidden !important;
}

.post-card-tags {
	display: flex !important;
	gap: 8px !important;
	flex-wrap: wrap !important;
	margin-top: auto !important;
}

.post-card-tag {
	font-size: 0.75rem !important;
	padding: 5px 14px !important;
	background: #EEF3FF !important;
	color: #4a6cf7 !important;
	border-radius: 6px !important;
	display: flex !important;
	border: 1px solid #D4DEFF !important;
	align-items: center !important;
	gap: 4px !important;
}

.post-card-tag::before {
	content: '#' !important;
	margin-right: 4px !important;
}

.post-card-image-link {
	display: block !important;
	width: 100% !important;
	height: 100% !important;
	min-height: 200px !important;
}

.post-card-image-link img {
	width: 100% !important;
	height: 100% !important;
	object-fit: cover !important;
}

.post-card-arrow {
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 100% !important;
	height: 100% !important;
	min-height: 200px !important;
	color: #4a6cf7 !important;
	text-decoration: none !important;
	transition: all 0.3s ease !important;
}

.post-card-arrow svg {
	width: 20px !important;
	height: 20px !important;
}

.post-card-footer {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding-top: 12px;
	border-top: 1px solid #f0f0f0;
}

.post-card-date {
	font-size: 0.8rem;
	color: #999;
	display: flex;
	align-items: center;
	gap: 6px;
}



.read-more-link {
	font-size: 0.8rem;
	color: #4a6cf7;
	text-decoration: none;
	font-weight: 500;
	display: flex;
	align-items: center;
	gap: 4px;
}

.read-more-link:hover {
	text-decoration: none;
}

.read-more-link::after {
	content: '→';
	transition: transform 0.3s ease;
}

.read-more-link:hover::after {
	transform: translateX(4px);
}

.view-article-btn {
	font-size: 0.8rem;
	color: #fff;
	background: linear-gradient(135deg, #4a6cf7 0%, #6366f1 100%);
	text-decoration: none;
	font-weight: 500;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 6px 16px;
	border-radius: 16px;
	transition: opacity 0.2s;
}

.view-article-btn:hover {
	opacity: 0.9;
	text-decoration: none;
	color: #fff;
}

.user-profile-wrapper {
	display: flex;
	justify-content: center;
	align-items: flex-start;
	padding: 0;
	flex-direction: column;
	gap: 12px;
	width: 100%;
	box-sizing: border-box;
}

/* ========== 强制三卡片宽度一致：左右边缘对齐 ========== */
/* 特异性 + !important 双重保障：任何情况下宽度都填满 wrapper */
.user-profile-wrapper > .user-profile-card,
.user-profile-wrapper > .user-stats-outside,
.user-profile-wrapper > .user-profile-nav-outside {
	width: 100% !important;
	max-width: 100% !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
	box-sizing: border-box !important;
}

.user-profile-nav {
	display: flex;
	gap: 10px;
	margin-top: 0;
	width: 100%;
}

.profile-nav-item {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 11px 14px;
	background: #fff;
	border: 1px solid #e8f0ff;
	border-radius: 12px;
	text-decoration: none;
	color: #4a6cf7;
	font-size: 0.82rem;
	font-weight: 500;
	cursor: pointer;
}

/* 基础轻微悬浮反馈（不抬升、不变色） */
.profile-nav-item:hover {
	background: linear-gradient(135deg, #fafcff 0%, #eef2ff 100%);
	border-color: #d4deff;
	box-shadow: 0 3px 12px rgba(74, 108, 247, 0.08);
	cursor: pointer;
}

.profile-nav-item.active {
	background: linear-gradient(135deg, #4a6cf7 0%, #6366f1 100%);
	color: #fff;
	border-color: transparent;
	box-shadow: 0 4px 12px rgba(74, 108, 247, 0.2);
}

.profile-nav-item svg {
	flex-shrink: 0;
}

.user-profile-card {
	position: relative;
	background: #fff;
	width: 100%;
	border-radius: 12px;
	padding: 0 20px 20px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	border: 1px solid #e8f0ff;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
	box-sizing: border-box;
}

/* 顶部渐变装饰条：已移除 */
.user-card-header-decoration,
.user-card-header-decoration::after {
	display: none !important;
}

.user-avatar-section {
	display: flex;
	justify-content: center;
	align-items: center;
	padding: 20px 16px 10px;
	position: relative;
	z-index: 2;
}

.user-avatar-wrapper {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
}

.user-avatar-wrapper img {
	width: 96px !important;
	height: 96px !important;
	border-radius: 50% !important;
	object-fit: cover !important;
	border: 3px solid #ffffff !important;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1), 0 0 0 2px rgba(74, 108, 247, 0.08);
	padding: 0 !important;
	background: #fff;
}

/* 头像在线状态指示点：已移除 */
.user-avatar-online-status {
	display: none !important;
}

/* 头像右下角：浮动角色徽章 */
.user-role-badge-float {
	position: absolute;
	right: -6px;
	bottom: -2px;
	display: inline-flex;
	align-items: center;
	padding: 3px 9px;
	font-size: 0.65rem;
	font-weight: 600;
	line-height: 1.4;
	color: #4a6cf7 !important;
	background: #fff !important;
	border-radius: 20px !important;
	border: 1px solid #eef2ff !important;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
	white-space: nowrap;
}

.user-info-section {
	padding: 8px 0 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	position: relative;
	z-index: 1;
}

/* 用户名单行 */
.user-name-row {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin-bottom: 12px;
	flex-wrap: wrap;
}

/* 本人个人空间：昵称旁边的「修改资料」入口 */
.user-edit-profile-btn {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 3px 11px;
	border: 1px solid #dcdffb;
	border-radius: 20px;
	background: #f7f8ff;
	color: #4f46e5;
	font-size: .78rem;
	line-height: 1.6;
	text-decoration: none;
	transition: background .2s ease, border-color .2s ease, color .2s ease;
}
.user-edit-profile-btn:hover {
	background: #6366f1;
	border-color: #6366f1;
	color: #fff;
}
.user-edit-profile-btn svg { flex: 0 0 auto; }

.user-name {
	font-size: 1.22rem;
	font-weight: 700;
	color: #1f2937;
	margin: 0;
	letter-spacing: 0.2px;
}

.user-role-badge {
	display: inline-flex;
	align-items: center;
	padding: 3px 10px;
	font-size: 0.7rem;
	font-weight: 600;
	color: #4a6cf7;
	background: linear-gradient(135deg, rgba(74, 108, 247, 0.08) 0%, rgba(99, 102, 241, 0.12) 100%);
	border-radius: 10px;
	border: 1px solid rgba(74, 108, 247, 0.15);
	white-space: nowrap;
}

/* 个人说明区域 */
.user-bio-wrapper {
	position: relative;
	width: 100%;
	background: #fff;
	border: 1px solid #eef2ff;
	border-radius: 10px;
	padding: 12px 14px 12px 34px;
	margin-bottom: 0;
	text-align: left;
	box-sizing: border-box;
}

/* 旧引号样式：隐藏 */
.user-bio-quote {
	display: none !important;
}

/* 鹅毛笔图标样式 */
.user-bio-quill {
	position: absolute;
	left: 10px;
	top: 12px;
	color: #a5b4fc;
	opacity: 0.95;
}

.user-bio-empty {
	padding: 12px 14px 12px 34px;
	background: #fff;
	border: 1px dashed #e0e7ff;
}

.user-bio-empty .user-bio {
	color: #9ca3af;
	font-style: italic;
}

/* User bio (author description) */
.user-bio {
	width: 100%;
	font-size: 0.82rem;
	line-height: 1.7;
	color: #4b5563;
	margin: 0;
	word-break: break-word;
}

.user-stats {
	width: 100%;
	display: flex;
	align-items: stretch;
	justify-content: space-between;
	background: #fff;
	border-radius: 10px;
	padding: 14px 8px;
	border: 1px solid #eef2ff;
	box-sizing: border-box;
}

/* ========== 统计栏（卡片外独立模块） ========== */
.user-stats-outside {
	width: 100%;
	border-radius: 12px;
	padding: 14px 20px;
	background: #fff;
	border: 1px solid #e8f0ff;
	box-shadow: 0 2px 10px rgba(74, 108, 247, 0.05);
	box-sizing: border-box;
}

.user-stat-item {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 4px 2px;
	min-width: 0;
}

.user-stat-value {
	font-size: 1.3rem;
	font-weight: 700;
	background: linear-gradient(135deg, #4a6cf7 0%, #6366f1 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	line-height: 1.2;
}

.user-stat-label {
	font-size: 0.72rem;
	color: #6b7280;
	margin-top: 4px;
	font-weight: 500;
}

.user-stat-divider {
	width: 1px;
	align-self: center;
	height: 28px;
	background: linear-gradient(180deg, transparent 0%, #e5e7eb 30%, #e5e7eb 70%, transparent 100%);
	flex-shrink: 0;
}

/* ========== 导航按钮组（卡片外独立模块） ========== */
.user-profile-nav-outside {
	width: 100%;
	margin-top: 0;
	display: flex;
	justify-content: space-between;
	gap: 12px;
	box-sizing: border-box;
	padding: 0;
}

.user-profile-nav-outside .profile-nav-item {
	flex: 0 0 calc((100% - 24px) / 3);
	max-width: calc((100% - 24px) / 3);
	padding: 12px 14px;
	border-radius: 10px;
	font-size: 0.85rem;
	font-weight: 600;
	background: #fff;
	border: 1px solid #e8f0ff;
	box-shadow: 0 2px 10px rgba(74, 108, 247, 0.05);
	gap: 5px;
	display: flex;
	align-items: center;
	justify-content: center;
	white-space: nowrap;
	min-width: 0;
	overflow: hidden;
	cursor: pointer;
}

/* 轻微悬浮反馈（不抬升、不反白） */
.user-profile-nav-outside .profile-nav-item:hover {
	background: linear-gradient(135deg, #fafcff 0%, #eef2ff 100%);
	border-color: #d4deff;
	box-shadow: 0 4px 14px rgba(74, 108, 247, 0.1);
	cursor: pointer;
}

.user-profile-nav-outside .profile-nav-item.active {
	background: linear-gradient(135deg, #4a6cf7 0%, #6366f1 100%);
	color: #fff;
	box-shadow: 0 4px 16px rgba(74, 108, 247, 0.28);
}

/* ========== 「我的空间」卡片（4 个入口） ========== */
/* ⚠️ 4 个入口不能沿用下面那套「3 等分」flex 宽度（flex: 0 0 calc((100% - 24px) / 3)）——
   那是按 3 个入口算的，加到第 4 个（我的消息）后总宽 133% 会溢出、把入口挤到卡片外面去。
   改成 2×2 网格，任何宽度下都不溢出。 */
.user-profile-nav-outside.user-nav-card {
	display: block;
	background: #fff;
	border: 1px solid #e8f0ff;
	border-radius: 12px;
	padding: 14px 14px 16px;
	box-shadow: 0 2px 12px rgba(74, 108, 247, 0.05);
}

.user-nav-card-head {
	margin-bottom: 12px;
}

.user-nav-card-title {
	display: inline-block;
	padding-left: 8px;
	border-left: 3px solid #4a6cf7;
	font-size: 0.85rem;
	font-weight: 600;
	line-height: 1.1;
	color: #1f2937;
}

.user-nav-card .user-profile-nav {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
	width: 100%;
}

.user-profile-nav-outside.user-nav-card .profile-nav-item {
	flex: none;
	width: auto;
	max-width: none;
	padding: 12px 6px;
	border-radius: 10px;
	font-size: 0.82rem;
	font-weight: 600;
	gap: 5px;
}

/* User website link row */
.user-url-row {
	width: 100%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	margin: 16px 0 16px;
	font-size: 0.8rem;
	color: #4a6cf7;
}

.user-url-row svg {
	flex-shrink: 0;
}

.user-url-row a {
	color: #4a6cf7;
	text-decoration: none;
	transition: color 0.2s;
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
	max-width: 100%;
}

.user-url-row a:hover {
	color: #6366f1;
	text-decoration: none;
}


.popular-posts-card {
	background: #fff;
	border-radius: 12px;
	padding: 16px;
	position: relative;
	overflow: hidden;
	border: 1px solid #e8f0ff;
	transition: box-shadow 0.3s ease;
}

.popular-posts-card:hover {
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.popular-posts-title {
	font-size: 1rem;
	font-weight: 600;
	color: #4a6cf7;
	margin: 0 0 15px 0;
	display: flex;
	align-items: center;
	gap: 8px;
	position: relative;
	z-index: 1;
}

.popular-posts-title::before {
	content: '';
	width: 4px;
	height: 16px;
	background: linear-gradient(180deg, #7BA3FF 0%, #4a6cf7 100%);
	border-radius: 2px;
}

.popular-posts-list {
	list-style: none;
	padding: 0;
	margin: 0;
	position: relative;
	z-index: 1;
}

.popular-post-item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 0;
	border-bottom: 1px solid #f5f5f5;
}

.popular-post-item:last-child {
	border-bottom: none;
}

.post-rank {
	width: 22px;
	height: 22px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 0.75rem;
	font-weight: 600;
	background-color: #e8f0ff;
	color: #999;
	border-radius: 6px;
	flex-shrink: 0;
}

.popular-post-item:nth-child(1) .post-rank {
	background-color: #4a6cf7;
	color: #fff;
}

.popular-post-item:nth-child(2) .post-rank {
	background-color: #4a6cf7;
	color: #fff;
}

.popular-post-item:nth-child(3) .post-rank {
	background-color: #4a6cf7;
	color: #fff;
}

.post-link {
	font-size: 0.85rem;
	color: #333;
	text-decoration: none;
	line-height: 1.5;
	display: -webkit-box;
	line-clamp: 1;
	-webkit-line-clamp: 1;
	-webkit-box-orient: vertical;
	overflow: hidden;
	flex: 1;
}

.post-link:hover {
	color: #4a6cf7;
}

.category-directory-card {
	background: #fff;
	border-radius: 12px;
	padding: 16px;
	position: relative;
	overflow: hidden;
	border: 1px solid #e8f0ff;
	transition: box-shadow 0.3s ease;
}

.category-directory-card:hover {
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.category-list {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	position: relative;
	z-index: 1;
}

.category-item {
	font-size: 0.75rem;
	padding: 8px 16px;
	background-color: #EEF3FF;
	color: #4a6cf7;
	border-radius: 20px;
	text-decoration: none;
	transition: all 0.3s ease;
	display: inline-flex;
	align-items: center;
	gap: 4px;
	border: 1px solid transparent;
}

.category-item:hover {
	background-color: #4a6cf7;
	color: #fff;
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(74, 108, 247, 0.3);
}

.category-name {
	font-size: 0.75rem;
	font-weight: 500;
}

.category-count {
	font-size: 0.65rem;
	color: inherit;
	opacity: 0.8;
}

.category-hidden {
	display: none;
}

.category-show {
	display: inline-flex !important;
}

.tags-cloud-card {
	background: #fff;
	border-radius: 12px;
	padding: 16px;
	position: relative;
	overflow: hidden;
	border: 1px solid #e8f0ff;
	transition: box-shadow 0.3s ease;
}

.tags-cloud-card:hover {
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.tags-title {
	font-size: 1rem;
	font-weight: 600;
	color: #4a6cf7;
	margin: 0 0 8px 0;
	display: flex;
	align-items: center;
	gap: 8px;
	position: relative;
	z-index: 1;
}

.tags-title::before {
	content: '';
	width: 4px;
	height: 16px;
	background: linear-gradient(180deg, #7BA3FF 0%, #4a6cf7 100%);
	border-radius: 2px;
}

.tags-list {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	max-height: 90px;
	overflow: hidden;
	position: relative;
	z-index: 1;
	transition: max-height 0.3s ease;
}

.tags-list.expanded {
	max-height: 500px;
}

.tag-item {
	font-size: 0.75rem;
	padding: 8px 16px;
	background-color: #EEF3FF;
	color: #4a6cf7;
	border-radius: 20px;
	text-decoration: none;
	transition: all 0.3s ease;
	border: 1px solid transparent;
}

.tag-item:hover {
	background-color: #4a6cf7;
	color: #fff;
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(74, 108, 247, 0.3);
}

.tags-more-btn {
	display: block;
	margin: 15px auto 0;
	padding: 8px 20px;
	background: none;
	border: none;
	font-size: 0.85rem;
	color: #4a6cf7;
	cursor: pointer;
	transition: all 0.3s ease;
	display: flex;
	align-items: center;
	gap: 5px;
	position: relative;
	z-index: 1;
}

.tags-more-btn:hover {
	color: #ff1493;
}



@media (max-width: 1024px) {
	.homepage-layout {
		flex-direction: column;
	}

	.blog-full-layout {
		flex-direction: column !important;
		padding: 0 24px !important;
		gap: 24px !important;
	}

	.blog-left-card {
		width: 100% !important;
	}

	.blog-main-content {
		flex-direction: column !important;
		gap: 24px !important;
	}

	.home-sidebar {
		width: 100% !important;
	}
}

@media (max-width: 768px) {
	.latest-posts-list {
		grid-template-columns: 1fr;
	}
}

.toolbox-section {
	padding: 40px 0;
}

.toolbox-section .section-header {
	flex-direction: column;
	align-items: flex-start;
	gap: 10px;
	margin-bottom: 40px;
}

.toolbox-section .section-header h2 {
	font-size: 2rem;
	border-left: 5px solid #4a6cf7;
	padding-left: 15px;
}

.toolbox-section .section-header p {
	margin: 0;
	color: #999;
	font-size: 1rem;
}

.toolbox-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 24px;
}

.tool-card {
	background: #f8faff;
	border-radius: 16px;
	padding: 30px;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
	transition: all 0.3s ease-in-out;
	position: relative;
	overflow: hidden;
	text-align: center;
	border: 1px solid #e8f0ff;
}

.tool-card:hover {
	box-shadow: 0 8px 30px rgba(74, 108, 247, 0.15);
	transform: translateY(-4px);
}

.tool-card::before {
	content: '';
	position: absolute;
	top: -50%;
	left: -50%;
	width: 200%;
	height: 200%;
	background: radial-gradient(circle, rgba(74, 108, 247, 0.05) 0%, transparent 70%);
	opacity: 0;
	transition: opacity 0.3s ease;
}

.tool-card:hover::before {
	opacity: 1;
}

.tool-icon {
	width: 64px;
	height: 64px;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 20px;
	background: linear-gradient(135deg, #f0f4ff 0%, #e8ecff 100%);
	border-radius: 16px;
	color: #4a6cf7;
	font-size: 28px;
	transition: all 0.3s ease;
}

.tool-card:hover .tool-icon {
	background: linear-gradient(135deg, #4a6cf7 0%, #6366f1 100%);
	color: #fff;
	transform: scale(1.1);
}

.tool-icon svg {
	width: 28px;
	height: 28px;
}

.tool-card h3 {
	font-size: 1.1rem;
	font-weight: 600;
	color: #333;
	margin: 0 0 10px 0;
}

.tool-card p {
	font-size: 0.85rem;
	color: #999;
	margin: 0 0 20px 0;
	line-height: 1.6;
}

.tool-link {
	display: inline-block;
	font-size: 0.85rem;
	color: #4a6cf7;
	text-decoration: none;
	font-weight: 500;
	transition: all 0.3s ease;
}

.tool-link:hover {
	text-decoration: none;
}

.tool-link::after {
	content: '→';
	margin-left: 4px;
	transition: transform 0.3s ease;
}

.tool-link:hover::after {
	transform: translateX(4px);
}

@media (max-width: 768px) {
	.toolbox-grid {
		grid-template-columns: 1fr;
	}

	.toolbox-section .section-header h2 {
		font-size: 1.5rem;
	}
}

.tool-detail-section {
	padding: 40px 0;
}

.tool-detail-section .section-header {
	flex-direction: row;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 40px;
}

.tool-detail-section .section-header h2 {
	font-size: 2rem;
	border-left: 5px solid #4a6cf7;
	padding-left: 15px;
	margin: 0;
}

.back-link {
	font-size: 0.9rem;
	color: #4a6cf7;
	text-decoration: none;
	display: flex;
	align-items: center;
	gap: 5px;
	transition: color 0.3s ease;
}

.back-link:hover {
	color: #6366f1;
	text-decoration: none;
}

.tool-content {
	max-width: 600px;
	margin: 0 auto;
}

.tool-placeholder {
	background: #f8faff;
	border-radius: 16px;
	padding: 60px 40px;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
	text-align: center;
	border: 1px solid #e8f0ff;
}

.placeholder-icon {
	width: 80px;
	height: 80px;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 25px;
	background: linear-gradient(135deg, #f0f4ff 0%, #e8ecff 100%);
	border-radius: 20px;
	color: #4a6cf7;
	font-size: 36px;
}

.placeholder-icon svg {
	width: 36px;
	height: 36px;
}

.tool-placeholder h3 {
	font-size: 1.3rem;
	font-weight: 600;
	color: #333;
	margin: 0 0 15px 0;
}

.tool-placeholder p {
	font-size: 0.95rem;
	color: #999;
	margin: 0 0 30px 0;
	line-height: 1.6;
}

.back-button {
	display: inline-block;
	padding: 12px 30px;
	background: linear-gradient(135deg, #4a6cf7 0%, #6366f1 100%);
	color: #fff;
	text-decoration: none;
	border-radius: 8px;
	font-weight: 500;
	font-size: 0.9rem;
	transition: all 0.3s ease;
}

.back-button:hover {
	background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
	transform: translateY(-2px);
	box-shadow: 0 4px 15px rgba(74, 108, 247, 0.3);
}

.pagination-container {
	text-align: center;
	padding: 30px 0;
}

.pagination-container ul {
	list-style: none;
	padding: 0;
	margin: 0;
	display: inline-flex;
	gap: 8px;
}

.pagination-container li {
	display: inline-block;
}

.pagination-container a,
.pagination-container span {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 8px;
	text-decoration: none;
	font-size: 0.9rem;
	font-weight: 500;
	transition: all 0.3s ease;
}

.pagination-container a {
	background: #f8faff;
	color: #666;
	border: 1px solid #e8f0ff;
}

.pagination-container a:hover {
	background: #f8f9fa;
	border-color: #d0d0d0;
}

.pagination-container .current {
	background: #3b82f6;
	color: #fff;
	border: 1px solid #3b82f6;
}

.pagination-container a svg {
	width: 14px;
	height: 14px;
}

/* ========== 个人空间 - 我的文章（与我的视频设计完全一致，蓝色主题） ========== */

.my-post-section-header {
	display: flex;
	flex-direction: column;
	gap: 14px;
	margin-bottom: 18px;
	padding-bottom: 4px;
	border-bottom: 1px solid #ececec;
}

.my-post-header-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.my-post-header-title {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0;
	padding: 0;
	font-size: 18px;
	font-weight: 600;
	color: #18191c;
	line-height: 1.2;
	letter-spacing: 0.2px;
}

.my-post-header-title .title-bar {
	display: inline-block;
	width: 3px;
	height: 16px;
	border-radius: 2px;
}
.my-post-header-title .title-bar-post {
	background: #4a6cf7; /* 主题蓝 */
}

.my-post-tabs {
	display: flex;
	align-items: flex-end;
	gap: 0;
	border-bottom: 1px solid transparent;
	margin-bottom: -1px;
}

.my-post-tab {
	position: relative;
	display: inline-flex;
	align-items: center;
	padding: 8px 18px 12px;
	font-size: 14px;
	font-weight: 500;
	color: #6b7280;
	text-decoration: none;
	white-space: nowrap;
	border-bottom: 2px solid transparent;
	transition: color 0.18s ease, border-color 0.18s ease;
}

.my-post-tab:hover {
	color: #374151;
}

.my-post-tab.active {
	color: #111827;
	font-weight: 600;
	border-bottom-color: #4a6cf7;
}

/* ========== 个人空间 - 我的收藏（只改样式，套相同的 header 壳子，绿色主题） ========== */

.my-bookmark-section-header {
	display: flex;
	flex-direction: column;
	gap: 14px;
	margin-bottom: 18px;
	padding-bottom: 4px;
	border-bottom: 1px solid #ececec;
}

.my-bookmark-header-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.my-bookmark-header-title {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0;
	padding: 0;
	font-size: 18px;
	font-weight: 600;
	color: #18191c;
	line-height: 1.2;
	letter-spacing: 0.2px;
}

.my-bookmark-header-title .title-bar {
	display: inline-block;
	width: 3px;
	height: 16px;
	border-radius: 2px;
}
.my-bookmark-header-title .title-bar-bookmark {
	background: #10b981; /* 收藏绿 */
}

/* ========== 个人空间 - 我的视频 ========== */

/* ===== 区块头部：标题 + 下划线式 Tab ===== */
.my-video-section-header {
	display: flex;
	flex-direction: column;
	gap: 14px;
	margin-bottom: 18px;
	padding-bottom: 4px;
	border-bottom: 1px solid #ececec;
}

.my-video-header-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.my-video-header-title {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0;
	padding: 0;
	font-size: 18px;
	font-weight: 600;
	color: #18191c;
	line-height: 1.2;
	letter-spacing: 0.2px;
}

.my-video-header-title .title-bar {
	display: inline-block;
	width: 3px;
	height: 16px;
	background: #fb7299;
	border-radius: 2px;
}

/* 下划线式 Tab */
.my-video-tabs {
	display: flex;
	align-items: flex-end;
	gap: 0;
	border-bottom: 1px solid transparent;
	margin-bottom: -1px;
}

.my-video-tab {
	position: relative;
	display: inline-flex;
	align-items: center;
	padding: 8px 18px 12px;
	font-size: 14px;
	font-weight: 500;
	color: #6b7280;
	text-decoration: none;
	white-space: nowrap;
	border-bottom: 2px solid transparent;
	transition: color 0.18s ease, border-color 0.18s ease;
}

.my-video-tab:hover {
	color: #374151;
}

.my-video-tab.active {
	color: #111827;
	font-weight: 600;
	border-bottom-color: #fb7299;
}

/* 可见性状态徽标（缩略图右上角） */
.my-video-status-badge {
	position: absolute;
	top: 8px;
	right: 8px;
	font-size: 11px;
	font-weight: 500;
	padding: 2px 8px;
	border-radius: 10px;
	backdrop-filter: blur(4px);
	letter-spacing: 0.3px;
	color: #fff;
}

.my-video-status-badge.status-publish {
	background: rgba(16, 185, 129, 0.9);
}

.my-video-status-badge.status-private {
	background: rgba(239, 68, 68, 0.9);
}

.my-video-status-badge.status-draft {
	background: rgba(107, 114, 128, 0.9);
}

.my-video-status-badge.status-pending {
	background: rgba(245, 158, 11, 0.9);
}

.my-video-grid {
	display: grid !important;
	grid-template-columns: repeat(4, 1fr) !important;
	gap: 14px !important;
	margin-top: 4px !important;
	width: 100% !important;
}

.my-video-card {
	text-decoration: none;
	color: inherit;
	display: flex;
	flex-direction: column;
	background: #fff;
	border-radius: 10px;
	overflow: hidden;
	border: 1px solid #e8eaed;
	transition: all 0.2s ease;
}

.my-video-card:hover {
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
	border-color: #d4d6d9;
	transform: translateY(-2px);
}

.my-video-card:hover .my-video-title {
	color: #fb7299;
}

.my-video-card:hover .my-video-thumb {
	transform: scale(1.02);
}

/* 缩略图区域 */
.my-video-thumb {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	display: block;
	background-color: #000;
	transition: transform 0.3s ease;
}

.my-video-cover-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.my-video-thumb-video {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.my-video-thumb-empty {
	width: 100%;
	height: 100%;
	background-color: #1a1a1a;
}

.my-video-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, transparent 60%, rgba(0, 0, 0, 0.35) 100%);
	pointer-events: none;
}

.my-video-badge {
	position: absolute;
	top: 8px;
	left: 8px;
	background: rgba(0, 0, 0, 0.55);
	color: #fff;
	font-size: 11px;
	font-weight: 500;
	padding: 2px 6px;
	border-radius: 3px;
	backdrop-filter: blur(4px);
	letter-spacing: 0.5px;
}

.my-video-play {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 40px;
	height: 40px;
	background: rgba(0, 0, 0, 0.5);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	font-size: 12px;
	transition: all 0.2s ease;
	opacity: 0;
}

.my-video-card:hover .my-video-play {
	opacity: 1;
	background: #fb7299;
}

/* 信息区域 */
.my-video-info {
	padding: 8px 10px 10px;
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.my-video-title {
	font-size: 13px;
	font-weight: 600;
	color: #18191c;
	margin: 0;
	line-height: 1.4;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	transition: color 0.2s ease;
}

.my-video-desc {
	display: none;
}

.my-video-meta {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 11px;
	color: #9499a0;
}

.my-video-views {
	display: flex;
	align-items: center;
	gap: 2px;
	color: #61666d;
}

.my-video-views svg {
	color: #9499a0;
}

.my-video-cat {
	padding: 1px 5px;
	background: #f1f2f3;
	color: #61666d;
	border-radius: 3px;
	font-size: 11px;
	line-height: 1.4;
}

.my-video-time {
	margin-left: auto;
	color: #9499a0;
	font-size: 11px;
}

@media (max-width: 1024px) {
	.my-video-grid {
		grid-template-columns: repeat(3, 1fr) !important;
	}
}

@media (max-width: 768px) {
	.my-video-grid {
		grid-template-columns: repeat(2, 1fr) !important;
		gap: 10px !important;
	}
}

@media (max-width: 480px) {
	.my-video-grid {
		grid-template-columns: 1fr !important;
	}
}
