/* 下载中心 — 列表直接下载 */

.cx-download-ui .content-area {
	margin-top: 0;
}

.cx-download-page {
	--cx-d-accent: #e74b11;
	--cx-d-border: #e5e5e5;
	--cx-d-muted: #666;
	max-width: 1280px;
	margin: 0 auto;
	padding: 0 20px 48px;
}

.cx-download-ui .cx-download-hero,
.cx-download-ui .cx-download-hero__inner,
.cx-download-ui .cx-download-hero__title,
.cx-download-ui .cx-download-hero .cx-download-hero__title {
	background: transparent !important;
	background-color: transparent !important;
	background-image: none !important;
	box-shadow: none !important;
}

.cx-download-hero {
	margin: 0 -20px 32px;
	padding: 40px 20px 36px;
	background: transparent !important;
	border: none;
}

.cx-download-hero__kicker {
	display: block;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--cx-d-accent);
	margin-bottom: 8px;
}

.cx-download-hero__title {
	margin: 0 0 10px;
	padding: 0 !important;
	font-size: clamp(1.75rem, 4vw, 2.25rem);
	line-height: 1.2;
	color: inherit;
}

.cx-download-hero__desc {
	margin: 0;
	max-width: 640px;
	color: var(--cx-d-muted);
	line-height: 1.6;
}

.cx-download-page--has-page-banner {
	padding-top: 0;
}

.cx-download-layout {
	display: grid;
	grid-template-columns: 260px minmax(0, 1fr);
	gap: 32px;
	align-items: start;
}

.cx-download-sidebar {
	position: sticky;
	top: 100px;
	background: #fff;
	border: 1px solid var(--cx-d-border);
	border-radius: 8px;
	padding: 20px 16px;
}

.cx-download-sidebar__title {
	margin: 0 0 14px;
	font-size: 15px;
	font-weight: 700;
	padding-bottom: 12px;
	border-bottom: 1px solid var(--cx-d-border);
}

.cx-download-sidebar__list,
.cx-download-sidebar__sublist {
	list-style: none;
	margin: 0;
	padding: 0;
}

.cx-download-sidebar__sublist {
	margin: 4px 0 4px 12px;
	padding-left: 8px;
	border-left: 2px solid #f0f0f0;
}

.cx-download-sidebar__item a {
	display: block;
	padding: 8px 10px;
	border-radius: 6px;
	color: #1a1a1a;
	text-decoration: none;
	font-size: 14px;
}

.cx-download-sidebar__item a:hover {
	background: #fff5f0;
	color: var(--cx-d-accent);
}

.cx-download-sidebar__item.is-active > a {
	background: var(--cx-d-accent);
	color: #fff;
	font-weight: 600;
}

.cx-download-empty {
	margin: 0;
	padding: 32px 20px;
	text-align: center;
	background: #fff5f0;
	border-radius: 8px;
	color: var(--cx-d-muted);
}

.cx-download-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.cx-download-card {
	display: grid;
	grid-template-columns: 72px minmax(0, 1fr) auto;
	gap: 20px;
	align-items: center;
	padding: 18px 20px;
	background: #fff;
	border: 1px solid var(--cx-d-border);
	border-radius: 10px;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.cx-download-card:hover {
	border-color: #f0c4b4;
	box-shadow: 0 6px 20px rgba(26, 35, 50, 0.06);
}

.cx-download-card__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 72px;
	height: 72px;
	border-radius: 10px;
	background: #f8fafc;
	overflow: hidden;
	flex-shrink: 0;
}

.cx-download-card__thumb-img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.cx-download-card__ext {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 48px;
	padding: 6px 8px;
	border-radius: 6px;
	background: #1a2332;
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.04em;
}

.cx-download-card__title {
	margin: 0 0 6px;
	font-size: 1.05rem;
	font-weight: 700;
	line-height: 1.35;
	color: #1a1a1a;
}

.cx-download-card__excerpt {
	margin: 0 0 6px;
	font-size: 0.92rem;
	line-height: 1.55;
	color: var(--cx-d-muted);
}

.cx-download-card__meta {
	margin: 0;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.02em;
	color: #8892a0;
	text-transform: uppercase;
}

.cx-download-card__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 12px 22px;
	border-radius: 8px;
	background: var(--cx-d-accent);
	color: #fff !important;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
	border: none;
	transition: background 0.15s ease;
}

.cx-download-card__btn:hover {
	background: #cf3f0a;
	color: #fff !important;
}

.cx-download-card__btn--disabled {
	background: #c5c9d1;
	cursor: not-allowed;
}

.cx-download-pagination {
	margin-top: 28px;
}

.cx-download-pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: center;
}

@media (max-width: 900px) {
	.cx-download-layout {
		grid-template-columns: 1fr;
	}

	.cx-download-sidebar {
		position: static;
	}
}

@media (max-width: 640px) {
	.cx-download-card {
		grid-template-columns: 56px minmax(0, 1fr);
		gap: 14px;
	}

	.cx-download-card__icon {
		width: 56px;
		height: 56px;
	}

	.cx-download-card__action {
		grid-column: 1 / -1;
	}

	.cx-download-card__btn {
		width: 100%;
	}
}
