/* 
	Theme Name: Modown Child
	Theme URL: http://www.mobantu.com/7191.html
	Description: WordPress资源下载主题 子主题 你可以自由美化、二开
	Author: 模板兔
	Author URI: http://www.mobantu.com
	Template: modown
	Version: 1.0
*/

/* Post lists (home / category / archive): 2 posts per row */
.home #posts.grids .grid,
.archive #posts.grids .grid{
	width: calc(50% - 20px);
}

/* Keep thumbnail in 16:9 ratio after the card gets wider */
.home #posts.grids .grid .img,
.archive #posts.grids .grid .img{
	height: auto;
	aspect-ratio: 16 / 9;
}

/* Thumbnail spacing from card edges, aligned with .con padding */
.grids .grid .img{
	margin: 15px 15px 0;
	border-radius: var(--theme-radius);
}

.grids .grid .img .thumb{
	border-radius: var(--theme-radius);
}

@media (max-width: 480px){
	.grids .grid .img{
		margin: 10px 10px 0;
	}
}

/* Mobile (<=768px): one post per row, desktop keeps the two-column layout above */
@media (max-width: 768px){
	.home #posts.grids .grid,
	.archive #posts.grids .grid{
		width: calc(100% - 20px);
	}
}

@media (max-width: 480px){
	.home #posts.grids .grid,
	.archive #posts.grids .grid{
		width: calc(100% - 10px);
	}
}

/* Home / category cards: keep the post title on a single line (overrides the theme option adding 2 lines) */
.home #posts.grids .grid h3 a,
.archive #posts.grids .grid h3 a{
	display: block;
	height: 20px;
	line-height: 20px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	-webkit-line-clamp: 1;
}

/* ===== Post list card meta: category / tag / price pills ===== */
.grids .grid .grid-meta{
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	height: auto;
	line-height: 1.5;
	margin-top: 10px;
	padding-top: 0;
	font-size: 12px;
	color: #666;
	overflow: visible;
}

.grids .grid .grid-meta > span,
.grids .grid .grid-meta > .tag{
	display: inline-flex;
	align-items: center;
	gap: 4px;
	margin: 0;
	padding: 3px 10px;
	height: auto;
	border-radius: 999px;
	background: #f5f6f8;
	color: #666;
	font-size: 12px;
	font-weight: normal;
	line-height: 1.5;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.grids .grid .grid-meta .icon{
	font-size: 12px;
	line-height: 1;
	top: 0;
}

/* Category: blue pill */
.grids .grid .grid-meta .mcat{
	background: #eaf3ff;
	color: #1a6fd8;
}

.grids .grid .grid-meta .mcat:hover{
	background: #dcebff;
}

.grids .grid .grid-meta .mcat a,
.grids .grid .grid-meta .mcat a:hover{
	color: inherit;
}

/* Tags: green pill, single line with ellipsis */
.grids .grid .grid-meta > .tag{
	max-width: 100%;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	background: #eef8f0;
	color: #2f8f46;
	text-align: left;
}

.grids .grid .grid-meta > .tag:empty{
	display: none;
}

.grids .grid .grid-meta > .tag:hover{
	background: #e2f3e6;
}

.grids .grid .grid-meta > .tag a{
	display: inline;
	margin: 0;
	padding: 0;
	color: inherit;
	font-size: inherit;
	line-height: inherit;
}

.grids .grid .grid-meta > .tag a::before{
	display: none;
}

.grids .grid .grid-meta > .tag a + a::before{
	content: ", ";
	display: inline;
	position: static;
	width: auto;
	height: auto;
	border: 0;
	border-radius: 0;
	background: none;
}

/* Price: orange pill aligned right */
.grids .grid .grid-meta .price{
	float: none;
	margin-left: auto;
	padding: 3px 10px;
	line-height: 1.4;
	white-space: nowrap;
	background: #fff3ef;
	color: #ff4d2e;
	font-size: 15px;
	font-weight: 700;
}

.grids .grid .grid-meta .price .fee{
	background: none;
	padding: 0;
	color: inherit;
	font-size: inherit;
	border-radius: 0;
}

/* Remove the black price background injected by theme option post_price_color */
body .grids .grid .grid-meta .price .fee{
	background: none;
}

.grids .grid .grid-meta .price .fee .icon{
	display: none;
}

.grids .grid .grid-meta .price .fee::before{
	content: "\00a5";
	margin-right: 2px;
	font-size: 11px;
	font-weight: 600;
}

.grids .grid .grid-meta .price .fee.vip-tag,
.grids .grid .grid-meta .price .fee.free-tag{
	padding: 0 6px;
	border-radius: 999px;
	color: #fff;
}

.grids .grid .grid-meta .price .fee.vip-tag::before,
.grids .grid .grid-meta .price .fee.free-tag::before{
	content: none;
}

.grids .grid .grid-meta .erphpdown-tuan-process{
	flex: 1 1 100%;
}

@media (max-width: 768px){
	.grids .grid .grid-meta .price{
		font-size: 13px;
	}
}

@media (max-width: 480px){
	.grids .grid .grid-meta{
		gap: 6px;
		margin-top: 8px;
		padding-top: 0;
	}

	.grids .grid .grid-meta > span,
	.grids .grid .grid-meta > .tag{
		padding: 2px 8px;
	}
}

body.night .grids .grid .grid-meta > span,
body.night .grids .grid .grid-meta > .tag{
	background: #333;
}

/* 会员中心充值页：普通用户隐藏“当前权限”卡片后，剩余两张统计卡均分一行 */
@media (min-width: 769px){
	.charge.charge-no-perm .charge-header .item{
		width: 49%;
	}
}
