/* =========================================================================
   ArtGamer 文章列表页（forumdisplay，除原创作品 fid=56 外的所有版块）
   行卡片布局：左缩略图 + 右标题/摘要/作者/统计，传统页码分页。
   仅在 forumdisplay && fid!=56 时加载（见 header_common.php）。
   版本号=filemtime，改文件即破缓存。
   tab / 翻页器视觉与 artgamer_work_list.css 同款，类名前缀 .artg-al- 隔离。
   ========================================================================= */

body#nv_forum .artg-articlelist {
	color: #eef3ff;
}

body#nv_forum.pg_forumdisplay .main-wrapper.wp {
	margin-bottom: 0;
	min-height: 0;
}

.artg-articlelist {
	position: relative;
	width: 1480px;
	max-width: calc(100vw - 180px);
	margin: 25px auto 0;
	padding: 0;
	box-sizing: border-box;
}

/* 核心 CSS 会给 flex 子项注入 margin:auto，统一压掉（含列表 li 本身，否则整行收缩居中） */
.artg-articlelist .artg-al-types > *,
.artg-articlelist .artg-al-toolbar > *,
.artg-articlelist .artg-al-sorts > *,
.artg-articlelist .artg-al-list > *,
.artg-articlelist .artg-al-item > *,
.artg-articlelist .artg-al-main > *,
.artg-articlelist .artg-al-titleline > *,
.artg-articlelist .artg-al-meta > *,
.artg-articlelist .artg-al-user > *,
.artg-articlelist .artg-al-stats-r > * {
	margin: 0 !important;
}

.artg-articlelist .artg-al-main > .artg-al-excerpt {
	margin: 10px 0 0 !important;
}

.artg-al-list > .artg-al-item {
	width: 100%;
}

/* =========================== 顶部类型 tab =========================== */
.artg-al-types {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-start;
	gap: 56px;
	min-height: 60px;
	margin-top: 4px;
	padding: 0;
	border-bottom: 1px solid rgba(113, 125, 172, 0.12);
}

.artg-al-types .artg-al-tab {
	position: relative;
	height: 60px;
	margin: 0 !important;
	padding: 0 0 2px;
	color: rgba(239, 243, 255, 0.66);
	font-size: 16px;
	line-height: 60px;
	white-space: nowrap;
	cursor: pointer;
	transition: color .2s, text-shadow .2s;
}

.artg-al-types .artg-al-tab:before {
	content: "";
	position: absolute;
	left: 50%;
	bottom: -8px;
	width: 190px;
	height: 78px;
	background: radial-gradient(ellipse at center bottom, rgba(207, 52, 255, 0.42) 0, rgba(151, 43, 255, 0.24) 30%, rgba(87, 42, 168, 0.11) 54%, transparent 76%);
	filter: blur(10px);
	opacity: 0;
	transform: translateX(-50%);
	pointer-events: none;
	transition: opacity .2s;
}

.artg-al-types .artg-al-tab:after {
	content: "";
	position: absolute;
	left: 50%;
	bottom: 0;
	width: 70px;
	height: 4px;
	border-radius: 999px;
	background: linear-gradient(90deg, #ff2df7, #8e44ff);
	box-shadow: 0 0 10px rgba(255, 66, 255, 0.96), 0 0 28px rgba(139, 55, 255, 0.88);
	transform: translateX(-50%) scaleX(0);
	transform-origin: center;
	transition: transform .2s;
}

.artg-al-types .artg-al-tab:hover,
.artg-al-types .artg-al-tab.is-active {
	color: #fff;
	text-shadow: 0 0 8px rgba(255, 255, 255, 0.55), 0 0 18px rgba(198, 55, 255, 0.9);
}

.artg-al-types .artg-al-tab:hover:before,
.artg-al-types .artg-al-tab.is-active:before {
	opacity: 1;
}

.artg-al-types .artg-al-tab.is-active:after {
	transform: translateX(-50%) scaleX(1);
}

.artg-al-types .artg-al-tab img {
	vertical-align: middle;
	margin-right: 4px;
}

/* =========================== 统计 + 排序工具条 =========================== */
.artg-al-toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 56px;
	margin-bottom: 6px;
}

