.wp-block-nihao-post-category-grid {
	padding: 40px 0;
	background: #fff;
}

.nihao-post-category-grid__inner {
	width: min(1200px, 100%);
	margin: 0 auto;
	padding: 0;
}

/* Category Filters */
.nihao-post-category-grid__filters {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 40px;
}

.nihao-post-category-grid__filter {
	padding: 11px 40px;
	border: 1px solid #CDCDCF;
	border-radius: 40px;
	background: #fff;
	color: #3D3D40;
	font-size: 16px;
	font-weight: 600;
	line-height: 24px;
	cursor: pointer;
	transition: all 0.2s ease;
	font-family: Inter, sans-serif;
}

.nihao-post-category-grid__filter[data-category="all"]:hover {
	border-color: #000000;
	/* color: #007AFF; */
}

.nihao-post-category-grid__filter--active {
	background: #000000;
	border-color: #000000;
	color: #fff;
}

.nihao-post-category-grid__divider {
	height: 1px;
	background: #E1E1E3;
	margin: 40px 0 56px;
}

/* Content Grid */
.nihao-post-category-grid__content {
	display: grid;
	grid-template-columns: 643px 453px;
	column-gap: 24px;
	row-gap: 16px;
	max-width: 1120px;
	margin: 0 auto;
}

