/* 標籤聚合頁（如 #案例解析） */
.tag-list-page {
	--tag-accent: #c8a063;
	--tag-accent-dark: #a8864f;
	--tag-ink: #1a1a1a;
	--tag-muted: #6b6b6b;
	--tag-line: #e0dbd2;
	--tag-surface: #f5f3ef;
	--tag-surface-body: #faf8f5;
	--tag-chip-bg: #ebe7df;
	--tag-bg: #eceae5;
	--tag-radius: 0;
	--tag-shadow: 0 6px 20px rgba(58, 48, 36, 0.07);
	--tag-shadow-hover: 0 12px 32px rgba(58, 48, 36, 0.11);
}

.tag-list-page {
	background-color: var(--tag-bg);
}

/* 固定 header 下方留白（與 hochuspace_main.css header 高度對齊） */
.tag-list-page {
	--tag-header-height: 90px;
	--tag-header-gap: 32px;
}

@media (max-width: 1469px) {
	.tag-list-page {
		--tag-header-height: 110px;
	}
}

@media (max-width: 1199px) {
	.tag-list-page {
		--tag-header-height: 80px;
	}
}

@media (max-width: 767px) {
	.tag-list-page {
		--tag-header-height: 70px;
	}
}

.tag-list-page .portfolio-wrap.tag-list-wrap {
	float: none;
	width: 100%;
	margin: 0;
	padding: calc(var(--tag-header-height) + var(--tag-header-gap)) 0 80px;
	box-sizing: border-box;
}

.tag-list-page .tag-list-wrap .portfolio-container.post-container {
	width: 100% !important;
	max-width: 1200px;
	margin-top: 0 !important;
	margin-left: auto !important;
	margin-right: auto !important;
	margin-bottom: 0 !important;
	padding-left: 15px;
	padding-right: 15px;
	box-sizing: border-box;
}

.tag-list-page .tag-list-header {
	margin-bottom: 36px;
	text-align: center;
}

.tag-list-page .tag-list-header h1 {
	margin: 0 0 8px;
	font-size: 32px;
	font-weight: 700;
	color: var(--tag-ink);
}

.tag-list-page .tag-list-header p {
	margin: 0;
	font-size: 15px;
	color: var(--tag-muted);
}

.tag-list-page .tag-list-section {
	margin-bottom: 48px;
}

.tag-list-page .tag-list-section:last-child {
	margin-bottom: 0;
}

.tag-list-page .tag-list-section-title {
	margin: 0 0 24px;
	padding-bottom: 10px;
	font-size: 20px;
	font-weight: 700;
	color: var(--tag-ink);
	border-bottom: 2px solid var(--tag-accent);
}

.tag-list-page .tag-grid {
	display: flex;
	flex-wrap: wrap;
	margin: 0 -12px;
}

.tag-list-page .tag-grid-col {
	box-sizing: border-box;
	padding: 0 12px 28px;
	flex: 0 0 100%;
	max-width: 100%;
}

@media (min-width: 576px) {
	.tag-list-page .tag-grid-col {
		flex: 0 0 50%;
		max-width: 50%;
	}
}

@media (min-width: 992px) {
	.tag-list-page .tag-grid-col {
		flex: 0 0 33.333333%;
		max-width: 33.333333%;
	}
}

@media (min-width: 1281px) {
	.tag-list-page .tag-grid-col {
		flex: 0 0 25%;
		max-width: 25%;
	}
}

.tag-list-page .tag-card {
	display: flex;
	flex-direction: column;
	height: 100%;
	background: var(--tag-surface);
	border: 1px solid var(--tag-line);
	border-radius: var(--tag-radius);
	overflow: hidden;
	box-shadow: var(--tag-shadow);
	transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
		box-shadow 0.35s cubic-bezier(0.4, 0, 0.2, 1),
		border-color 0.35s ease;
}

.tag-list-page .tag-card:hover {
	transform: translateY(-6px);
	border-color: rgba(200, 160, 99, 0.45);
	box-shadow: var(--tag-shadow-hover);
}

.tag-list-page .tag-card__media {
	display: block;
	position: relative;
	aspect-ratio: 5 / 3;
	overflow: hidden;
	background: #ddd8d0;
}

.tag-list-page .tag-card__media::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, transparent 50%, rgba(26, 26, 26, 0.2) 100%);
	opacity: 0;
	transition: opacity 0.35s ease;
	pointer-events: none;
}

.tag-list-page .tag-card:hover .tag-card__media::after {
	opacity: 1;
}

.tag-list-page .tag-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}

