/**
 * 今日文章页面样式（page-today.php）
 *
 * 整页收成一张居中的「海报卡片」：大号日期头 + 紧凑文字列表 + 底部品牌栏。
 * 无封面图；配色全部复用主题变量（--pcgh-*），自动跟随主题主色与亮/暗色。
 */

/* ---------------- 海报卡片外壳 ---------------- */
.pcgh-today {
	width: calc(100% - 24px);
	max-width: 1200px;
	margin: 28px auto;
	background: var(--pcgh-surface);
	border: 1px solid var(--pcgh-border);
	border-radius: 20px;
	overflow: hidden;
	box-shadow: 0 20px 48px -26px rgba(0, 0, 0, .5);
	color: var(--pcgh-text);
}

/* ---------------- 顶部主视觉（大号日期） ---------------- */
.pcgh-today-hero {
	position: relative;
	overflow: hidden;
	background: linear-gradient(135deg, var(--pcgh-primary), var(--pcgh-primary-2, var(--pcgh-primary)));
	padding: 30px 34px 28px;
}

.pcgh-today-hero::before,
.pcgh-today-hero::after {
	content: "";
	position: absolute;
	border-radius: 50%;
	pointer-events: none;
}

.pcgh-today-hero::before {
	width: 300px;
	height: 300px;
	bottom: -180px;
	left: -90px;
	background: radial-gradient(circle, rgba(255, 255, 255, .16), rgba(255, 255, 255, 0) 70%);
}

.pcgh-today-hero::after {
	width: 260px;
	height: 260px;
	top: -140px;
	right: -70px;
	background: radial-gradient(circle, rgba(255, 255, 255, .22), rgba(255, 255, 255, 0) 70%);
}

.pcgh-today-hero__inner {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	gap: 22px;
}

.pcgh-today-hero__day {
	flex: 0 0 auto;
	display: flex;
	align-items: flex-start;
	line-height: 1;
	color: #fff;
}

.pcgh-today-hero__day-num {
	font-size: 68px;
	font-weight: 800;
	line-height: .9;
	letter-spacing: -2px;
}

.pcgh-today-hero__day-unit {
	margin: 6px 0 0 3px;
	font-size: 18px;
	font-weight: 600;
	opacity: .88;
}

.pcgh-today-hero__text {
	flex: 1 1 auto;
	min-width: 0;
}

.pcgh-today-hero__badge {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 3px 11px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 600;
	color: #fff;
	background: rgba(255, 255, 255, .18);
	border: 1px solid rgba(255, 255, 255, .32);
}

.pcgh-today-hero__pulse {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #fff;
	animation: pcgh-today-pulse 1.8s infinite;
}

@keyframes pcgh-today-pulse {
	0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, .7); }
	70% { box-shadow: 0 0 0 8px rgba(255, 255, 255, 0); }
	100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

.pcgh-today-hero__title {
	margin: 8px 0 4px;
	font-size: 21px;
	line-height: 1.35;
	font-weight: 700;
	color: #fff;
}

.pcgh-today-hero__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin: 0;
	font-size: 13px;
	color: rgba(255, 255, 255, .9);
}

.pcgh-today-hero__meta strong {
	font-weight: 700;
	color: #fff;
}

.pcgh-today-hero__sep {
	width: 3px;
	height: 3px;
	border-radius: 50%;
	background: rgba(255, 255, 255, .55);
}

.pcgh-today-hero__intro {
	max-width: 620px;
	margin: 10px 0 0;
	font-size: 13px;
	line-height: 1.6;
	color: rgba(255, 255, 255, .88);
}

.pcgh-today-hero__tags {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-top: 10px;
}

.pcgh-today-hero__tag {
	padding: 0 10px;
	line-height: 21px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 600;
	color: #fff;
	background: rgba(255, 255, 255, .16);
	border: 1px solid rgba(255, 255, 255, .3);
}

.pcgh-today-hero__link {
	padding-bottom: 1px;
	font-size: 12px;
	font-weight: 600;
	color: #fff;
	text-decoration: none;
	opacity: .9;
	border-bottom: 1px solid rgba(255, 255, 255, .45);
}

.pcgh-today-hero__link:hover {
	opacity: 1;
}

/* ---------------- 文章列表 ---------------- */
.pcgh-today-body {
	padding: 16px 22px 18px;
}

.pcgh-today-list {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.pcgh-today-item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 9px 14px;
	background: var(--pcgh-surface);
	border: 1px solid var(--pcgh-border);
	border-radius: var(--pcgh-radius, 10px);
	color: inherit;
	text-decoration: none;
	transition: border-color .18s ease, background .18s ease, transform .18s ease;
}

.pcgh-today-item:hover {
	border-color: var(--pcgh-primary);
	background: var(--pcgh-surface-2, var(--pcgh-surface));
	transform: translateX(2px);
}

.pcgh-today-item__index {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	border-radius: 7px;
	font-size: 12px;
	font-weight: 700;
	color: var(--pcgh-primary);
	background: rgba(var(--pcgh-primary-rgb, 59, 130, 246), .12);
}

