/* 蜻学资料库 V2：蜻蜓云平台式筛选与一键直下列表 */
.qx-cloud-library {
	max-width: 1200px;
	margin: 24px auto;
	padding: 0 16px;
	box-sizing: border-box;
	font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
	color: #1e293b;
}
.qx-cloud-header {
	background: linear-gradient(135deg, #eff6ff 0%, #f8fafc 100%);
	border: 1px solid #dbeafe;
	border-radius: 12px;
	padding: 22px 24px;
	margin-bottom: 16px;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}
.qx-cloud-header h1,
.qx-cloud-header h2 {
	margin: 0 0 4px;
	font-size: 22px;
	font-weight: 700;
	color: #0f172a;
}
.qx-cloud-header p {
	margin: 0;
	font-size: 14px;
	color: #64748b;
}
.qx-cloud-search {
	display: flex;
	gap: 8px;
	min-width: 280px;
	flex: 0 1 380px;
}
.qx-cloud-search input[type="search"],
.qx-cloud-search input[type="text"] {
	flex: 1;
	height: 38px;
	padding: 0 14px;
	border: 1px solid #cbd5e1;
	border-radius: 8px;
	font-size: 14px;
	background: #fff;
}
.qx-cloud-search button,
.qx-cloud-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 36px;
	padding: 0 16px;
	border-radius: 8px;
	border: none;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	text-decoration: none !important;
	transition: all 0.15s ease;
	white-space: nowrap;
}
.qx-cloud-btn-primary,
.qx-cloud-search button {
	background: #2563eb;
	color: #fff !important;
}
.qx-cloud-btn-primary:hover,
.qx-cloud-search button:hover {
	background: #1d4ed8;
	color: #fff !important;
}
.qx-cloud-btn-vip {
	background: #f59e0b;
	color: #fff !important;
}
.qx-cloud-btn-vip:hover {
	background: #d97706;
}
.qx-cloud-btn-outline {
	background: #fff;
	color: #334155 !important;
	border: 1px solid #cbd5e1;
}
.qx-cloud-btn-outline:hover {
	border-color: #2563eb;
	color: #2563eb !important;
}
.qx-cloud-filters {
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	padding: 14px 20px;
	margin-bottom: 16px;
}
.qx-filter-row {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 8px 0;
	border-bottom: 1px dashed #f1f5f9;
}
.qx-filter-row:last-child {
	border-bottom: none;
}
.qx-filter-label {
	flex: 0 0 72px;
	white-space: nowrap;
	font-size: 13px;
	font-weight: 600;
	color: #64748b;
	line-height: 28px;
}
.qx-filter-pills {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	flex: 1;
}
.qx-filter-pill {
	display: inline-block;
	padding: 4px 12px;
	font-size: 13px;
	line-height: 20px;
	color: #334155 !important;
	background: #f8fafc;
	border-radius: 6px;
	text-decoration: none !important;
	transition: all 0.15s;
}
.qx-filter-pill:hover {
	background: #eff6ff;
	color: #2563eb !important;
}
.qx-filter-pill.is-active {
	background: #2563eb;
	color: #fff !important;
	font-weight: 600;
}
.qx-cloud-list {
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	overflow: hidden;
}
.qx-cloud-item {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 16px 20px;
	border-bottom: 1px solid #f1f5f9;
	transition: background 0.15s;
}
.qx-cloud-item:last-child {
	border-bottom: none;
}
.qx-cloud-item:hover {
	background: #f8fafc;
}
.qx-ext-badge {
	flex: 0 0 48px;
	height: 48px;
	border-radius: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.5px;
	color: #fff;
}
.qx-ext-pdf { background: #ef4444; }
.qx-ext-doc, .qx-ext-docx { background: #2563eb; }
.qx-ext-xls, .qx-ext-xlsx { background: #16a34a; }
.qx-ext-ppt, .qx-ext-pptx { background: #ea580c; }
.qx-ext-zip, .qx-ext-rar { background: #7c3aed; }
.qx-ext-png, .qx-ext-jpg, .qx-ext-jpeg { background: #0891b2; }
.qx-ext-file { background: #475569; }

.qx-cloud-main {
	flex: 1;
	min-width: 0;
}
.qx-cloud-title {
	margin: 0 0 6px;
	font-size: 16px;
	font-weight: 600;
	color: #0f172a;
	line-height: 1.4;
	word-break: break-word;
}
.qx-cloud-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	font-size: 12px;
	color: #64748b;
}
.qx-cloud-tag {
	background: #f1f5f9;
	color: #475569;
	padding: 2px 8px;
	border-radius: 4px;
}
.qx-cloud-cat {
	background: #eff6ff;
	color: #1d4ed8;
	padding: 2px 8px;
	border-radius: 4px;
	font-weight: 500;
}
.qx-cloud-right {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-shrink: 0;
}
.qx-right-badge {
	font-size: 12px;
	padding: 3px 9px;
	border-radius: 99px;
	font-weight: 600;
}
.qx-right-free { background: #dcfce7; color: #15803d; }
.qx-right-vip { background: #fef3c7; color: #b45309; }
.qx-right-paid { background: #fee2e2; color: #b91c1c; }
.qx-right-login { background: #e0f2fe; color: #0369a1; }

.qx-cloud-empty {
	padding: 48px 20px;
	text-align: center;
	color: #64748b;
	font-size: 15px;
}
.qx-cloud-pager {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 10px;
	margin-top: 18px;
}
.qx-credit-modal-backdrop {
	position: fixed;
	inset: 0;
	z-index: 99999;
	background: rgba(15, 23, 42, 0.52);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	box-sizing: border-box;
}
.qx-credit-modal-backdrop[hidden] {
	display: none !important;
}
.qx-credit-modal-card {
	width: 100%;
	max-width: 440px;
	background: #fff;
	border-radius: 14px;
	padding: 22px 24px;
	box-shadow: 0 20px 45px rgba(15, 23, 42, 0.24);
	box-sizing: border-box;
}
@media (max-width: 768px) {
	.qx-cloud-item {
		flex-wrap: wrap;
		padding: 14px 16px;
	}
	.qx-cloud-right {
		width: 100%;
		justify-content: space-between;
		padding-top: 8px;
		border-top: 1px dashed #f1f5f9;
	}
	.qx-cloud-search {
		flex: 1 1 100%;
	}
}