.artg-al-stats {
	color: rgba(239, 243, 255, 0.5);
	font-size: 13px;
}

.artg-al-stats em {
	margin: 0 2px;
	color: #4cc9ff;
	font-style: normal;
	font-weight: 600;
}

.artg-al-sorts {
	display: flex;
	align-items: center;
	gap: 26px;
}

.artg-al-sorts .artg-al-sort {
	height: 32px;
	padding: 0 16px;
	border: 1px solid transparent;
	border-radius: 999px;
	color: rgba(239, 243, 255, 0.6);
	font-size: 14px;
	line-height: 32px;
	white-space: nowrap;
	cursor: pointer;
	transition: color .2s, border-color .2s, box-shadow .2s;
}

.artg-al-sorts .artg-al-sort:hover {
	color: #fff;
}

.artg-al-sorts .artg-al-sort.is-active {
	border-color: rgba(191, 64, 255, 0.75);
	color: #fff;
	box-shadow: 0 0 12px rgba(176, 54, 255, 0.35), inset 0 0 10px rgba(176, 54, 255, 0.12);
}

/* =========================== 行卡片列表 =========================== */
.artg-al-list {
	display: flex;
	flex-direction: column;
	gap: 18px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.artg-al-item {
	position: relative;
	display: flex;
	gap: 26px;
	padding: 18px;
	border: 1px solid rgba(122, 134, 179, 0.1);
	border-radius: 14px;
	background: rgba(255, 255, 255, 0.028);
	box-sizing: border-box;
	transition: border-color .2s, background .2s, box-shadow .2s;
}

.artg-al-item:hover {
	border-color: rgba(176, 54, 255, 0.4);
	background: rgba(255, 255, 255, 0.045);
	box-shadow: 0 6px 28px rgba(0, 0, 0, 0.3), 0 0 18px rgba(151, 43, 255, 0.14);
}

/* ---- 左侧缩略图 ---- */
.artg-al-cover {
	position: relative;
	flex: 0 0 236px;
	width: 236px;
	height: 152px;
	border-radius: 10px;
	overflow: hidden;
	background: #11131d;
}

.artg-al-cover img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .25s;
}

.artg-al-item:hover .artg-al-cover img {
	transform: scale(1.04);
}

