/* ============================================================
   应用市场（/mall/index.html）样式
   ——————————————————————————————————————————————
   2026-09 重构：统一到站点视觉
   ============================================================ */

/* ---------------- 顶部横幅 ---------------- */
.mall-page .act-banner {
	position: relative;
	display: flex;
	align-items: center;
	min-height: 400px;
	background: #fff url(img/act_banner.jpg) no-repeat center;
	background-size: cover;
}
.mall-page .main-title {
	margin: 0 0 16px;
	font-size: inherit;
	font-weight: normal;
	line-height: inherit;
}
.mall-page .main-title h1 {
	margin: 0;
	font-size: 38px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: -.5px;
	color: #101828;
}
.mall-page .main-title-desc {
	margin: 0;
	max-width: 640px;
	font-size: 16px;
	line-height: 1.9;
	color: #4b5563;
}
.mall-page .activity-banner .act-btn {
	display: block;
	width: 188px;
	height: 43px;
	margin: 0 auto 80px;
	border: 1px solid #fff;
	border-radius: 4px;
	line-height: 43px;
	text-align: center;
	font-size: 16px;
	color: #fff;
}
.mall-page .activity-banner .act-btn:hover {
	background: #fff;
	color: #0055ff;
}

/* ---------------- 分类 tab ---------------- */
.mall-page .main-area {
	background: #fff;
	border-bottom: 1px solid #e5e9ef;
}
.mall-page .main-tabs {
	display: flex;
	flex-wrap: wrap;
	padding: 14px 0;
}
.mall-page .tab-item {
	margin: 0 8px 8px 0;
	padding: 7px 18px;
	border: 1px solid #e5e9ef;
	border-radius: 20px;
	background: #fff;
	font-size: 14px;
	line-height: 1.7;
	color: #4b5563;
	text-decoration: none;
	cursor: pointer;
	transition: color .2s ease, border-color .2s ease, background-color .2s ease;
}
.mall-page .tab-item:hover {
	border-color: #bfd7ff;
	color: #0055ff;
	text-decoration: none;
}
.mall-page .tab-item.tab-active {
	border-color: #0055ff;
	background: #eef4ff;
	color: #0055ff;
	font-weight: 600;
}

/* ---------------- 商城主容器 ---------------- */
.mall-page .zonkvm-market {
	padding: 32px 0 64px;
	background: #f7f9fc;
	font-family: inherit;
}

/* ---------------- 工具栏（搜索 + 排序） ---------------- */
.mall-page .market-toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 20px;
	padding: 14px 18px;
	background: #fff;
	border: 1px solid #e5e9ef;
	border-radius: 8px;
}
.mall-page .search-form {
	display: block;
	margin: 0;
}
.mall-page .search-box {
	position: relative;
	display: flex;
	align-items: center;
	width: 300px;
}
.mall-page .search-icon {
	position: absolute;
	left: 13px;
	z-index: 1;
	color: #9ca3af;
	font-size: 13px;
	pointer-events: none;
}
.mall-page .search-input {
	width: 100%;
	height: 38px;
	padding: 0 50px 0 34px;
	border: 1px solid #e5e9ef;
	border-radius: 6px;
	background: #fff;
	font-size: 13.5px;
	color: #101828;
	transition: border-color .2s ease, box-shadow .2s ease;
}
.mall-page .search-input::placeholder {
	color: #b0b7c3;
}
.mall-page .search-input:focus {
	outline: 0;
	border-color: #bfd7ff;
	box-shadow: 0 0 0 3px rgba(0, 85, 255, .08);
}
.mall-page .search-btn {
	position: absolute;
	right: 0;
	width: 42px;
	height: 38px;
	border: 0;
	border-left: 1px solid #e5e9ef;
	border-radius: 0 6px 6px 0;
	background: #0055ff;
	color: #fff;
	font-size: 13px;
	cursor: pointer;
	transition: background-color .2s ease;
}
.mall-page .search-btn:hover {
	background: #0044cc;
}

.mall-page .sort-group {
	display: flex;
	flex-wrap: wrap;
}
.mall-page .sort-item {
	display: inline-flex;
	align-items: center;
	margin-left: 8px;
	padding: 7px 14px;
	border: 1px solid #e5e9ef;
	border-radius: 6px;
	background: #fff;
	font-size: 13.5px;
	color: #4b5563;
	text-decoration: none;
	transition: color .2s ease, border-color .2s ease, background-color .2s ease;
}
.mall-page .sort-item:first-child {
	margin-left: 0;
}
.mall-page .sort-item:hover {
	border-color: #bfd7ff;
	color: #0055ff;
	text-decoration: none;
}
.mall-page .sort-item.active {
	border-color: #0055ff;
	background: #eef4ff;
	color: #0055ff;
	font-weight: 600;
}

