/**
 * 子主题自定义首页模块样式
 *
 * 在这里添加你的自定义模块样式
 *
 * @package    Hui
 * @since      1.4.1
 */

/* ============================================================================
   节日日历模块
   ============================================================================ */

.hui-festivals {
	padding: 2rem 0;
	position: relative;
	z-index: 10; /* 确保在其他模块上方，避免被覆盖 */
}

/* 使用父主题的标题样式，无需自定义 */

/* 滚动容器 */
.hui-festivals-scroll {
	position: relative;
	margin-top: 2rem;
}

.hui-festivals-list {
	display: flex;
	gap: 1rem;
	overflow-x: auto !important; /* 强制启用水平滚动 */
	overflow-y: hidden !important;
	scroll-behavior: smooth;
	scrollbar-width: none; /* Firefox */
	-ms-overflow-style: none; /* IE/Edge */
	padding: 0.5rem 0;
	-webkit-overflow-scrolling: touch !important; /* iOS 平滑滚动 */
	touch-action: pan-x !important; /* 允许水平触摸滚动 */
	overscroll-behavior-x: contain;
	cursor: grab;
}

.hui-festivals-list:active {
	cursor: grabbing;
}

.hui-festivals-list::-webkit-scrollbar {
	display: none; /* Chrome/Safari */
}

/* 导航按钮容器 */
.hui-festivals-nav-wrapper {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	pointer-events: none;
	z-index: 1;
}

/* 导航按钮 */
.hui-festivals-nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--color-bg-container);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-full, 9999px);
	cursor: pointer;
	transition: all 0.3s var(--ease-smooth);
	z-index: 10;
	color: var(--color-text-secondary);
	pointer-events: auto;
	box-shadow: var(--shadow-sm);
}

.hui-festivals-nav:hover {
	background: var(--xun-secondary, var(--color-secondary));
	border-color: var(--xun-secondary, var(--color-secondary));
	color: #fff;
	box-shadow: var(--shadow-md);
}

.hui-festivals-nav-prev {
	left: -20px;
}

.hui-festivals-nav-next {
	right: -20px;
}

.hui-festivals-nav svg {
	flex-shrink: 0;
}

/* 节日卡片 - 长方形横向布局 */
.hui-festival-item {
	flex: 0 0 auto;
	min-width: 160px;
	padding: 0.75rem 1rem;
	background: var(--color-bg-container);
	border: 1px solid var(--color-border-secondary);
	border-radius: var(--xun-radius, 8px);
	transition: all 0.3s var(--ease-smooth);
	cursor: default;
	position: relative;
	display: flex;
	align-items: center;
	gap: 0.75rem;
	user-select: none !important; /* 防止文本选择干扰滑动 */
	-webkit-user-select: none !important;
	-moz-user-select: none !important;
	-ms-user-select: none !important;
	touch-action: pan-x !important; /* 允许水平滑动 */
}

.hui-festival-item:hover {
	border-color: var(--xun-secondary, var(--color-secondary));
	box-shadow: var(--shadow-sm);
	transform: translateY(-2px);
}

/* 今天的节日 - 高亮显示 */
.hui-festival-item.is-today {
	background: linear-gradient(135deg, 
		var(--xun-secondary, var(--color-secondary)) 0%, 
		var(--xun-secondary-hover, var(--color-secondary-dark)) 100%
	);
	border-color: transparent;
	color: #fff;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15),
	            0 2px 8px rgba(0, 0, 0, 0.1);
	position: relative;
	overflow: hidden;
}

/* 今天节日卡片的光泽效果 */
.hui-festival-item.is-today::before {
	content: '';
	position: absolute;
	top: -50%;
	right: -30%;
	width: 80%;
	height: 200%;
	background: linear-gradient(
		60deg,
		transparent 0%,
		rgba(255, 255, 255, 0.08) 50%,
		transparent 100%
	);
	pointer-events: none;
	transform: rotate(-10deg);
}

.hui-festival-item.is-today .hui-festival-name,
.hui-festival-item.is-today .hui-festival-date,
.hui-festival-item.is-today .hui-festival-countdown {
	color: #fff;
	position: relative;
	z-index: 1;
}

.hui-festival-item.is-today .hui-festival-separator {
	color: rgba(255, 255, 255, 0.8);
}

/* 节日日期 - 左侧大数字 */
.hui-festival-date {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-width: 60px;
	border-right: 1px solid var(--color-border-secondary);
	padding-right: 0.75rem;
}

.hui-festival-item.is-today .hui-festival-date {
	border-right-color: rgba(255, 255, 255, 0.3);
}

.hui-festival-month {
	font-size: 0.75rem;
	font-weight: 500;
	color: var(--color-text-tertiary);
	line-height: 1;
	margin-bottom: 0.25rem;
}

.hui-festival-item.is-today .hui-festival-month {
	color: rgba(255, 255, 255, 0.9);
}