/* 无图占位：暗色渐变 + 站点 logo 居中 */
.artg-al-noimg {
	display: block;
	width: 100%;
	height: 100%;
	background:
		url("../market/common/images/white_logo.png") no-repeat center / 45% auto,
		linear-gradient(135deg, #1a1530 0%, #141a2e 55%, #101522 100%);
	opacity: 0.85;
}

/* ---- 右侧主体 ---- */
.artg-al-main {
	display: flex;
	flex-direction: column;
	flex: 1;
	min-width: 0;
	padding: 4px 6px 2px 0;
}

.artg-al-titleline {
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
}

.artg-al-badge {
	flex-shrink: 0;
	padding: 2px 9px;
	border-radius: 4px;
	font-size: 12px;
	line-height: 18px;
	white-space: nowrap;
}

.artg-al-badge-top {
	border: 1px solid rgba(45, 224, 200, 0.45);
	background: rgba(45, 224, 200, 0.1);
	color: #2de0c8;
}

.artg-al-badge-digest {
	border: 1px solid rgba(196, 107, 255, 0.45);
	background: rgba(160, 70, 255, 0.12);
	color: #c46bff;
}

.artg-al-title {
	overflow: hidden;
	color: #fff;
	font-size: 17px;
	font-weight: 700;
	line-height: 26px;
	white-space: nowrap;
	text-overflow: ellipsis;
	transition: color .2s, text-shadow .2s;
}

.artg-al-title:hover {
	color: #fff;
	text-shadow: 0 0 14px rgba(198, 55, 255, 0.9);
}

.artg-al-title img {
	vertical-align: middle;
	margin-left: 4px;
}

.artg-al-type {
	flex-shrink: 0;
	padding: 2px 9px;
	border-radius: 4px;
	background: rgba(122, 134, 179, 0.16);
	color: rgba(239, 243, 255, 0.6);
	font-size: 12px;
	line-height: 18px;
	white-space: nowrap;
	transition: color .2s, background .2s;
}

.artg-al-type:hover {
	background: rgba(151, 43, 255, 0.25);
	color: #fff;
}

.artg-al-excerpt {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	margin: 10px 0 0;
	overflow: hidden;
	color: rgba(239, 243, 255, 0.55);
	font-size: 14px;
	line-height: 23px;
	word-break: break-all;
}

/* ---- 底部元信息 ---- */
.artg-articlelist .artg-al-main > .artg-al-meta {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: auto 0 0 !important;
	padding-top: 12px;
	width: 100%;
	box-sizing: border-box;
}

.artg-al-user {
	display: flex;
	align-items: center;
	gap: 8px;
	min-width: 0;
}

.artg-al-avatar {
	width: 26px;
	height: 26px;
	border-radius: 50%;
	object-fit: cover;
	background: #1a1d2c;
}

.artg-al-author {
	max-width: 160px;
	overflow: hidden;
	color: rgba(239, 243, 255, 0.62);
	font-size: 13px;
	white-space: nowrap;
	text-overflow: ellipsis;
	transition: color .2s;
}

.artg-al-user:hover .artg-al-author {
	color: #fff;
}

.artg-al-dot,
.artg-al-date {
	color: rgba(239, 243, 255, 0.4);
	font-size: 13px;
	white-space: nowrap;
}

.artg-articlelist .artg-al-meta > .artg-al-stats-r {
	display: flex;
	align-items: center;
	gap: 30px;
	margin-left: auto !important;
	padding-right: 8px;
}

.artg-al-stat {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: rgba(239, 243, 255, 0.5);
	font-size: 13px;
	white-space: nowrap;
}

.artg-al-stat svg {
	width: 16px;
	height: 16px;
	opacity: 0.8;
}

.artg-al-stat-like {
	color: rgba(239, 243, 255, 0.5);
}

/* ---- 版主选择框 ---- */
.artg-al-mod {
	position: absolute;
	top: 10px;
	right: 12px;
	z-index: 2;
}

/* =========================== 翻页器（$multipage 输出 .pg 结构） =========================== */
.artg-al-pager {
	position: relative;
	z-index: 2;
	min-height: 36px;
	margin: 36px 0 40px;
	text-align: center;
}

.artg-al-pager .pg,
.artg-al-pager .pgs {
	display: inline-block;
}

.artg-al-pager a,
.artg-al-pager strong,
.artg-al-pager .pg label {
	display: inline-block;
	min-width: 20px;
	height: 34px;
	margin: 0 3px;
	padding: 0 12px;
	border: 1px solid rgba(118, 132, 174, 0.3);
	border-radius: 6px;
	background: rgba(11, 17, 31, 0.7);
	color: rgba(224, 230, 248, 0.8);
	font-size: 14px;
	line-height: 34px;
	text-align: center;
}

.artg-al-pager a:hover {
	border-color: rgba(191, 64, 255, 0.8);
	color: #fff;
}

.artg-al-pager strong,
.artg-al-pager .pg .current {
	border-color: rgba(191, 64, 255, 0.9);
	background: linear-gradient(90deg, rgba(255, 45, 247, 0.22), rgba(142, 68, 255, 0.22));
	color: #fff;
}

.artg-al-pager .pg em {
	font-style: normal;
}

/* =========================== 空列表 =========================== */
.artg-al-empty {
	padding: 120px 0 140px;
	color: rgba(239, 243, 255, 0.45);
	font-size: 15px;
	text-align: center;
}

/* =========================== 窄屏适配 =========================== */
@media (max-width: 1200px) {
	.artg-al-cover {
		width: 200px;
		height: 130px;
	}

	.artg-al-stats-r {
		gap: 18px;
	}
}