/* ---------------- 统计 ---------------- */
.mall-page .market-stats {
	margin-bottom: 16px;
}
.mall-page .market-stats h5 {
	margin: 0;
	font-size: 14px;
	font-weight: 400;
	color: #6b7280;
}
.mall-page .market-stats .ms-count {
	margin: 0 3px;
	font-size: 16px;
	font-weight: 700;
	color: #0055ff;
}

/* ---------------- 列表栅格 ---------------- */
.mall-page .app-list {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 18px;
}
@media (min-width: 576px) {
	.mall-page .app-list { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 992px) {
	.mall-page .app-list { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 1200px) {
	.mall-page .app-list { grid-template-columns: repeat(5, 1fr); }
}

/* ---------------- 卡片 ---------------- */
.mall-page .app-card-wrap {
	display: flex;
}
.mall-page .app-card {
	display: flex;
	flex-direction: column;
	width: 100%;
	height: 100%;
	background: #fff;
	border: 1px solid #e5e9ef;
	border-radius: 10px;
	overflow: hidden;
	transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}
.mall-page .app-card:hover {
	border-color: #bfd7ff;
	box-shadow: 0 12px 28px -12px rgba(16, 24, 40, .22);
	transform: translateY(-3px);
}

/* 封面 */
.mall-page .app-cover {
	position: relative;
	height: 170px;
	background: #f7f9fc;
	border-bottom: 1px solid #eef1f5;
	overflow: hidden;
}
.mall-page .app-cover a {
	display: block;
	height: 100%;
}
.mall-page .app-cover img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .3s ease;
}
.mall-page .app-card:hover .app-cover img {
	transform: scale(1.04);
}

/* 官方 / 第三方 标签 */
.mall-page .app-tag {
	position: absolute;
	left: 10px;
	top: 10px;
	padding: 2px 8px;
	border-radius: 4px;
	font-size: 11px;
	font-weight: 600;
	line-height: 1.7;
}
.mall-page .tag-official {
	border: 1px solid #cfe0ff;
	background: #eef4ff;
	color: #0055ff;
}
.mall-page .tag-third {
	border: 1px solid #e5e9ef;
	background: #fff;
	color: #6b7280;
}

/* 卡片内容 */
.mall-page .app-body {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	padding: 14px 14px 16px;
}
.mall-page .app-header {
	display: flex;
	align-items: center;
	margin-bottom: 8px;
}
.mall-page .app-title {
	margin: 0;
	min-width: 0;
	font-size: 14.5px;
	font-weight: 600;
	line-height: 1.5;
	color: #101828;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.mall-page .app-score {
	display: inline-flex;
	align-items: center;
	flex: none;
	font-size: 12px;
	color: #9ca3af;
}
.mall-page .app-score i {
	margin-right: 4px;
}
.mall-page .app-score span {
	margin-left: 0;
	color: #9ca3af;
}

/* 作者 */
.mall-page .app-author {
	display: flex;
	align-items: center;
	margin-bottom: 12px;
	font-size: 12px;
	color: #9ca3af;
}
.mall-page .app-author i {
	margin-right: 5px;
	color: #b0b7c3;
}
.mall-page .badge-enterprise {
	margin-left: 6px;
	padding: 1px 6px;
	border: 1px solid #cfe0ff;
	border-radius: 4px;
	background: #eef4ff;
	color: #0055ff;
	font-size: 11px;
	font-weight: 600;
}

/* 价格 */
.mall-page .app-price-group {
	display: flex;
	margin-bottom: 12px;
}
.mall-page .price-item {
	flex: 1 1 0;
	padding: 7px 6px;
	border: 1px solid #eef1f5;
	border-radius: 6px;
	background: #f7f9fc;
	text-align: center;
}
.mall-page .price-item + .price-item {
	margin-left: 8px;
}
.mall-page .price-tag {
	display: block;
	margin-bottom: 2px;
	font-size: 11px;
	color: #6b7280;
}
.mall-page .price {
	margin: 0;
	font-size: 14px;
	font-weight: 700;
	color: #e5484d;
}
.mall-page .price small {
	margin-left: 1px;
	font-size: 11px;
	font-weight: 400;
	color: #9ca3af;
}
.mall-page .price .promo-origin {
	margin-left: 5px;
	font-size: .82em;
	font-weight: 400;
	color: #98a2b3;
	text-decoration: line-through;
}

/* 详情按钮 */
.mall-page .app-detail-btn {
	display: block;
	margin-top: auto;
	padding: 8px 0;
	border: 1px solid #0055ff;
	border-radius: 6px;
	background: #0055ff;
	font-size: 13.5px;
	font-weight: 600;
	color: #fff;
	text-align: center;
	text-decoration: none;
	transition: background-color .2s ease, border-color .2s ease;
}
.mall-page .app-detail-btn:hover {
	border-color: #0044cc;
	background: #0044cc;
	color: #fff;
	text-decoration: none;
}

/* ---------------- 空状态 ---------------- */
.mall-page .empty-state {
	grid-column: 1 / -1;
	padding: 64px 20px;
	background: #fff;
	border: 1px solid #e5e9ef;
	border-radius: 10px;
	text-align: center;
}
.mall-page .empty-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 66px;
	height: 66px;
	margin: 0 auto 16px;
	border-radius: 50%;
	background: #f7f9fc;
	font-size: 26px;
	color: #d5dbe5;
}
.mall-page .empty-state h4 {
	margin: 0 0 8px;
	font-size: 16px;
	font-weight: 600;
	color: #101828;
}
.mall-page .empty-state p {
	margin: 0 0 18px;
	font-size: 13.5px;
	color: #9ca3af;
}
.mall-page .empty-state .btn-primary {
	display: inline-block;
	padding: 8px 20px;
	border-radius: 6px;
	background: #0055ff;
	font-size: 13.5px;
	font-weight: 600;
	color: #fff;
	text-decoration: none;
}
.mall-page .empty-state .btn-primary:hover {
	background: #0044cc;
	color: #fff;
	text-decoration: none;
}