.hui-festival-day {
	font-size: 1.75rem;
	font-weight: 700;
	color: var(--xun-secondary, var(--color-secondary));
	line-height: 1;
	font-family: var(--font-display, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
}

.hui-festival-item.is-today .hui-festival-day {
	color: #fff;
}

.hui-festival-separator {
	display: none; /* 隐藏分隔符 */
}

/* 节日信息 - 右侧内容 */
.hui-festival-info {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
	min-width: 0;
}

/* 节日名称 */
.hui-festival-name {
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--color-text);
	line-height: 1.6;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	margin: 0;
	min-height: auto;
	display: flex;
	align-items: center;
	text-align: left;
}

/* 倒计时 */
.hui-festival-countdown {
	font-size: 0.75rem;
	color: var(--color-text-tertiary);
	font-weight: 500;
	line-height: 1;
}

/* 类型标签 - 内联显示在节日名称前 */
.hui-festival-badge {
	display: inline-block;
	padding: 0.125rem 0.375rem;
	background: var(--xun-secondary, var(--color-secondary));
	color: #fff;
	font-size: 0.625rem;
	border-radius: var(--radius-sm, 4px);
	font-weight: 500;
	line-height: 1.2;
	margin-right: 0.375rem;
	vertical-align: middle;
}

.hui-festival-item.is-today .hui-festival-badge {
	background: rgba(255, 255, 255, 0.3);
	color: #fff;
}

/* 响应式设计 */
@media (max-width: 1024px) {
	.hui-festivals-nav-wrapper {
		display: none; /* 移动端完全隐藏导航按钮容器 */
	}
	
	.hui-festivals-nav {
		display: none;
	}
}

@media (max-width: 768px) {
	.hui-festivals {
		padding: 1.5rem 0;
	}

	.hui-festivals-scroll {
		overflow: visible;
		-webkit-overflow-scrolling: touch;
	}

	.hui-festivals-list {
		overflow-x: scroll !important; /* 强制显示滚动 */
		-webkit-overflow-scrolling: touch !important;
		scroll-snap-type: none;
		touch-action: pan-x !important;
	}

	.hui-festival-item {
		min-width: 140px;
		padding: 0.625rem 0.75rem;
		gap: 0.625rem;
		touch-action: pan-x !important;
		pointer-events: auto !important;
	}

	.hui-festival-date {
		min-width: 50px;
		padding-right: 0.625rem;
	}

	.hui-festival-day {
		font-size: 1.5rem;
	}

	.hui-festival-name {
		font-size: 0.8125rem;
	}

	.hui-festival-countdown {
		font-size: 0.6875rem;
	}

	.hui-festival-badge {
		font-size: 0.5625rem;
		padding: 0.0625rem 0.25rem;
	}
}

/* 深色模式适配 */
@media (prefers-color-scheme: dark) {
	:root:not(.light) .hui-festival-item {
		background: var(--color-bg-container);
		border-color: var(--color-border-secondary);
	}

	:root:not(.light) .hui-festival-item:hover {
		border-color: var(--xun-secondary, var(--color-secondary));
	}

	:root:not(.light) .hui-festivals-nav {
		background: var(--color-bg-container);
		border-color: var(--color-border);
	}

	:root:not(.light) .hui-festivals-nav:hover {
		background: var(--xun-secondary, var(--color-secondary));
		border-color: var(--xun-secondary, var(--color-secondary));
	}
}

.dark .hui-festival-item {
	background: var(--color-bg-container);
	border-color: var(--color-border-secondary);
}

.dark .hui-festival-item:hover {
	border-color: var(--xun-secondary, var(--color-secondary));
}

.dark .hui-festivals-nav {
	background: var(--color-bg-container);
	border-color: var(--color-border);
}

.dark .hui-festivals-nav:hover {
	background: var(--xun-secondary, var(--color-secondary));
	border-color: var(--xun-secondary, var(--color-secondary));
}

/* ============================================================================
   示例：自定义模块样式
   ============================================================================ */

/*
.hui-my-module {
	padding: 3rem 0;
}

.hui-my-module-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 1.5rem;
	margin-top: 2rem;
}

响应式设计
@media (max-width: 768px) {
	.hui-my-module {
		padding: 2rem 0;
	}
	
	.hui-my-module-grid {
		grid-template-columns: 1fr;
	}
}

深色模式适配
@media (prefers-color-scheme: dark) {
	:root:not(.light) .hui-my-module {
		background: var(--color-bg-container);
	}
}

.dark .hui-my-module {
	background: var(--color-bg-container);
}
*/


/* ============================================================================
   推荐作者模块
   ============================================================================ */

.hui-recommended-authors {
	padding: 2rem 0;
}

/* 模块标题区域 */
.hui-ra-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 1.5rem;
	padding-bottom: 0.75rem;
	border-bottom: 1px solid var(--color-border-secondary);
}

