/* ================= 分类 ================= */

.category-box {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-bottom: 12px;
}


/* a 作为点击区域 */

.category-box a {
	flex: 1 1 140px;
	text-decoration: none;
	color: inherit;
}


/* 卡片 */

.category-item {
	background: #f5f5f7;
	border-radius: 10px;
	padding: 10px;
	text-align: center;
	border: 1px solid #e5e7eb;
	transition: .15s;
	font-size: 0.9rem;
}


/* hover（作用在a） */

.category-box a:hover .category-item {
	background: #eef6f1;
    border-color: #d7e9df;
}


/* active */

.category-item.active {
	background: #338c56;
	color: #fff;
	border-color: #338c56;
}

.category-item.active:hover {
	color: #338c56;
}


/* ================= 子筛选 ================= */

.sub-filter {
	margin-bottom: 18px;
}


/* a */

.sub-filter a {
	display: inline-block;
	padding: 5px 12px;
	margin-right: 6px;
	border-radius: 20px;
	background: #f5f5f7;
	border: 1px solid #e5e7eb;
	color: #555;
	font-size: 12px;
	text-decoration: none;
	transition: .15s;
	cursor: pointer;
}


/* hover */
.sub-filter a:hover {
    background-color: #eef6f1;
    border-color: #d7e9df;
}


/* active */

.sub-filter a.active {
	background: #338c56;
	border-color: #338c56;
	color: #fff;
}


/* ⭐ 兼容 CMS 自动加的 <b> */

.sub-filter a b {
	font-weight: normal;
}

.sub-filter a.active b {
	color: #fff;
}


/* ================= 卡片点击 ================= */

.doc-link {
	display: block;
	text-decoration: none;
	color: inherit;
}


/* ================= 卡片 ================= */

.doc-card {
	background: #f5f5f7;
	border-radius: 12px;
	border: 1px solid #e5e7eb;
	overflow: hidden;
	transition: .2s;
}

.doc-link:hover .doc-card {
	border-color: #d1d5db;
}


/* ================= 图片 ================= */

.doc-img-wrap {
	position: relative;
	overflow: hidden;
}

.doc-img {
	height: 180px;
	background-size: cover;
	background-position: center;
	transition: transform .3s ease;
}

.doc-link:hover .doc-img {
	transform: scale(1.04);
}


/* ================= 标签（支持多个） ================= */

.doc-tags {
	position: absolute;
	top: 10px;
	left: 10px;
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	z-index: 3;
	max-width: 80%;
}

.doc-tag {
	padding: 4px 10px;
	font-size: 11px;
	border-radius: 20px;
	color: #fff;
	white-space: nowrap;
}


/* 类型颜色 */

.tag-manual {
	background: #3b82f6;
}

.tag-datasheet {
	background: #8b5cf6;
}

.tag-brochure {
	background: #f59e0b;
}

.tag-software {
	background: #10b981;
}

.tag-video {
	background: #ef4444;
}


/* ================= 内容 ================= */

.doc-body {
	padding: 14px;
}

.doc-title {
	font-weight: 600;
	line-height: 1.4;
	height: 40px;
	overflow: hidden;
	color: #1d1d1d;
}

.doc-meta {
	font-size: 12px;
	color: #777;
	display: flex;
	justify-content: space-between;
	margin-top: 6px;
}

.doc-meta-bottom {
	font-size: 12px;
	color: #999;
	display: flex;
	justify-content: space-between;
	margin-top: 6px;
}


/* ================= 权限 ================= */


/*.status-public{color:#16a34a;}*/


/*.status-members{color:#2563eb;}*/


/*.status-admin{color:#dc2626;}*/

.card {
	border: 1px solid #f0f0f0;
	border-radius: 14px;
	background: #f5f6f7;
	box-shadow: none;
}

.document_title {
	font-size: 20px;
	color: #1d1d1d;
	font-weight: 600;
}

.subtext {
	font-size: 13px;
	color: #8c8f94;
}
.subtext_right {
	font-size: 13px;
	color: #8c8f94;
	position: absolute;
	right: 10px;
}


.badge {
	font-size: 12px;
	padding: 4px 8px;
	border-radius: 6px;
}

.badge-dark {
	background: #2f3a45;
	color: #fff;
}

.rating {
	background: #fff3cd;
	color: #856404;
	padding: 4px 8px;
	border-radius: 8px;
	font-size: 13px;
}

.divider {
	height: 1px;
	background: #eee;
	margin: 18px 0;
}

.meta {
	text-align: center;
}

.meta .label {
	font-size: 12px;
	color: #9aa0a6;
}

.meta .value {
	font-weight: 600;
	margin-top: 4px;
}

.sidebar {
	position: sticky;
	top: 80px;
}

@media (max-width: 991px) {
	.sidebar {
		position: static;
	}
}

.download-item {
	border: 1px solid #e6e8eb;
	border-radius: 10px;
	padding: 10px 12px;
	margin-bottom: 10px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	transition: background .15s ease;
	border-color: #e6e8eb;
	position: relative;
}

.download-item:hover {
	background: #eef6f1;
	border-color: #d7e9df;
}

.download-left {
	display: flex;
	align-items: center;
	gap: 10px;
}

.download-icon {
	font-size: 18px;
	color: #0c1b2a;
}

.download-title {
	font-size: 14px;
	font-weight: 500;
}

.download-size {
	font-size: 12px;
	color: #8c8f94;
}

.kv-row {
	font-size: 14px;
	margin-bottom: 8px;
}

.kv-row .key {
	color: #8c8f94;
}

.kv-row .val {
	text-align: right;
	font-weight: 500;
}

.version-item {
	display: flex;
	justify-content: space-between;
	font-size: 13px;
	padding: 6px 0;
	border-bottom: 1px dashed #eee;
}

.version-item:last-child {
	border-bottom: none;
}

.w-48 {
	width: 48%;
}

.btn-light {
	border: 1px solid #e6e8eb;
	border-radius: 10px;
	transition: background .15s ease;
	color: #2b2f33;
	background: #fff;
}

.btn-light:hover {
	background: #eef6f1;
	border-color: #d7e9df;
	color: #338c56;
}


/* 统一下载项与按钮交互动效 */

.download-item,
.btn-light {
	transition: all .2s ease;
}

.btn.btn-light.btn-sm.w-100 {
	font-size: 14px;
}

.btn.btn-light.btn-sm.w-100:hover {
	font-weight: 400;
}

.card.p-3 a {
	color: #1d1d1d;
}
/*视频按钮*/
.plyr--video{
		border-radius: 12px;
	}
	.player-box iframe {
      width: 100%;
      aspect-ratio: 16 / 9;
      border-radius: 12px;
      border: 1px solid #ffffff;
	}