/* ---------------- 分页 ---------------- */
.mall-page .market-pagination {
	margin-top: 30px;
	text-align: center;
}
.mall-page .market-pagination .pagination {
	display: inline-flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 6px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.mall-page .market-pagination .pagination li {
	margin: 0;
	list-style: none;
}
.mall-page .market-pagination .pagination li a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 36px;
	height: 36px;
	padding: 0 12px;
	border: 1px solid #e5e9ef;
	border-radius: 6px;
	background: #fff;
	font-size: 13.5px;
	color: #4b5563;
	text-decoration: none;
	transition: border-color .2s ease, color .2s ease;
}
.mall-page .market-pagination .pagination li a:hover {
	border-color: #bfd7ff;
	color: #0055ff;
	text-decoration: none;
}
.mall-page .market-pagination .pagination li.active a {
	border-color: #0055ff;
	background: #0055ff;
	color: #fff;
	font-weight: 600;
}

/* ---------------- 响应式 ---------------- */
@media (max-width: 991px) {
	.mall-page .main-title h1 { font-size: 30px; }
}
@media (max-width: 767px) {
	.mall-page .act-banner { min-height: 260px; }
	.mall-page .main-title h1 { font-size: 24px; }
	.mall-page .main-title-desc { font-size: 14px; }
	.mall-page .zonkvm-market { padding: 20px 0 44px; }
	.mall-page .market-toolbar { display: block; }
	.mall-page .search-box { width: 100%; }
	.mall-page .sort-group { margin-top: 12px; }
	.mall-page .sort-item { margin: 0 8px 8px 0; padding: 6px 12px; font-size: 13px; }
	.mall-page .sort-item:first-child { margin-left: 0; }
	.mall-page .app-list { gap: 14px; }
	.mall-page .app-cover { height: 150px; }
}

.zonkvm-mall-details {
    --primary: #007bff;
    --gray-100: #f8f9fa;
}
.zonkvm-mall-details .py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.zonkvm-mall-details .p-6 { padding: 1.5rem; }
.zonkvm-mall-details .mb-12 { margin-bottom: 3rem; }
.zonkvm-mall-details .mt-10 { margin-top: 2.5rem; }
.zonkvm-mall-details .hover-shadow-lg:hover { box-shadow: 0 1rem 3rem rgba(0,0,0,.175)!important; }
.zonkvm-mall-details .hover-translate-y-n1:hover { transform: translateY(-4px); }
.zonkvm-mall-details .transition-all { transition: all .3s; }
.zonkvm-mall-details .bg-primary\/5 { background-color: rgba(0,123,255,.05); }
.zonkvm-mall-details .bg-primary\/10 { background-color: rgba(0,123,255,.1); }
.zonkvm-mall-details .text-primary { color: #007bff!important; }
.zonkvm-mall-details .text-blue { color: #007bff!important; }
.zonkvm-mall-details .text-green { color: #28a745!important; }
.zonkvm-mall-details .text-yellow { color: #ffc107!important; }
.zonkvm-mall-details .text-red { color: #dc3545!important; }
.zonkvm-mall-details .btn-orange { background-color: #fd7e14; border-color: #fd7e14; }
.zonkvm-mall-details .btn-orange:hover { background-color: #e67005; border-color: #e67005; }
.zonkvm-mall-details .package-card { border: 1px solid #dee2e6; }
.zonkvm-mall-details .w-12 { width: 3rem!important; height: 3rem!important; }