.hui-ra-header .xun-posts-title {
	margin: 0;
	/* 使用父主题默认的 1.25rem 字体大小，不覆盖 */
}

/* 查看全部链接 */
.hui-ra-more-link {
	display: inline-flex;
	align-items: center;
	gap: 0.25rem;
	font-size: 0.875rem;
	color: var(--color-text-secondary);
	text-decoration: none;
	transition: color 0.2s var(--ease-smooth);
}

.hui-ra-more-link:hover {
	color: var(--xun-secondary, var(--color-secondary));
}

.hui-ra-more-link svg {
	flex-shrink: 0;
	transition: transform 0.2s var(--ease-smooth);
}

.hui-ra-more-link:hover svg {
	transform: translateX(2px);
}

/* 作者列表 - 网格布局 */
.hui-ra-list {
	display: grid;
	gap: 1.25rem;
}

.hui-ra-list--card {
	grid-template-columns: repeat(4, 1fr);
}

.hui-ra-list--simple {
	grid-template-columns: repeat(5, 1fr);
}

.hui-ra-list--detailed {
	grid-template-columns: repeat(2, 1fr);
}

/* 作者卡片 */
.hui-ra-card {
	background: var(--color-bg-container);
	border: 1px solid var(--color-border-secondary);
	border-radius: var(--xun-radius-lg, 12px);
	overflow: hidden;
	transition: all 0.3s var(--ease-smooth);
	display: flex;
	flex-direction: column;
}

.hui-ra-card:hover {
	border-color: var(--xun-secondary, var(--color-secondary));
	box-shadow: var(--shadow-card-hover);
	transform: translateY(-2px);
}

/* 卡片头部 - 渐变背景或封面图 */
.hui-ra-card-header {
	position: relative;
	background: linear-gradient(135deg, 
		oklch(from var(--xun-secondary, var(--color-secondary)) l c h / 0.1) 0%, 
		oklch(from var(--xun-secondary, var(--color-secondary)) l c h / 0.05) 100%
	);
	padding: 1rem;
	border-bottom: 1px solid var(--color-border-secondary);
}

/* 封面图背景 */
.hui-ra-card-header-bg {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-image: var(--hui-ra-cover);
	background-size: cover;
	background-position: center;
	opacity: 0.15;
	z-index: 0;
}

/* 用户信息 */
.hui-ra-user {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
}

.hui-ra-avatar {
	flex-shrink: 0;
	width: 48px;
	height: 48px;
	border-radius: var(--radius-full, 9999px);
	overflow: hidden;
	border: 2px solid var(--color-bg-container);
	box-shadow: var(--shadow-sm);
}

.hui-ra-avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.hui-ra-user-info {
	flex: 1;
	min-width: 0;
}

.hui-ra-name-row {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.375rem;
	margin-bottom: 0.375rem;
}

.hui-ra-name {
	font-size: 0.9375rem;
	font-weight: 600;
	color: var(--color-text);
	text-decoration: none;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 100px;
}

.hui-ra-name:hover {
	color: var(--xun-secondary, var(--color-secondary));
}

/* 认证徽章 - 头像右下角 */
.hui-ra-avatar.hui-ra-avatar--verified {
	position: relative;
	overflow: visible !important;
}

.hui-ra-avatar--verified img {
	border-radius: var(--radius-full, 9999px);
}

.hui-ra-verified-badge {
	position: absolute;
	right: -2px;
	bottom: -2px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 18px;
	height: 18px;
	background: var(--color-bg-container);
	border-radius: 50%;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
	z-index: 1;
}

.hui-ra-verified-badge img,
.hui-ra-verified-badge svg {
	width: 14px;
	height: 14px;
	object-fit: contain;
	border-radius: 0;
}

/* 靓号徽章 */
.hui-ra-fancy-id-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 16px;
	height: 16px;
	flex-shrink: 0;
}