.pcgh-today-item:hover .pcgh-today-item__index {
	color: #fff;
	background: var(--pcgh-primary);
}

.pcgh-today-item__main {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	align-items: center;
	gap: 8px;
}

.pcgh-today-item__title {
	flex: 1 1 auto;
	min-width: 0;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.4;
	color: var(--pcgh-text);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.pcgh-today-item:hover .pcgh-today-item__title {
	color: var(--pcgh-primary);
}

.pcgh-today-item__cat {
	flex: 0 0 auto;
	padding: 0 8px;
	border-radius: 999px;
	font-size: 11px;
	line-height: 18px;
	color: var(--pcgh-text-3);
	background: var(--pcgh-surface-2, transparent);
	border: 1px solid var(--pcgh-border);
}

.pcgh-today-item__meta {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: 12px;
	color: var(--pcgh-text-3);
}

.pcgh-today-item__meta-item {
	display: inline-flex;
	align-items: center;
	gap: 4px;
}

.pcgh-today-item__icon {
	width: 14px;
	height: 14px;
	opacity: .8;
}

/* ---------------- 空状态 ---------------- */
.pcgh-today-empty {
	max-width: 340px;
	margin: 12px auto;
	padding: 36px 24px;
	text-align: center;
	background: var(--pcgh-surface-2, var(--pcgh-surface));
	border-radius: var(--pcgh-radius-lg, 14px);
}

.pcgh-today-empty__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	margin-bottom: 14px;
	border-radius: 50%;
	color: var(--pcgh-primary);
	background: rgba(var(--pcgh-primary-rgb, 59, 130, 246), .12);
}

.pcgh-today-empty__icon svg {
	width: 26px;
	height: 26px;
}

.pcgh-today-empty__title {
	margin: 0 0 4px;
	font-size: 16px;
	font-weight: 700;
	color: var(--pcgh-text);
}

.pcgh-today-empty__desc {
	margin: 0;
	font-size: 13px;
	color: var(--pcgh-text-3);
}

/* ---------------- 分页 ---------------- */
.pcgh-today-pagination {
	margin-top: 22px;
	display: flex;
	justify-content: center;
}

.pcgh-today-pagination ul {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.pcgh-today-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 34px;
	height: 34px;
	padding: 0 10px;
	border-radius: var(--pcgh-radius, 10px);
	font-size: 13px;
	font-weight: 600;
	color: var(--pcgh-text-2);
	background: var(--pcgh-surface);
	border: 1px solid var(--pcgh-border);
	text-decoration: none;
	transition: all .18s ease;
}

.pcgh-today-pagination .page-numbers:hover {
	color: var(--pcgh-primary);
	border-color: var(--pcgh-primary);
}

.pcgh-today-pagination .page-numbers.current {
	color: #fff;
	background: var(--pcgh-primary);
	border-color: var(--pcgh-primary);
}

/* ---------------- 底部品牌栏 ---------------- */
.pcgh-today-foot {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	padding: 13px 20px;
	background: var(--pcgh-surface-2, var(--pcgh-surface));
	border-top: 1px solid var(--pcgh-border);
	font-size: 12px;
	color: var(--pcgh-text-3);
}

.pcgh-today-foot__brand {
	font-weight: 600;
	color: var(--pcgh-text-2, var(--pcgh-text));
}

.pcgh-today-foot__dot {
	width: 3px;
	height: 3px;
	border-radius: 50%;
	background: var(--pcgh-text-3);
	opacity: .7;
}

.pcgh-today-foot__count {
	margin-left: auto;
}

/* ---------------- 响应式 ---------------- */

/* 桌面端：双列排布，20 条 = 10 行，配合紧凑尺寸可一屏放下 */
@media (min-width: 900px) {
	.pcgh-today-list {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 6px;
	}
}

@media (max-width: 640px) {
	.pcgh-today {
		width: calc(100% - 16px);
		margin: 12px auto;
		border-radius: 16px;
	}

	.pcgh-today-hero {
		padding: 22px 18px 20px;
	}

	.pcgh-today-hero__inner {
		gap: 14px;
	}

	.pcgh-today-hero__day-num {
		font-size: 48px;
	}

	.pcgh-today-hero__day-unit {
		font-size: 15px;
	}

	.pcgh-today-hero__title {
		font-size: 18px;
	}

	.pcgh-today-hero__intro {
		margin-top: 8px;
		font-size: 12px;
	}

	.pcgh-today-hero__tags {
		margin-top: 8px;
		gap: 6px;
	}

	.pcgh-today-body {
		padding: 12px 14px 14px;
	}

	.pcgh-today-item {
		gap: 10px;
		padding: 9px 12px;
	}

	.pcgh-today-item__title {
		font-size: 14px;
	}

	.pcgh-today-item__cat {
		display: none;
	}

	.pcgh-today-foot {
		padding: 12px 14px;
	}

	.pcgh-today-foot__count {
		margin-left: 0;
	}
}