.tag-list-page .tag-card:hover .tag-card__media img {
	transform: scale(1.06);
}

.tag-list-page .tag-card__placeholder {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #b5aea2;
	background: linear-gradient(135deg, #f5f3ef 0%, #e6e2da 100%);
}

.tag-list-page .tag-card__placeholder svg {
	width: 28%;
	max-width: 56px;
	height: auto;
}

.tag-list-page .tag-card--video .tag-card__media {
	background: #1a1a1a;
}

.tag-list-page .tag-card__play {
	position: absolute;
	left: 50%;
	top: 50%;
	z-index: 1;
	width: 52px;
	height: 52px;
	margin: -26px 0 0 -26px;
	background: rgba(255, 255, 255, 0.92);
	pointer-events: none;
	transition: transform 0.3s ease, background-color 0.3s ease;
}

.tag-list-page .tag-card__play::before {
	content: "";
	position: absolute;
	left: 50%;
	top: 50%;
	margin: -10px 0 0 -5px;
	border-style: solid;
	border-width: 10px 0 10px 16px;
	border-color: transparent transparent transparent var(--tag-ink);
}

.tag-list-page .tag-card--video:hover .tag-card__play {
	transform: scale(1.08);
	background: var(--tag-accent);
}

.tag-list-page .tag-card--video:hover .tag-card__play::before {
	border-left-color: #fff;
}

.tag-list-page .tag-card__body {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	padding: 18px 20px 20px;
	letter-spacing: 0;
	background: var(--tag-surface-body);
}

.tag-list-page .tag-card__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 10px;
	margin: 0 0 10px;
}

.tag-list-page .tag-card__date,
.tag-list-page .tag-card__type {
	display: inline-block;
	margin: 0;
	padding: 4px 10px;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: 0.04em;
}

.tag-list-page .tag-card__date {
	color: var(--tag-accent-dark);
	background: rgba(200, 160, 99, 0.14);
}

.tag-list-page .tag-card__type {
	color: var(--tag-muted);
	background: var(--tag-chip-bg);
}

.tag-list-page .tag-card__category {
	display: inline-block;
	padding: 4px 10px;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.2;
	color: var(--tag-muted);
	background: var(--tag-chip-bg);
	text-decoration: none;
	transition: color 0.2s ease, background-color 0.2s ease;
}

.tag-list-page .tag-card__category:hover {
	color: var(--tag-accent-dark);
	background: rgba(200, 160, 99, 0.14);
}

.tag-list-page .tag-card__subtitle {
	margin: 0;
	padding: 4px 10px;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.2;
	color: var(--tag-muted);
	background: var(--tag-chip-bg);
}

.tag-list-page .tag-card__title {
	margin: 0 0 10px;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.45;
	color: var(--tag-ink);
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	overflow: hidden;
}

.tag-list-page .tag-card__title a {
	color: inherit;
	text-decoration: none;
	transition: color 0.25s ease;
}

.tag-list-page .tag-card:hover .tag-card__title a {
	color: var(--tag-accent-dark);
}

.tag-list-page .tag-card__excerpt {
	margin: 0 0 14px;
	font-size: 13px;
	line-height: 1.65;
	color: var(--tag-muted);
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	overflow: hidden;
}

.tag-list-page .tag-card__more {
	margin-top: auto;
	font-size: 13px;
	font-weight: 600;
	color: var(--tag-ink);
	text-decoration: none;
	letter-spacing: 0.02em;
	transition: color 0.25s ease, letter-spacing 0.25s ease;
}

.tag-list-page .tag-card__more::after {
	content: " →";
	color: var(--tag-accent);
}

.tag-list-page .tag-card__more:hover {
	color: var(--tag-accent-dark);
	letter-spacing: 0.06em;
}

.tag-list-page .tag-empty {
	min-height: 280px;
	margin: 24px 0;
	padding: 48px 24px;
	text-align: center;
	background: var(--tag-surface);
	border: 1px solid var(--tag-line);
	box-shadow: var(--tag-shadow);
}

.tag-list-page .tag-empty__title {
	margin: 0 0 8px;
	font-size: 18px;
	font-weight: 700;
	color: var(--tag-ink);
}

.tag-list-page .tag-empty__text {
	margin: 0;
	font-size: 14px;
	color: var(--tag-muted);
}

@media (max-width: 767px) {
	.tag-list-page .tag-list-header h1 {
		font-size: 26px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.tag-list-page .tag-card,
	.tag-list-page .tag-card__media img,
	.tag-list-page .tag-card__play {
		transition: none;
	}

	.tag-list-page .tag-card:hover {
		transform: none;
	}
}