.hui-ra-fancy-id-badge img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.hui-ra-vip-badge {
	display: inline-flex;
	align-items: center;
	padding: 0.125rem 0.375rem;
	background: linear-gradient(135deg, #ff9500 0%, #ff5e3a 100%);
	color: #fff;
	font-size: 0.625rem;
	font-weight: 500;
	border-radius: var(--radius-sm, 4px);
	white-space: nowrap;
}

/* 统计数据 */
.hui-ra-stats {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

.hui-ra-stat {
	display: flex;
	align-items: center;
	gap: 0.25rem;
	font-size: 0.75rem;
	color: var(--color-text-tertiary);
}

.hui-ra-stat svg {
	opacity: 0.7;
}

/* 卡片内容 */
.hui-ra-card-body {
	padding: 1rem;
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.hui-ra-bio {
	font-size: 0.8125rem;
	color: var(--color-text-secondary);
	line-height: 1.6;
	margin: 0;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.hui-ra-bio-label {
	color: var(--color-text-tertiary);
}

/* 用户标签 */
.hui-ra-tags {
	display: flex;
	flex-wrap: nowrap;
	gap: 0.375rem;
	overflow: hidden;
	max-height: 1.5rem;
}

.hui-ra-tag {
	display: inline-block;
	padding: 0.125rem 0.5rem;
	background: var(--color-fill-secondary);
	color: var(--color-text-secondary);
	font-size: 0.6875rem;
	border-radius: var(--radius-full, 9999px);
	white-space: nowrap;
	flex-shrink: 0;
}

/* 最近文章 */
.hui-ra-posts {
	margin-top: auto;
}

.hui-ra-posts-label {
	font-size: 0.75rem;
	color: var(--color-text-tertiary);
	margin-bottom: 0.5rem;
}

.hui-ra-posts-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 0.375rem;
}

.hui-ra-post-thumb {
	aspect-ratio: 1;
	border-radius: var(--radius-sm, 4px);
	overflow: hidden;
	background: var(--color-fill-tertiary);
	display: block;
}

.hui-ra-post-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s var(--ease-smooth);
}

.hui-ra-post-thumb:hover img {
	transform: scale(1.1);
}

.hui-ra-post-placeholder {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--color-text-quaternary);
}

/* 暂无文章 */
.hui-ra-no-posts {
	text-align: center;
	padding: 1rem 0;
	margin-top: auto;
}

.hui-ra-no-posts p {
	font-size: 0.75rem;
	color: var(--color-text-tertiary);
	margin: 0 0 0.5rem 0;
}

.hui-ra-profile-link {
	display: inline-block;
	padding: 0.375rem 1rem;
	background: var(--color-fill-secondary);
	color: var(--color-text-secondary);
	font-size: 0.75rem;
	border-radius: var(--radius-full, 9999px);
	text-decoration: none;
	transition: all 0.2s var(--ease-smooth);
}

.hui-ra-profile-link:hover {
	background: var(--xun-secondary, var(--color-secondary));
	color: #fff;
}

/* 卡片底部 */
.hui-ra-card-footer {
	padding: 0.75rem 1rem;
	border-top: 1px solid var(--color-border-secondary);
	display: flex;
	justify-content: center;
	gap: 0.5rem;
}

.hui-ra-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.25rem;
	padding: 0.5rem 1rem;
	font-size: 0.8125rem;
	font-weight: 500;
	border-radius: var(--radius-full, 9999px);
	text-decoration: none;
	transition: all 0.2s var(--ease-smooth);
	cursor: pointer;
	border: none;
	flex: 1;
	max-width: 120px;
}

.hui-ra-btn svg {
	flex-shrink: 0;
}

.hui-ra-btn-profile {
	background: var(--color-fill-secondary);
	color: var(--color-text-secondary);
	max-width: none;
}

/* 关注按钮 - 覆盖父主题的 xun-follow-btn 样式 */
.hui-ra-card-footer .hui-ra-btn-follow.xun-follow-btn {
	background: var(--xun-secondary, var(--color-secondary));
	color: #fff;
	flex-direction: row !important;
	white-space: nowrap;
}

.hui-ra-card-footer .hui-ra-btn-follow.xun-follow-btn:hover {
	background: var(--xun-secondary-hover, var(--color-secondary-dark));
	transform: translateY(-1px);
}

.hui-ra-card-footer .hui-ra-btn-follow.xun-follow-btn.xun-following {
	background: var(--color-fill-secondary);
	color: var(--color-text-secondary);
}

.hui-ra-card-footer .hui-ra-btn-follow.xun-follow-btn.xun-following:hover {
	background: var(--color-fill-tertiary);
	color: var(--color-text-secondary);
}

/* 关注按钮内部文本容器 - 强制水平排列 */
.hui-ra-card-footer .hui-ra-btn-follow .hui-ra-follow-inner {
	display: inline-flex !important;
	align-items: center !important;
	flex-direction: row !important;
	gap: 0.25rem !important;
	white-space: nowrap !important;
}

.hui-ra-card-footer .hui-ra-btn-follow .hui-ra-follow-inner svg {
	flex-shrink: 0 !important;
	display: inline-block !important;
	vertical-align: middle !important;
}

.hui-ra-card-footer .hui-ra-btn-follow .hui-ra-follow-inner span {
	display: inline !important;
	vertical-align: middle !important;
}

/* 关注/取消关注文本显示控制 */
.hui-ra-card-footer .hui-ra-btn-follow .xun-follow-text {
	display: inline-flex !important;
}

.hui-ra-card-footer .hui-ra-btn-follow .xun-unfollow-text {
	display: none !important;
}

.hui-ra-card-footer .hui-ra-btn-follow.xun-following .xun-follow-text {
	display: inline-flex !important;
}

.hui-ra-card-footer .hui-ra-btn-follow.xun-following .xun-unfollow-text {
	display: none !important;
}

