main {
	display: flex;
	flex-direction: column;
	gap: 42px;
}
@media (min-width: 1020px) {
	#H5 {
		display: none;
	}
}

@media (max-width: 1020px) {
	#PC {
		display: none;
	}
}
.hero {
	position: relative;
	padding: 64px 0 90px;
	background: linear-gradient(180deg, #fff7fb 0%, #f4f7ff 55%, #ffffff 100%);
	overflow: hidden;
}

.hero::before,
.hero::after {
	content: "";
	position: absolute;
	border-radius: 50%;
	filter: blur(60px);
	z-index: 0;
}

.hero::before {
	width: 220px;
	height: 220px;
	background: #f7e8ff;
	top: -40px;
	left: 10%;
}

.hero::after {
	width: 260px;
	height: 260px;
	background: #e5f1ff;
	top: 20px;
	right: 8%;
}

.hero .container {
	position: relative;
	z-index: 1;
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 20px;
	max-width: 960px;
}

.hero .badge {
	margin-top: 6px;
	background: rgba(255, 200, 214, 0.35);
	color: #e11d48;
	box-shadow: 0 10px 30px rgba(225, 29, 72, 0.15);
	border: 1px solid #ffd5e0;
}

.hero-title {
	font-size: 48px;
	font-weight: 800;
	letter-spacing: 1px;
}

.hero-subtitle {
	max-width: 720px;
	color: var(--muted);
	font-size: 16px;
	line-height: 1.7;
}

.search-bar {
	display: flex;
	align-items: center;
	gap: 14px;
	width: min(640px, 100%);
	padding: 12px 12px 12px 16px;
	background: #ffffff;
	border-radius: 14px;
	box-shadow: var(--shadow);
}

.search-bar .input-wrap {
	flex: 1;
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 12px;
	border-radius: 12px;
	background: #f8fafc;
	border: 1px solid #e5e7eb;
}

.search-bar .input-wrap img {
	width: 18px;
	height: 18px;
	opacity: 0.7;
}

.search-bar input {
	flex: 1;
	font-size: 15px;
	color: #1f2937;
}

.search-bar input::placeholder {
	color: #9ca3af;
}

.section-cards {
    min-height: 400px;
	padding: 10px 0 96px;
}

.cards-grid {
	display: grid;
	grid-template-columns: repeat(5, minmax(210px, 1fr));
	grid-auto-flow: column;
	gap: 24px;
	overflow-x: auto;
	overflow-y: hidden;
	scrollbar-width: none;
	-ms-overflow-style: none;
}

.cards-grid::-webkit-scrollbar {
	display: none;
}

.card {
	position: relative;
	background: #ffffff;
	border-radius: 22px;
	padding: 22px 22px 26px;
	box-shadow: 0 5px 10px rgba(15, 23, 42, 0.04);
	border: 1px solid #eef1f6;
	display: flex;
	flex-direction: column;
	gap: 12px;
	height: 100%;
	min-height: 220px;
	transition: transform 0.18s ease, box-shadow 0.18s ease;
	text-align: left;
}

.card:hover {
	transform: translateY(-4px);
	box-shadow: 0 18px 40px rgba(15, 23, 42, 0.07);
}
.card:hover .card-arrow{
        transform: rotate(45deg);
}
.card-icon {
	width: 56px;
	height: 56px;
	border-radius: 16px;
	overflow: hidden;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.card-icon img {
	max-width: 100%;
	height: 25px;
	object-fit: contain;
}

.card-arrow {
	position: absolute;
	top: 16px;
	right: 16px;
	opacity: 0.2;
	width: 18px;
	height: 18px;
}

.card-arrow img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.card.purple .card-icon {
	background: #ede8ff;
}

.card.pink .card-icon {
	background: #ffe8eb;
}

.card.blue .card-icon {
	background: #e8f0ff;
}

.card.green .card-icon {
	background: #e6fff4;
}

.card.yellow .card-icon {
	background: #fff3d9;
}

.card-title {
	font-weight: 700;
	font-size: 18px;
}

.card-desc {
	color: var(--muted);
	line-height: 1.6;
	font-size: 14px;
}

/* page-list */
/* ------------ detail page ------------ */
.detail-page {
	padding: 20px 0 72px;
}

.detail-hero {
	padding: 12px 0 4px;
}

.detail-hero-inner {
	display: flex;
	flex-direction: column;
	gap: 14px;
	max-width: 880px;
	margin: 0 auto;
}

.detail-title {
	margin: 0;
	font-size: 34px;
	line-height: 1.25;
	color: #0f172a;
}

.detail-subtitle {
	margin: 0;
	color: #4b5563;
	font-size: 15px;
}

.detail-content {
    min-height: 800px;
	padding: 4px 0 80px;
}

.detail-body {
	display: flex;
	flex-direction: column;
	gap: 22px;
	max-width: 880px;
	margin: 0 auto;
}

.detail-section {
	display: flex;
	flex-direction: column;
	gap: 14px;
	font-size: 16px;
	color: #1f2937;
	line-height: 1.7;
}

.detail-line {
	margin: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.detail-line .label {
	font-weight: 700;
}

.detail-line .value {
	color: #111827;
}

.detail-note {
	margin-top: 4px;
	font-size: 14px;
	color: #374151;
	line-height: 1.7;
}

@media (max-width: 640px) {
	.detail-title {
		font-size: 32px;
	}

	.detail-section {
		font-size: 15px;
	}

	.detail-note {
		font-size: 13px;
	}
}

/* page-list */
.page-list {
    min-height: 1000px;
	padding: 10px 0 60px;
}

.list-hero {
	padding: 18px 0 12px;
}

.list-hero-inner {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.breadcrumb {
	font-size: 13px;
	color: #6b7280;
}

.crumb-back {
	width: auto;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 14px;
	border-radius: 999px;
	background: #f7f9fc;
	color: #374151;
	border: 1px solid #e5e7eb;
	box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
	font-weight: 700;
}

.crumb-icon {
	width: 16px;
	height: 16px;
}

/* ------------ modal ------------ */
.modal-overlay {
	position: fixed;
	inset: 0;
	background: rgba(17, 24, 39, 0.35);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	z-index: 50;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.2s ease;
}

.modal-overlay.show {
	opacity: 1;
	pointer-events: auto;
}

.modal-dialog {
	background: #ffffff;
	border-radius: 22px;
	box-shadow: 0 32px 90px rgba(15, 23, 42, 0.18);
	padding: 28px 32px 22px;
	width: min(900px, 100%);
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.modal-close {
	position: absolute;
	right: 18px;
	top: 18px;
	width: 32px;
	height: 32px;
	border: none;
	border-radius: 50%;
	background: #f3f4f6;
	color: #6b7280;
	font-size: 20px;
	line-height: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
}

.modal-title {
	font-size: 28px;
	font-weight: 800;
	color: #0f172a;
	margin-top: 4px;
}

.modal-body {
	display: grid;
	grid-template-columns: 1.6fr 1fr 1fr;
	gap: 24px;
	align-items: start;
}

.about-col {
	display: flex;
	flex-direction: column;
	gap: 10px;
	color: #4b5563;
	font-size: 14px;
}

.about-brand-header {
	display: flex;
	align-items: center;
	gap: 10px;
	font-weight: 700;
	color: #111827;
}

.about-logo {
	width: 32px;
	height: 32px;
}

.about-name {
	font-size: 16px;
	font-weight: 800;
}

.about-desc {
	margin: 0;
	line-height: 1.7;
	color: #374151;
	font-size: 15px;
}

.about-copy {
	font-size: 14px;
	color: #9ca3af;
}

.about-head {
	font-weight: 700;
	color: #111827;
	font-size: 13px;
	letter-spacing: 0.3px;
}

.about-link {
	color: #1f2937;
	font-weight: 600;
	text-decoration: none;
}

.about-link:hover {
	color: #111827;
}

.modal-footer {
	text-align: center;
	font-size: 13px;
	color: #6b7280;
	padding-top: 12px;
	border-top: 1px solid #eef1f6;
}

@media (max-width: 640px) {
	.modal-dialog {
		padding: 18px 16px;
	}

	.modal-body {
		grid-template-columns: 1fr;
	}
}

.list-title-wrap {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 10px 0;
}

.list-icon {
	width: 54px;
	height: 54px;
	border-radius: 16px;
	background: linear-gradient(180deg, #fdf6ff 0%, #f5f8ff 100%);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.list-icon img {
	max-width: 28px;
	max-height: 28px;
}

.list-title {
	font-size: 34px;
	margin: 0 0 6px;
}

.list-subtitle {
	margin: 0;
	color: #6b7280;
	font-size: 15px;
}

.list-layout {
    min-height: 600px;
	padding: 4px 0 80px;
}

.list-grid {
	display: grid;
	grid-template-columns: 2fr 1fr;
	gap: 20px;
	align-items: start;
}

.list-main {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.list-card {
	background: #ffffff;
	border-radius: 16px;
	border: 1px solid #eef1f6;
	box-shadow: 0 10px 28px rgba(15, 23, 42, 0.04);
	padding: 20px 18px 18px;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.list-card h3 {
	margin: 0;
	font-size: 18px;
}

.card-summary {
	margin: 0;
	color: #6b7280;
	line-height: 1.6;
}

.card-link {
	color: #ef4444;
	font-weight: 600;
	font-size: 14px;
}

.list-aside {
	position: sticky;
	top: 92px;
}

.aside-card {
	background: #ffffff;
	border: 1px solid #eef1f6;
	box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
	border-radius: 22px;
	padding: 18px 20px 22px;
}

.aside-header {
	display: flex;
	align-items: center;
	gap: 8px;
	font-weight: 700;
	margin-bottom: 12px;
	color: #111827;
}

.aside-header img {
	width: 18px;
}

.aside-dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: #ef4444;
	display: inline-block;
}

.hot-list {
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 16px;
	counter-reset: rank;
}

.hot-list li {
	list-style: none;
	 counter-increment: rank;
	display: grid;
	 grid-template-columns: auto 1fr;
	gap: 10px;
	/* align-items: flex-start; */
	/* min-height: 58px; */
	text-align: left;
	padding-left: 40px;
	position: relative;

}

.hot-list li::before {
	content: counter(rank);
	width: 34px;
	height: 34px;
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: #111827;
	font-weight: 700;
	font-size: 14px;
	background: #FBFBF9;
	position: absolute;
	left: 0;
	top: 50%;
	transform: translateY(-50%);
}
.hot-list li:nth-child(1)::before {
	background: linear-gradient(180deg, #fff6cf 0%, #ffe48a 100%);
	color: #1f2937;
}
.hot-list li:nth-child(2)::before {
	background: linear-gradient(180deg, #eef2ff 0%, #dfe6ff 100%);
	color: #1f2937;
}

.hot-list li:nth-child(3)::before {
	background: linear-gradient(180deg, #ffe7d1 0%, #ffcfa1 100%);
	color: #7c2d12;
}

.hot-title {
	font-weight: 700;
	color: #111827;
	line-height: 1.4;
}

.hot-meta {
	color: #9ca3af;
	font-size: 13px;
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.hot-meta img {
	width: 14px;
	height: 14px;
	opacity: 0.7;
}

@media (max-width: 992px) {
	.list-grid {
		grid-template-columns: 1fr;
	}

	.list-aside {
		position: static;
	}
}

@media (max-width: 640px) {
	.list-title {
		font-size: 28px;
	}

	.list-title-wrap {
		align-items: flex-start;
		gap: 12px;
	}

	.list-grid {
		gap: 16px;
	}

	.list-card {
		padding: 18px 16px;
	}

	.aside-card {
		padding: 16px;
	}

	.hot-list {
		gap: 12px;
	}
}

@media (max-width: 1020px) {
	.hero-title {
		font-size: 38px;
	}
}

@media (max-width: 768px) {
	main {
		gap: 28px;
	}

	.hero {
		padding: 32px 0 54px;
	}

	.hero-title {
		font-size: 32px;
	}

	.hero-subtitle {
		font-size: 15px;
		max-width: 90%;
	}

	.search-bar {
		width: 100%;
		max-width: 520px;
		flex-direction: row;
		align-items: center;
		padding: 12px;
	}

	.btn-primary {
		width: auto;
		min-width: 110px;
	}

	.cards-grid {
		grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
		grid-auto-flow: row;
		overflow: visible;
		gap: 16px;
	}
}

@media (max-width: 520px) {
	.hero {
		padding: 28px 0 46px;
	}

	.hero-title {
		font-size: 28px;
	}

	.hero-subtitle {
		font-size: 14px;
	}

	.search-bar {
		padding: 10px;
		gap: 10px;
	}

	.search-bar .input-wrap {
		padding: 10px;
	}

	.section-cards {
		padding: 8px 0 72px;
	}

	.cards-grid {
		grid-template-columns: 1fr;
		gap: 14px;
	}

	.card {
		min-height: 180px;
		padding: 18px 18px 20px;
		border-radius: 18px;
	}

	.card-icon {
		width: 52px;
		height: 52px;
	}

	.card-title {
		font-size: 17px;
	}
}