/* Cards */
.nihao-post-category-grid__card {
	overflow: hidden;
	border-radius: 12px;
	background: #fff;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nihao-post-category-grid__card:hover {
	transform: translateY(-4px);
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

/* Large Card (Left) */
.nihao-post-category-grid__card--large {
	grid-row: span 2;
	max-width: 643px;
}

.nihao-post-category-grid__card--large .nihao-post-category-grid__card-media {
	height: 228px;
}

.nihao-post-category-grid__card--large .nihao-post-category-grid__card-body {
	padding: 12px 24px 20px;
}

.nihao-post-category-grid__card--large .nihao-post-category-grid__card-title a {
	font-size: var(--large-title-font-size, 20px);
	font-weight: var(--large-title-font-weight, 600);
	line-height: var(--large-title-line-height, 30px);
	color: var(--large-title-color, #111111);
	font-family: var(--large-title-font-family, inherit);
	margin: 0 0 var(--large-title-margin-bottom, 12px);
	display: -webkit-box;
	-webkit-line-clamp: 1;
	line-clamp: 1;
	-webkit-box-orient: vertical;
	overflow: hidden;
	height: 36px;
}

.nihao-post-category-grid__card--large .nihao-post-category-grid__card-title a:hover {
	color: var(--large-title-color, #111111);
}

.nihao-post-category-grid__card--large .nihao-post-category-grid__card-description {
	font-size: var(--large-description-font-size, 14px);
	font-weight: var(--large-description-font-weight, 400);
	line-height: var(--large-description-line-height, 22px);
	color: var(--large-description-color, #666666);
	font-family: var(--large-description-font-family, inherit);
	margin: 0 0 var(--large-description-margin-bottom, 16px);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	height: 56px;
}

/* Small Cards (Right) */
.nihao-post-category-grid__card--small {
	display: flex;
	/* flex-direction: column; */
	max-width: 453px;
}

.nihao-post-category-grid__card--small .nihao-post-category-grid__card-media {
	height: 192px;
	width: 192px;
	flex-shrink: 0;
}

.nihao-post-category-grid__card--small .nihao-post-category-grid__card-body {
	padding: 16px;
	margin: auto 0;
	flex-grow: 1;
}

.nihao-post-category-grid__card--small .nihao-post-category-grid__card-title a {
	font-size: var(--small-title-font-size, 18px);
	font-weight: var(--small-title-font-weight, 600);
	line-height: var(--small-title-line-height, 26px);
	color: var(--small-title-color, #111111);
	font-family: var(--small-title-font-family, inherit);
	margin: 0 0 var(--small-title-margin-bottom, 8px);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	height: 60px;
}

.nihao-post-category-grid__card--small .nihao-post-category-grid__card-title a:hover {
	color: var(--small-title-color, #111111);
}

/* Card Media */
.nihao-post-category-grid__card-media {
	position: relative;
	display: block;
	overflow: hidden;
}

.nihao-post-category-grid__card-image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.nihao-post-category-grid__card-placeholder {
	display: flex;
	width: 100%;
	height: 100%;
	align-items: center;
	justify-content: center;
}

.nihao-post-category-grid__card-char {
	font-size: 90px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.3);
    position: absolute;
    bottom: 8px;
    right: 24px;
}

.nihao-post-category-grid__card--small .nihao-post-category-grid__card-char {
	font-size: 60px;
	position: absolute;
	bottom: 0;
	right: 28px;
}

/* Category Term Badge */
.nihao-post-category-grid__card--large .nihao-post-category-grid__card-term {
	position: absolute;
	top: 16px;
	left: 16px;
	padding: 6px 12px;
	border-radius: 20px;
	background: #ffffff;
	font-size: var(--large-category-font-size, 12px);
	font-weight: var(--large-category-font-weight, 600);
	line-height: var(--large-category-line-height, 16px);
	color: var(--large-category-color, #ffffff);
	font-family: var(--large-category-font-family, inherit);
	margin-bottom: var(--large-category-margin-bottom, 0);
	backdrop-filter: blur(4px);
}

.nihao-post-category-grid__card--small .nihao-post-category-grid__card-term {
	position: absolute;
	top: 16px;
	left: 16px;
	padding: 6px 12px;
	border-radius: 20px;
	background: #ffffff;
	font-size: var(--small-category-font-size, 12px);
	font-weight: var(--small-category-font-weight, 600);
	line-height: var(--small-category-line-height, 16px);
	color: var(--small-category-color, #ffffff);
	font-family: var(--small-category-font-family, inherit);
	margin-bottom: var(--small-category-margin-bottom, 0);
	backdrop-filter: blur(4px);
}

/* Card Title */
.nihao-post-category-grid__card-title a {
	color: inherit;
	text-decoration: none;
	transition: color 0.2s ease;
}

.nihao-post-category-grid__card-title a:hover {
	color: #007AFF;
}

/* Card Meta */
.nihao-post-category-grid__card--large .nihao-post-category-grid__card-meta {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: var(--large-meta-font-size, 12px);
	font-weight: var(--large-meta-font-weight, 500);
	line-height: var(--large-meta-line-height, 18px);
	color: var(--large-meta-color, #999999);
	font-family: var(--large-meta-font-family, inherit);
	margin-bottom: var(--large-meta-margin-bottom, 0);
}

.nihao-post-category-grid__card--small .nihao-post-category-grid__card-meta {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: var(--small-meta-font-size, 12px);
	font-weight: var(--small-meta-font-weight, 500);
	line-height: var(--small-meta-line-height, 18px);
	color: var(--small-meta-color, #999999);
	font-family: var(--small-meta-font-family, inherit);
	margin-bottom: var(--small-meta-margin-bottom, 0);
}

.nihao-post-category-grid__card-avatar {
	width: 20px;
	height: 20px;
	border-radius: 50%;
	object-fit: cover;
}

.nihao-post-category-grid__card-author {
	color: inherit;
}

.nihao-post-category-grid__card-separator {
	color: inherit;
}

.nihao-post-category-grid__card--large .nihao-post-category-grid__card-date {
	font-size: var(--large-date-font-size, 12px);
	font-weight: var(--large-date-font-weight, 400);
	line-height: var(--large-date-line-height, 18px);
	color: var(--large-date-color, #999999);
	font-family: var(--large-date-font-family, inherit);
	margin-left: var(--large-date-margin-left, 8px);
}

.nihao-post-category-grid__card--small .nihao-post-category-grid__card-date {
	font-size: var(--small-date-font-size, 12px);
	font-weight: var(--small-date-font-weight, 400);
	line-height: var(--small-date-line-height, 18px);
	color: var(--small-date-color, #603434);
	font-family: var(--small-date-font-family, inherit);
	margin-left: var(--small-date-margin-left, 8px);
}

/* Empty State */
.nihao-post-category-grid__empty {
	margin: 0;
	padding: 40px 20px;
	border: 1px solid #e2e2e2;
	border-radius: 10px;
	color: #777;
	text-align: center;
}

/* Category Posts Display */
.nihao-post-category-grid__posts {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 24px;
	margin-top: 32px;
}

.nihao-post-category-grid__posts-header {
	margin-top: 56px;
	margin-bottom: 40px;
}

/* Search Header Styles */
.nihao-post-category-grid__posts-header--search {
	margin-top: 40px;
	margin-bottom: 32px;
}

.nihao-post-category-grid__posts-search-info {
	font-size: 16px;
	font-weight: 400;
	line-height: 24px;
	color: #3D3D40;
	margin: 0;
	font-family: Inter, sans-serif;
}

.nihao-post-category-grid__posts-search-keyword {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: #F5F5F5;
	padding: 6px 12px;
	border-radius: 8px;
	margin-left: 8px;
	font-weight: 500;
	color: #070603;
}

.nihao-post-category-grid__posts-search-clear {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 16px;
	height: 16px;
	border: none;
	background: transparent;
	cursor: pointer;
	padding: 0;
	color: #666666;
	transition: color 0.2s ease;
}

.nihao-post-category-grid__posts-search-clear:hover {
	color: #000000;
}

.nihao-post-category-grid__posts-search-clear svg {
	width: 12px;
	height: 12px;
}

.nihao-post-category-grid__posts-main-title {
	font-size: var(--posts-main-title-font-size, 24px);
	font-weight: var(--posts-main-title-font-weight, 700);
	line-height: var(--posts-main-title-line-height, 32px);
	color: var(--posts-main-title-color, #111111);
	font-family: var(--posts-main-title-font-family, inherit);
	margin: 0 0 var(--posts-main-title-margin-bottom, 16px);
}

.nihao-post-category-grid__posts-sub-title {
	font-size: var(--posts-sub-title-font-size, 16px);
	font-weight: var(--posts-sub-title-font-weight, 400);
	line-height: var(--posts-sub-title-line-height, 24px);
	color: var(--posts-sub-title-color, #666666);
	font-family: var(--posts-sub-title-font-family, inherit);
	margin: 0 0 var(--posts-sub-title-margin-bottom, 24px);
}

.nihao-post-category-grid__posts-first-page-content {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--posts-first-page-content-gap, 24px);
	margin-top: var(--posts-first-page-margin-top, 0);
	margin-right: var(--posts-first-page-margin-right, 0);
	margin-bottom: var(--posts-first-page-margin-bottom, 0);
	margin-left: var(--posts-first-page-margin-left, 0);
	padding-top: var(--posts-first-page-padding-top, 32px);
	padding-right: var(--posts-first-page-padding-right, 56px);
	padding-bottom: var(--posts-first-page-padding-bottom, 32px);
	padding-left: var(--posts-first-page-padding-left, 56px);
	background: var(--posts-first-page-background, #f5f5f5);
	border-radius: var(--posts-first-page-border-radius, 16px);
	box-sizing: border-box;
}

.nihao-post-category-grid__posts-first-page-copy {
	min-width: 0;
	flex: 1 1 auto;
}

.nihao-post-category-grid__posts-first-page-title {
	font-size: var(--posts-first-page-title-font-size, 24px);
	font-weight: var(--posts-first-page-title-font-weight, 700);
	line-height: var(--posts-first-page-title-line-height, 32px);
	color: var(--posts-first-page-title-color, #111111);
	font-family: var(--posts-first-page-title-font-family, Georgia, serif);
	margin-top: var(--posts-first-page-title-margin-top, 0);
	margin-right: var(--posts-first-page-title-margin-right, 0);
	margin-bottom: var(--posts-first-page-title-margin-bottom, 8px) !important;
	margin-left: var(--posts-first-page-title-margin-left, 0);
}

.nihao-post-category-grid__posts-first-page-description {
	font-size: var(--posts-first-page-description-font-size, 15px);
	font-weight: var(--posts-first-page-description-font-weight, 400);
	line-height: var(--posts-first-page-description-line-height, 22px);
	color: var(--posts-first-page-description-color, #555555);
	font-family: var(--posts-first-page-description-font-family, Arial, sans-serif);
	margin-top: var(--posts-first-page-description-margin-top, 0);
	margin-right: var(--posts-first-page-description-margin-right, 0);
	margin-bottom: var(--posts-first-page-description-margin-bottom, 0);
	margin-left: var(--posts-first-page-description-margin-left, 0);
}

.nihao-post-category-grid__posts-first-page-button {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 0;
	cursor: pointer;
	text-decoration: none;
	appearance: none;
	background: var(--posts-first-page-button-background, #050505);
	color: var(--posts-first-page-button-color, #ffffff);
	font-size: var(--posts-first-page-button-font-size, 16px);
	font-weight: var(--posts-first-page-button-font-weight, 600);
	line-height: var(--posts-first-page-button-line-height, 20px);
	font-family: var(--posts-first-page-button-font-family, Inter, sans-serif);
	padding-top: var(--posts-first-page-button-padding-top, 14px);
	padding-right: var(--posts-first-page-button-padding-right, 22px);
	padding-bottom: var(--posts-first-page-button-padding-bottom, 14px);
	padding-left: var(--posts-first-page-button-padding-left, 22px);
	margin-top: var(--posts-first-page-button-margin-top, 0);
	margin-right: var(--posts-first-page-button-margin-right, 0);
	margin-bottom: var(--posts-first-page-button-margin-bottom, 0);
	margin-left: var(--posts-first-page-button-margin-left, 0);
	border-radius: var(--posts-first-page-button-border-radius, 8px);
	box-shadow: 0 3px 8px rgba(0, 0, 0, 0.18);
	transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.nihao-post-category-grid__posts-first-page-button:hover {
	opacity: 0.92;
	transform: translateY(-1px);
	box-shadow: 0 5px 12px rgba(0, 0, 0, 0.2);
}

.nihao-post-category-grid__posts-first-page-button:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 3px;
}

/* Email modal */
.nihao-post-category-grid__email-modal[hidden] {
	display: none;
}

.nihao-post-category-grid__email-modal {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.nihao-post-category-grid__email-modal-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.55);
}

.nihao-post-category-grid__email-modal-dialog {
	position: relative;
	z-index: 1;
	width: min(480px, 100%);
	padding: 32px;
	border-radius: 16px;
	background: #ffffff;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.nihao-post-category-grid__email-modal-close {
	position: absolute;
	top: 10px;
	right: 12px;
	width: 36px;
	height: 36px;
	padding: 0;
	border: 0;
	background: transparent;
	color: #555;
	font-size: 28px;
	line-height: 36px;
	cursor: pointer;
}

.nihao-post-category-grid__email-form-title {
	margin: 0 36px 8px 0;
	font-size: 24px;
	font-weight: 700;
	line-height: 32px;
	color: #111;
}

.nihao-post-category-grid__email-form-description {
	margin: 0 0 20px;
	font-size: 15px;
	line-height: 22px;
	color: #666;
}

.nihao-post-category-grid__email-form {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.nihao-post-category-grid__email-form-label {
	font-size: 14px;
	font-weight: 600;
	line-height: 20px;
	color: #222;
}

.nihao-post-category-grid__email-form-input {
	width: 100%;
	min-height: 46px;
	box-sizing: border-box;
	padding: 10px 14px;
	border: 1px solid #d9d9d9;
	border-radius: 8px;
	background: #fff;
	color: #111;
	font-size: 15px;
	line-height: 22px;
}

.nihao-post-category-grid__email-form-input:focus {
	border-color: #111;
	outline: 2px solid rgba(17, 17, 17, 0.1);
}

.nihao-post-category-grid__email-form-submit {
	min-height: 46px;
	margin-top: 4px;
	padding: 10px 18px;
	border: 0;
	border-radius: 8px;
	background: #050505;
	color: #fff;
	font-size: 15px;
	font-weight: 600;
	line-height: 22px;
	cursor: pointer;
}

.nihao-post-category-grid__email-form-success {
	margin: 8px 0 0;
	font-size: 14px;
	line-height: 20px;
	color: #218739;
}

body.nihao-email-modal-open {
	overflow: hidden;
}

.nihao-post-category-grid__post-item {
	overflow: hidden;
	border-radius: 12px;
	background: #fff;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nihao-post-category-grid__post-item:hover {
	transform: translateY(-4px);
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.nihao-post-category-grid__post-item.hidden {
	display: none;
}

.nihao-post-category-grid__post-media {
	position: relative;
	display: block;
	overflow: hidden;
	height: 136px;
}

.nihao-post-category-grid__post-image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.nihao-post-category-grid__post-placeholder {
	display: flex;
	width: 100%;
	height: 100%;
	align-items: center;
	justify-content: center;
}

.nihao-post-category-grid__post-char {
	font-size: 80px;
	font-weight: 700;
	color: rgba(255, 255, 255, 0.3);
	position: absolute;
	bottom: 8px;
	right: 24px;
}

.nihao-post-category-grid__post-term {
	position: absolute;
	top: 16px;
	left: 16px;
	padding: 6px 12px;
	border-radius: 20px;
	background: #ffffff;
	font-size: var(--post-item-category-font-size, 12px);
	font-weight: var(--post-item-category-font-weight, 600);
	line-height: var(--post-item-category-line-height, 16px);
	font-family: var(--post-item-category-font-family, inherit);
	margin-bottom: var(--post-item-category-margin-bottom, 0);
	backdrop-filter: blur(4px);
}

.nihao-post-category-grid__post-body {
	padding: 16px;
}

.nihao-post-category-grid__post-title {
	font-size: var(--post-item-title-font-size, 18px);
	font-weight: var(--post-item-title-font-weight, 600);
	line-height: var(--post-item-title-line-height, 26px);
	color: var(--post-item-title-color, #111111);
	font-family: var(--post-item-title-font-family, inherit);
	margin: 0 0 var(--post-item-title-margin-bottom, 16px) !important;
	max-height: 56px;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
}

.nihao-post-category-grid__post-title a {
	color: inherit;
	text-decoration: none;
	transition: color 0.2s ease;
}

.nihao-post-category-grid__post-title a:hover {
	/* color: #007AFF; */
	color: var(--post-item-title-color, #111111);
}

.nihao-post-category-grid__post-description {
	font-size: 14px;
	font-weight: 400;
	line-height: 22px;
	color: #666666;
	margin: 0 0 12px;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.nihao-post-category-grid__post-meta {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: var(--post-item-meta-font-size, 12px);
	font-weight: var(--post-item-meta-font-weight, 500);
	line-height: var(--post-item-meta-line-height, 18px);
	color: var(--post-item-meta-color, #999999);
	font-family: var(--post-item-meta-font-family, inherit);
	margin-bottom: var(--post-item-meta-margin-bottom, 0);
}

.nihao-post-category-grid__post-avatar {
	width: 20px;
	height: 20px;
	border-radius: 50%;
	object-fit: cover;
}

.nihao-post-category-grid__post-author {
	color: inherit;
}

.nihao-post-category-grid__post-separator {
	color: inherit;
}

.nihao-post-category-grid__post-date {
	color: inherit;
	font-size: var(--post-item-date-font-size, 12px);
	font-weight: var(--post-item-date-font-weight, 400);
	line-height: var(--post-item-date-line-height, 18px);
	color: var(--post-item-date-color, #999999);
	font-family: var(--post-item-date-font-family, inherit);
	margin-left: var(--post-item-date-margin-left, 8px);
}

/* Pagination */
.nihao-post-category-grid__pagination {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin-top: 20px;
	padding: 20px;
}

.nihao-post-category-grid__pagination-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 36px;
	height: 36px;
	border: 1px solid #E1E1E3;
	border-radius: 6px;
	background: #fff;
	color: #515155;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	transition: all 0.2s ease;
}

.nihao-post-category-grid__pagination-link:hover {
	border-color: #FF9500;
	color: #FF9500;
	background: rgba(255, 149, 0, 0.05);
}

.nihao-post-category-grid__pagination-current {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 36px;
	height: 36px;
	border: 1px solid #FF9500;
	border-radius: 6px;
	background: #FF9500;
	color: #fff;
	font-size: 14px;
	font-weight: 600;
	line-height: 24px;
}

/* .nihao-post-category-grid__pagination--prev,
.nihao-post-category-grid__pagination--next {
	min-width: auto;
} */

/* Responsive */
@media (max-width: 768px) {
	.nihao-post-category-grid {
		--large-title-font-size: var(--mobile-large-title-font-size, 18px);
		--large-title-line-height: var(--mobile-large-title-line-height, 26px);
		--large-title-margin-bottom: var(--mobile-large-title-margin-bottom, 10px);
		--small-title-font-size: var(--mobile-small-title-font-size, 16px);
		--small-title-line-height: var(--mobile-small-title-line-height, 22px);
		--small-title-margin-bottom: var(--mobile-small-title-margin-bottom, 6px);
		--posts-main-title-font-size: var(--mobile-posts-main-title-font-size, 20px);
		--posts-main-title-line-height: var(--mobile-posts-main-title-line-height, 28px);
		--posts-main-title-margin-bottom: var(--mobile-posts-main-title-margin-bottom, 12px);
		--post-item-title-font-size: var(--mobile-post-item-title-font-size, 16px);
		--post-item-title-line-height: var(--mobile-post-item-title-line-height, 22px);
		--post-item-title-margin-bottom: var(--mobile-post-item-title-margin-bottom, 6px);
		--posts-sub-title-font-size: var(--mobile-posts-sub-title-font-size, 14px);
		--posts-sub-title-line-height: var(--mobile-posts-sub-title-line-height, 20px);
		--posts-sub-title-margin-bottom: var(--mobile-posts-sub-title-margin-bottom, 16px);
	}

	.nihao-post-category-grid__posts-first-page-content {
		align-items: stretch;
		flex-direction: column;
	}

	.nihao-post-category-grid__posts-first-page-button {
		align-self: center;
	}

	.nihao-post-category-grid__card--large .nihao-post-category-grid__card-title, 
	.nihao-post-category-grid__card--large .nihao-post-category-grid__card-title a {
		font-size: var(--mobile-large-title-font-size, 18px);
		font-weight: var(--large-title-font-weight, 600);
		line-height: var(--mobile-large-title-line-height, 26px);
		color: var(--large-title-color, #111111);
		font-family: var(--large-title-font-family, inherit);
		margin: 0 0 var(--mobile-large-title-margin-bottom, 10px);
		display: -webkit-box;
		-webkit-line-clamp: 2;
		line-clamp: 2;
		-webkit-box-orient: vertical;
		overflow: hidden;
		height: 48px;
	}

	.nihao-post-category-grid__card--large .nihao-post-category-grid__card-description {
		font-size: var(--large-description-font-size, 14px);
		font-weight: var(--large-description-font-weight, 400);
		line-height: var(--large-description-line-height, 22px);
		color: var(--large-description-color, #666666);
		font-family: var(--large-description-font-family, inherit);
		margin: 0 0 var(--large-description-margin-bottom, 16px);
		display: -webkit-box;
		-webkit-line-clamp: 2;
		line-clamp: 2;
		-webkit-box-orient: vertical;
		overflow: hidden;
		height: 48px;
	}

	.nihao-post-category-grid__card--small .nihao-post-category-grid__card-title,
	.nihao-post-category-grid__card--small .nihao-post-category-grid__card-title a {
		font-size: var(--mobile-small-title-font-size, 16px);
		font-weight: var(--small-title-font-weight, 600);
		line-height: var(--mobile-small-title-line-height, 22px);
		color: var(--small-title-color, #111111);
		font-family: var(--small-title-font-family, inherit);
		margin: 0 0 var(--mobile-small-title-margin-bottom, 6px);
		display: -webkit-box;
		-webkit-line-clamp: 2;
		line-clamp: 2;
		-webkit-box-orient: vertical;
		overflow: hidden;
		max-height: 52px;
	}

	.nihao-post-category-grid__posts-main-title {
		font-size: var(--mobile-posts-main-title-font-size, 20px);
		line-height: var(--mobile-posts-main-title-line-height, 28px);
		margin-bottom: var(--mobile-posts-main-title-margin-bottom, 12px);
	}

	.nihao-post-category-grid__post-title {
		font-size: var(--mobile-post-item-title-font-size, 16px);
		line-height: var(--mobile-post-item-title-line-height, 22px);
		margin-bottom: var(--mobile-post-item-title-margin-bottom, 6px);
	}

	.nihao-post-category-grid__card--large .nihao-post-category-grid__card-term {
		position: absolute;
		top: 8px;
		left: 8px;
		padding: 3px 8px;
		border-radius: 20px;
		background: #ffffff;
		font-size: 10px;
		font-weight: 600;
		line-height: 14px;
		color: #ffffff;
		font-family: inherit;
		margin-bottom: 0;
		backdrop-filter: blur(4px);
	}

	.nihao-post-category-grid__card--small .nihao-post-category-grid__card-term {
		position: absolute;
		top: 8px;
		left: 8px;
		padding: 3px 8px;
		border-radius: 20px;
		background: #ffffff;
		font-size: 10px;
		font-weight: 600;
		line-height: 14px;
		color: #ffffff;
		font-family: inherit;
		margin-bottom: 0;
		backdrop-filter: blur(4px);
		max-width: 88px;
	}

	.nihao-post-category-grid__posts-header {
		margin-top: 40px;
		margin-bottom: 32px;
	}
	/* Pagination */
	.nihao-post-category-grid__pagination {
		margin-top: 12px;
	}

	.nihao-post-category-grid__card--large .nihao-post-category-grid__card-title a {
		-webkit-line-clamp: 2;
		line-clamp: 2;
		height: 52px;
	}
}

@media (max-width: 480px) {
	.nihao-post-category-grid__posts-first-page-content {
		text-align: center;
		padding: 24px;
	}

	.nihao-post-category-grid__email-modal-dialog {
		padding: 24px;
	}

	.nihao-post-category-grid__divider {
		margin: 40px 0;
	}
}

@media (max-width: 1024px) {
	.nihao-post-category-grid__inner {
		padding: 0 40px;
	}

	.nihao-post-category-grid__content {
		grid-template-columns: 1fr;
	}

	.nihao-post-category-grid__card--large {
		grid-row: span 1;
	}

	.nihao-post-category-grid__card--large .nihao-post-category-grid__card-media {
		height: 228px;
	}

	.nihao-post-category-grid__card--small {
		flex-direction: row;
	}

	.nihao-post-category-grid__card--small .nihao-post-category-grid__card-media {
		width: 192px;
		height: auto;
	}

	.nihao-post-category-grid__card--small .nihao-post-category-grid__card-body {
		padding: 16px;
	}
}

@media (max-width: 768px) {
	.nihao-post-category-grid__inner {
		padding: 0 40px;
	}

	.nihao-post-category-grid__filters {
		flex-wrap: nowrap;
		gap: 8px;
		margin-bottom: 32px;
		overflow-x: auto;
		overflow-y: hidden;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
	}

	.nihao-post-category-grid__filters::-webkit-scrollbar {
		display: none;
	}

	.nihao-post-category-grid__filter {
		flex-shrink: 0;
		white-space: nowrap;
		padding: 6px 12px;
		font-size: 13px;
	}

	.nihao-post-category-grid__card--large .nihao-post-category-grid__card-media {
		height: 200px;
	}

	.nihao-post-category-grid__card--large .nihao-post-category-grid__card-body {
		padding: 20px;
	}

	.nihao-post-category-grid__card--small .nihao-post-category-grid__card-media {
		width: 104px;
		height: 104px;
	}

	.nihao-post-category-grid__card--small .nihao-post-category-grid__card-body {
		padding: 8px;
	}
}

@media (max-width: 480px) {
	.nihao-post-category-grid__inner {
		padding: 0 24px;
	}

	.nihao-post-category-grid__filters {
		gap: 6px;
	}

	.nihao-post-category-grid__filter {
		padding: 6px 10px;
		font-size: 12px;
	}

	.nihao-post-category-grid__card--large .nihao-post-category-grid__card-media {
		height: 200px;
	}

	.nihao-post-category-grid__card--large .nihao-post-category-grid__card-body {
		padding: 16px;
	}
}