.hui-ra-card-footer .hui-ra-btn-follow.xun-following:hover .xun-follow-text {
	display: none !important;
}

.hui-ra-card-footer .hui-ra-btn-follow.xun-following:hover .xun-unfollow-text {
	display: inline-flex !important;
}

.hui-ra-card-footer .hui-ra-btn-follow.is-loading {
	opacity: 0.7;
	pointer-events: none;
}

/* 私信按钮 */
.hui-ra-btn-message {
	background: var(--color-fill-secondary);
	color: var(--color-text-secondary);
}

.hui-ra-btn-message:hover {
	background: var(--xun-secondary, var(--color-secondary));
	color: #fff;
	transform: translateY(-1px);
}

.hui-ra-btn-profile:hover {
	background: var(--xun-secondary, var(--color-secondary));
	color: #fff;
}

/* 响应式设计 */
@media (max-width: 1200px) {
	.hui-ra-list--card {
		grid-template-columns: repeat(3, 1fr);
	}
	
	.hui-ra-list--simple {
		grid-template-columns: repeat(4, 1fr);
	}
}

@media (max-width: 992px) {
	.hui-ra-list--card {
		grid-template-columns: repeat(2, 1fr);
	}
	
	.hui-ra-list--simple {
		grid-template-columns: repeat(3, 1fr);
	}
	
	.hui-ra-list--detailed {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 768px) {
	.hui-recommended-authors {
		padding: 1.5rem 0;
	}
	
	.hui-ra-list--card,
	.hui-ra-list--simple {
		grid-template-columns: repeat(2, 1fr);
	}
	
	.hui-ra-card-header {
		padding: 0.875rem;
	}
	
	.hui-ra-avatar {
		width: 40px;
		height: 40px;
	}
	
	.hui-ra-name {
		font-size: 0.875rem;
		max-width: 80px;
	}
	
	.hui-ra-card-body {
		padding: 0.875rem;
	}
	
	.hui-ra-posts-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (max-width: 480px) {
	.hui-ra-list--card,
	.hui-ra-list--simple {
		grid-template-columns: 1fr;
	}
	
	.hui-ra-posts-grid {
		grid-template-columns: repeat(4, 1fr);
	}
}

/* 深色模式适配 */
@media (prefers-color-scheme: dark) {
	:root:not(.light) .hui-ra-card {
		background: var(--color-bg-container);
		border-color: var(--color-border-secondary);
	}
	
	:root:not(.light) .hui-ra-card:hover {
		border-color: var(--xun-secondary, var(--color-secondary));
	}
	
	:root:not(.light) .hui-ra-card-header {
		background: linear-gradient(135deg, 
			oklch(from var(--xun-secondary, var(--color-secondary)) l c h / 0.15) 0%, 
			oklch(from var(--xun-secondary, var(--color-secondary)) l c h / 0.08) 100%
		);
	}
	
	:root:not(.light) .hui-ra-card-header-bg {
		opacity: 0.2;
	}
}

.dark .hui-ra-card {
	background: var(--color-bg-container);
	border-color: var(--color-border-secondary);
}

.dark .hui-ra-card:hover {
	border-color: var(--xun-secondary, var(--color-secondary));
}

.dark .hui-ra-card-header {
	background: linear-gradient(135deg, 
		oklch(from var(--xun-secondary, var(--color-secondary)) l c h / 0.15) 0%, 
		oklch(from var(--xun-secondary, var(--color-secondary)) l c h / 0.08) 100%
	);
}

.dark .hui-ra-card-header-bg {
	opacity: 0.2;
}

/* 移动端隐藏推荐作者模块 */
@media (max-width: 767px) {
	.hui-recommended-authors.hui-ra-hide-mobile {
		display: none !important;
	}
}


/* ============================================================================
   网站动态模块
   ============================================================================ */

.hui-site-activities {
	padding: 0.75rem 0;
}

.hui-sa-wrapper {
	display: flex;
	align-items: center;
	gap: 1rem;
	background: var(--color-bg-container);
	border: 1px solid var(--color-border-secondary);
	border-radius: var(--xun-radius, 8px);
	padding: 0.75rem 1rem;
	overflow: hidden;
}

/* 左侧标题按钮 */
.hui-sa-title-btn {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.5rem 1rem;
	background: var(--color-text);
	color: var(--color-bg-container);
	border-radius: var(--radius-full, 9999px);
	font-size: 0.8125rem;
	font-weight: 600;
	white-space: nowrap;
}

.hui-sa-icon {
	display: flex;
	align-items: center;
	justify-content: center;
}

.hui-sa-icon svg {
	animation: hui-sa-spin 3s linear infinite;
}

@keyframes hui-sa-spin {
	from {
		transform: rotate(0deg);
	}
	to {
		transform: rotate(360deg);
	}
}

/* 滚动区域 */
.hui-sa-scroll-wrapper {
	flex: 1;
	overflow: hidden;
	position: relative;
	min-width: 0;
}

.hui-sa-list {
	display: flex;
	gap: 1rem;
	overflow-x: auto;
	scroll-behavior: smooth;
	scrollbar-width: none;
	-ms-overflow-style: none;
	padding: 0.25rem 0;
}

.hui-sa-list::-webkit-scrollbar {
	display: none;
}

/* 动态项 */
.hui-sa-item {
	flex-shrink: 0;
	display: flex;
	align-items: center;
	gap: 0.625rem;
	min-width: max-content;
	padding-right: 1.5rem;
	border-right: 1px solid var(--color-border-secondary);
	margin-right: 0.5rem;
}

/* 最后一项不需要分割线 */
.hui-sa-item:last-child {
	border-right: none;
	padding-right: 0;
	margin-right: 0;
}

/* 头像 */
.hui-sa-avatar {
	flex-shrink: 0;
	width: 36px;
	height: 36px;
	border-radius: var(--radius-full, 9999px);
	overflow: hidden;
	border: 2px solid var(--color-border-secondary);
	transition: border-color 0.2s var(--ease-smooth);
	position: relative;
}

.hui-sa-avatar:hover {
	border-color: var(--xun-secondary, var(--color-secondary));
}

.hui-sa-avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* 已认证头像 - 允许图标溢出 */
.hui-sa-avatar--verified {
	overflow: visible;
}

.hui-sa-avatar--verified > img {
	border-radius: var(--radius-full, 9999px);
}

/* 认证图标 - 头像右下角 */
.hui-sa-verified-icon {
	position: absolute;
	right: -2px;
	bottom: -2px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 16px;
	height: 16px;
	background: var(--color-bg-container);
	border-radius: 50%;
	border: 1.5px solid var(--color-bg-container);
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
	z-index: 1;
	overflow: hidden;
}

.hui-sa-verified-icon img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

/* 内容区域 */
.hui-sa-content {
	display: flex;
	flex-direction: column;
	gap: 0.125rem;
	min-width: 0;
}

/* 用户信息行 */
.hui-sa-user {
	display: flex;
	align-items: center;
	gap: 0.375rem;
}

.hui-sa-name {
	font-size: 0.8125rem;
	font-weight: 600;
	color: var(--color-text);
	text-decoration: none;
	white-space: nowrap;
	transition: color 0.2s var(--ease-smooth);
}

.hui-sa-name:hover {
	color: var(--xun-secondary, var(--color-secondary));
}

/* 靓号图标 - 用户名后面，和会员徽章一样大 */
.hui-sa-fancy-id-icon {
	width: 18px;
	height: 18px;
	object-fit: contain;
	flex-shrink: 0;
	vertical-align: middle;
}

/* 徽章 */
.hui-sa-badge {
	display: inline-flex;
	align-items: center;
	padding: 0.0625rem 0.375rem;
	font-size: 0.625rem;
	font-weight: 500;
	color: #fff;
	border-radius: var(--radius-sm, 4px);
	white-space: nowrap;
}

.hui-sa-badge--vip {
	background: linear-gradient(135deg, #ff9500 0%, #ff5e3a 100%);
}

.hui-sa-badge--verified {
	background: #10b981;
}

/* 动态文本 */
.hui-sa-text {
	font-size: 0.75rem;
	color: var(--color-text-secondary);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 200px;
}

/* 时间 */
.hui-sa-time {
	flex-shrink: 0;
	font-size: 0.6875rem;
	color: var(--color-text-tertiary);
	white-space: nowrap;
}

/* 右侧导航按钮 */
.hui-sa-nav {
	flex-shrink: 0;
	display: flex;
	align-items: center;
	gap: 0.375rem;
}

.hui-sa-nav-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	background: var(--color-fill-secondary);
	border: none;
	border-radius: var(--radius-full, 9999px);
	color: var(--color-text-secondary);
	cursor: pointer;
	transition: all 0.2s var(--ease-smooth);
}

.hui-sa-nav-btn:hover {
	background: var(--xun-secondary, var(--color-secondary));
	color: #fff;
}

.hui-sa-nav-btn:active {
	transform: scale(0.95);
}

/* 响应式设计 */
@media (max-width: 768px) {
	.hui-site-activities {
		padding: 0.5rem 0;
	}
	
	.hui-sa-wrapper {
		padding: 0.5rem 0.75rem;
		gap: 0.75rem;
	}
	
	.hui-sa-title-btn {
		padding: 0.375rem 0.75rem;
		font-size: 0.75rem;
	}
	
	.hui-sa-avatar {
		width: 32px;
		height: 32px;
	}
	
	.hui-sa-verified-icon {
		width: 14px;
		height: 14px;
	}
	
	.hui-sa-fancy-id-icon {
		width: 16px;
		height: 16px;
	}
	
	.hui-sa-name {
		font-size: 0.75rem;
	}
	
	.hui-sa-text {
		font-size: 0.6875rem;
		max-width: 150px;
	}
	
	.hui-sa-time {
		font-size: 0.625rem;
	}
	
	.hui-sa-nav {
		display: none;
	}
	
	.hui-sa-list {
		gap: 0.75rem;
	}
	
	.hui-sa-item {
		padding-right: 1rem;
	}
}

@media (max-width: 480px) {
	.hui-sa-title-btn .hui-sa-title-text {
		display: none;
	}
	
	.hui-sa-title-btn {
		padding: 0.5rem;
	}
	
	.hui-sa-text {
		max-width: 120px;
	}
}

/* 深色模式适配 */
@media (prefers-color-scheme: dark) {
	:root:not(.light) .hui-sa-wrapper {
		background: var(--color-bg-container);
		border-color: var(--color-border-secondary);
	}
	
	:root:not(.light) .hui-sa-title-btn {
		background: var(--color-text);
		color: var(--color-bg-layout);
	}
}

.dark .hui-sa-wrapper {
	background: var(--color-bg-container);
	border-color: var(--color-border-secondary);
}

.dark .hui-sa-title-btn {
	background: var(--color-text);
	color: var(--color-bg-layout);
}

/* 移动端隐藏 */
@media (max-width: 767px) {
	.hui-site-activities.hui-sa-hide-mobile {
		display: none !important;
	}
}


/* ============================================================================
   首页幻灯片模块 - 中心轮播效果（全宽）
   中间显示当前图片，左右露出相邻图片的一部分
   ============================================================================ */

.hui-hero-slider {
	padding: 1.25rem 0 0.5rem;
	overflow: hidden;
	width: 100vw;
	margin-left: calc(-50vw + 50%);
	position: relative;
}

/* 视口容器 - 全宽 */
.hui-hs-viewport {
	position: relative;
	width: 100%;
	overflow: visible;
}

/* 轨道 - 包含所有幻灯片 */
.hui-hs-track {
	display: flex;
	gap: 12px;
	transition: transform 0.5s cubic-bezier(0.25, 0.1, 0.25, 1);
	will-change: transform;
	align-items: center;
}

/* 单个幻灯片 */
.hui-hs-slide {
	flex-shrink: 0;
	width: 50%;
	height: var(--hui-hs-height, 400px);
	border-radius: var(--xun-radius-lg, 12px);
	overflow: hidden;
	background: var(--color-fill-tertiary);
	transition: opacity 0.4s var(--ease-smooth), filter 0.4s var(--ease-smooth), box-shadow 0.4s var(--ease-smooth);
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
}

/* 非当前幻灯片 - 只变暗，不缩放 */
.hui-hero-slider .hui-hs-slide:not(.is-center) {
	opacity: 0.7;
	filter: brightness(0.85);
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.hui-hero-slider .hui-hs-slide.is-center {
	opacity: 1;
	filter: brightness(1);
	z-index: 2;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), 0 4px 16px rgba(0, 0, 0, 0.08);
}

.hui-hero-slider .hui-hs-slide:not(.is-center):hover {
	opacity: 0.85;
	filter: brightness(0.95);
}

.hui-hero-slider .hui-hs-slide.is-center:hover {
	opacity: 1;
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15), 0 6px 20px rgba(0, 0, 0, 0.1);
}

.hui-hs-link {
	display: block;
	width: 100%;
	height: 100%;
}

.hui-hs-slide img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* 左右箭头 */
.hui-hs-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 10;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	background: rgba(255, 255, 255, 0.95);
	border: none;
	border-radius: var(--radius-full, 9999px);
	color: var(--color-text);
	cursor: pointer;
	transition: all 0.3s var(--ease-smooth);
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

.hui-hs-arrow:hover {
	background: #fff;
	transform: translateY(-50%) scale(1.08);
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.hui-hs-arrow:active {
	transform: translateY(-50%) scale(0.98);
}

/* 箭头位置 - 在中间图片的左右边缘内侧 */
.hui-hs-arrow--prev {
	left: calc(25% + 1.5rem);
}

.hui-hs-arrow--next {
	right: calc(25% + 1.5rem);
}

/* 响应式设计 */
@media (max-width: 1200px) {
	.hui-hs-slide {
		width: 55%;
	}
	
	.hui-hs-arrow--prev {
		left: calc(22.5% + 1rem);
	}
	
	.hui-hs-arrow--next {
		right: calc(22.5% + 1rem);
	}
}

@media (max-width: 992px) {
	.hui-hs-slide {
		width: 60%;
	}
	
	.hui-hs-arrow {
		width: 44px;
		height: 44px;
	}
	
	.hui-hs-arrow--prev {
		left: calc(20% + 0.75rem);
	}
	
	.hui-hs-arrow--next {
		right: calc(20% + 0.75rem);
	}
}

@media (max-width: 768px) {
	.hui-hero-slider {
		padding: 0.75rem 0 0.375rem;
		width: 100%;
		margin-left: 0;
	}
	
	.hui-hs-viewport {
		overflow: hidden;
		padding: 0 1rem;
	}
	
	.hui-hs-track {
		gap: 0;
	}
	
	.hui-hs-slide {
		width: 100%;
		height: var(--hui-hs-height-mobile, 200px);
		border-radius: var(--xun-radius, 8px);
		box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1), 0 2px 8px rgba(0, 0, 0, 0.06);
	}
	
	/* 移动端隐藏非当前幻灯片 */
	.hui-hero-slider .hui-hs-slide:not(.is-center) {
		opacity: 0;
		position: absolute;
		pointer-events: none;
	}
	
	.hui-hero-slider .hui-hs-slide.is-center {
		opacity: 1;
		position: relative;
		pointer-events: auto;
		box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1), 0 2px 8px rgba(0, 0, 0, 0.06);
	}
	
	.hui-hs-arrow {
		width: 36px;
		height: 36px;
	}
	
	.hui-hs-arrow svg {
		width: 18px;
		height: 18px;
	}
	
	.hui-hs-arrow--prev {
		left: 1.5rem;
	}
	
	.hui-hs-arrow--next {
		right: 1.5rem;
	}
}

/* 深色模式适配 */
@media (prefers-color-scheme: dark) {
	:root:not(.light) .hui-hs-slide {
		background: var(--color-fill-secondary);
	}
	
	:root:not(.light) .hui-hs-arrow {
		background: rgba(30, 30, 30, 0.95);
		color: #fff;
	}
	
	:root:not(.light) .hui-hs-arrow:hover {
		background: rgba(50, 50, 50, 1);
	}
}

.dark .hui-hs-slide {
	background: var(--color-fill-secondary);
}

.dark .hui-hs-arrow {
	background: rgba(30, 30, 30, 0.95);
	color: #fff;
}

.dark .hui-hs-arrow:hover {
	background: rgba(50, 50, 50, 1);
}

/* 移动端隐藏 */
@media (max-width: 767px) {
	.hui-hero-slider.hui-hs-hide-mobile {
		display: none !important;
	}
}


/* ============================================================================
   五图模块（五图横排）
   ============================================================================ */

.hui-feature-entries {
	padding: 0.75rem 0;
}

.hui-fe-grid {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 12px;
}

.hui-fe-item {
	position: relative;
	overflow: hidden;
	border-radius: var(--xun-radius, 8px);
	background: var(--color-fill-tertiary);
	height: var(--hui-fe-height, 160px);
	transition: transform 0.3s var(--ease-smooth), box-shadow 0.3s var(--ease-smooth);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.hui-fe-item:hover {
	transform: translateY(-4px);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.hui-fe-link {
	display: block;
	width: 100%;
	height: 100%;
}

.hui-fe-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.4s var(--ease-smooth);
}

.hui-fe-item:hover img {
	transform: scale(1.05);
}

/* 响应式设计 */
@media (max-width: 1200px) {
	.hui-fe-grid {
		gap: 10px;
	}
}

@media (max-width: 992px) {
	.hui-fe-grid {
		grid-template-columns: repeat(5, 1fr);
		gap: 8px;
	}
	
	.hui-fe-item {
		height: calc(var(--hui-fe-height, 160px) * 0.85);
	}
}

@media (max-width: 768px) {
	.hui-feature-entries {
		padding: 0.5rem 0;
	}
	
	.hui-fe-grid {
		display: flex;
		gap: 8px;
		overflow-x: auto;
		scroll-behavior: smooth;
		scrollbar-width: none;
		-ms-overflow-style: none;
		padding: 0.25rem 0;
		-webkit-overflow-scrolling: touch;
	}
	
	.hui-fe-grid::-webkit-scrollbar {
		display: none;
	}
	
	.hui-fe-item {
		flex: 0 0 auto;
		width: 45%;
		min-width: 140px;
		height: calc(var(--hui-fe-height, 160px) * 0.7);
	}
	
	.hui-fe-item:hover {
		transform: none;
	}
}

@media (max-width: 480px) {
	.hui-fe-item {
		width: 50%;
		min-width: 120px;
		height: calc(var(--hui-fe-height, 160px) * 0.6);
	}
}

/* 深色模式适配 */
@media (prefers-color-scheme: dark) {
	:root:not(.light) .hui-fe-item {
		background: var(--color-fill-secondary);
	}
}

.dark .hui-fe-item {
	background: var(--color-fill-secondary);
}

/* 移动端隐藏 */
@media (max-width: 767px) {
	.hui-feature-entries.hui-fe-hide-mobile {
		display: none !important;
	}
}
/* 移动端隐藏 */
@media (max-width: 767px) {
	.hui-classic-slider.hui-cs-hide-mobile {
		display: none !important;
	}
}
