.qsv-sidebar-inner,
.qsv-hero,
.qsv-notice,
.qsv-card,
.qsv-empty,
.qsv-sidebar-toggle,
.qsv-btn-buy,
.qsv-soldout,
.qsv-config-nav {
	border-radius: 0 !important;
}

/* 顶部导航栏 */
.qsv-config-nav {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	height: 50px;
	background: #ffffff;
	border-bottom: 1px solid #d9dee8;
	z-index: 999;
}

.qsv-config-nav-inner {
	height: 100%;
	max-width: 100%;
	padding: 0 20px;
	display: flex;
	align-items: center;
}

.qsv-config-nav-back {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	color: #6b7685;
	font-size: 13px;
	text-decoration: none;
	min-width: 56px;
	margin-right: 18px;
	transition: color 0.15s;
}

.qsv-config-nav-back:hover {
	color: #1f62e8;
	text-decoration: none;
}

.qsv-config-nav-title {
	font-size: 16px;
	font-weight: 600;
	color: #243144;
	margin: 0;
	flex: 1;
	display: flex;
	align-items: center;
	gap: 12px;
	overflow: hidden;
	white-space: nowrap;
}

.qsv-page {
	position: relative;
	min-height: 100vh;
	background: #f7f7f9;
	padding: 58px 12px 16px;
	display: flex;
}

.qsv-sidebar {
	position: fixed;
	left: 12px;
	top: 58px;
	bottom: 12px;
	width: 260px;
	z-index: 100;
}

.qsv-sidebar-inner {
	height: 100%;
	background: #ffffff;
	border: 1px solid #d4d6d9;
	box-shadow: 0 6px 16px rgba(23, 38, 70, 0.08);
	border-radius: 0;
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

.qsv-sidebar-title {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 10px 12px;
	font-size: 14px;
	font-weight: 700;
	color: #2b3d56;
	border-bottom: 1px solid #e6e9ef;
	background: #f7f8fb;
}

.qsv-sidebar-title button {
	display: none;
	height: 26px;
	padding: 0 8px;
	border: 1px solid #d7deeb;
	background: #fff;
	font-size: 12px;
	color: #607086;
	cursor: pointer;
}

.qsv-prolist {
	flex: 1;
	overflow: auto;
	background: #fff;
}

.qsv-category-item {
	border-bottom: 1px solid #eef1f6;
}

.qsv-first-level {
	height: 42px;
	padding: 0 12px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	font-size: 13px;
	font-weight: 600;
	color: #3f526d;
	cursor: pointer;
	border-left: 3px solid transparent;
	transition: all 0.2s ease;
}

.qsv-first-level:hover,
.qsv-first-level.is-active {
	background: #f3f7ff;
	color: #2f64ef;
	border-left-color: #2f64ef;
}

.qsv-arrow {
	width: 8px;
	height: 8px;
	border-right: 2px solid #98a5b7;
	border-bottom: 2px solid #98a5b7;
	transform: rotate(-45deg);
	transition: transform 0.2s ease;
}

.qsv-category-item.is-open .qsv-arrow {
	transform: rotate(45deg);
	margin-top: -3px;
}

.qsv-submenu {
	background: #fff;
	overflow: hidden;
	max-height: 0;
	opacity: 0;
	transition: max-height 0.24s ease, opacity 0.2s ease;
}

.qsv-category-item.is-open .qsv-submenu {
	opacity: 1;
}

.qsv-submenu-item {
	display: block;
	height: 40px;
	line-height: 40px;
	padding: 0 14px 0 26px;
	font-size: 13px;
	color: #5a6e8c;
	text-decoration: none;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	border-left: 3px solid transparent;
	transition: all 0.2s ease;
}

.qsv-submenu-item:hover {
	text-decoration: none;
	color: #2f64ef;
	background: #edf4ff;
	border-left-color: #b8caf6;
}

.qsv-submenu-item.is-active {
	color: #fff;
	font-weight: 600;
	background: linear-gradient(90deg, #2f64ef 0%, #3b7af2 100%);
	border-left-color: #2f64ef;
}

.qsv-main {
	margin-left: 270px;
	width: calc(100% - 270px);
	padding-left: 12px;
	min-height: calc(100vh - 16px);
}

.qsv-main-config {
	padding-right: 12px;
}

.qsv-config-page .qiucart-summary-dock {
	left: 294px;
	right: 12px;
}

.qsv-hero {
	position: relative;
	overflow: hidden;
	padding: 20px 24px;
	margin-bottom: 10px;
	border-radius: 0;
	background: linear-gradient(140deg, #1f63f0 0%, #256fef 48%, #3b8df4 100%);
	color: #fff;
	box-shadow: 0 12px 28px rgba(31, 99, 240, 0.2);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
}

.qsv-hero:before,
.qsv-hero:after {
	content: "";
	position: absolute;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.12);
}

.qsv-hero:before {
	width: 180px;
	height: 180px;
	top: -95px;
	right: -55px;
}

.qsv-hero:after {
	width: 120px;
	height: 120px;
	bottom: -62px;
	left: -30px;
}

.qsv-hero-title {
	position: relative;
	z-index: 1;
	font-size: 22px;
	font-weight: 700;
	line-height: 1.3;
	word-break: break-word;
}

.qsv-hero-main {
	position: relative;
	z-index: 1;
	min-width: 0;
}

.qsv-hero-subtitle {
	position: relative;
	z-index: 1;
	margin-top: 8px;
	font-size: 13px;
	line-height: 1.5;
	color: rgba(255, 255, 255, 0.9);
	word-break: break-word;
}

.qsv-hero-actions {
	position: relative;
	z-index: 1;
	flex: 0 0 auto;
}

.qsv-console-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 36px;
	padding: 0 16px;
	border: 1px solid rgba(255, 255, 255, 0.58);
	background: rgba(255, 255, 255, 0.14);
	color: #ffffff;
	font-size: 13px;
	font-weight: 700;
	text-decoration: none;
	border-radius: 0;
	white-space: nowrap;
}

.qsv-console-btn:hover {
	text-decoration: none;
	color: #1f63f0;
	background: #ffffff;
	border-color: #ffffff;
}

.qsv-notice {
	border: 1px solid #d5e7ff;
	padding: 10px 12px;
	margin-bottom: 10px;
	font-size: 13px;
	border-radius: 0;
}

.qsv-notice-blue {
	background: #d5e7ff;
	color: #002da0;
}

.qsv-notice-blue a {
	color: #174fc4;
	font-weight: 600;
}

.qsv-grid {
	display: grid;
	gap: 12px;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.qsv-card {
	border: 1px solid #d4d6d9;
	border-radius: 0;
	box-shadow: 0 5px 18px rgba(230, 233, 249, 0.25);
	height: 100%;
}

.qsv-card .el-card__body {
	padding: 0;
	height: 100%;
	display: flex;
	flex-direction: column;
}

.qsv-card-head {
	background: #f7f7f9;
	padding: 12px;
	border-bottom: 1px solid #eceef2;
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 8px;
}

.qsv-card-head h5 {
	margin: 0;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.4;
	word-break: break-word;
}

.qsv-stock {
	margin: 0;
	font-size: 12px;
	color: #9aa4b3;
	white-space: nowrap;
}

.qsv-stock.warn {
	color: #f0b000;
}

.qsv-stock.danger {
	color: #f87878;
}

.qsv-card-body {
	padding: 12px 12px 12px 20px;
	flex: 1;
}

.qsv-card-desc {
	word-break: break-word;
	padding-right: 8px;
	overflow-x: auto;
}

.qsv-card-desc img,
.qsv-card-desc video,
.qsv-card-desc iframe,
.qsv-card-desc table {
	max-width: 100%;
}

.qsv-card-desc img,
.qsv-card-desc video,
.qsv-card-desc iframe {
	height: auto;
}

.qsv-card-foot {
	padding: 8px 12px 0;
	border-top: 1px solid #f0f1f4;
	background: #fff;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.qsv-price-main {
	display: flex;
	align-items: baseline;
	gap: 3px;
	color: #ff4d4f;
	flex-wrap: wrap;
}

.qsv-price-main .currency {
	font-size: 14px;
}

.qsv-price-main .amount {
	font-size: 24px;
	font-weight: 700;
}

.qsv-price-main .period {
	font-size: 13px;
	color: #8a96a7;
}

.qsv-price-main .daily {
	font-size: 12px;
	color: #8b97a7;
}

.qsv-price-trial,
.qsv-price-origin {
	font-size: 12px;
	color: #8c96a5;
}

.qsv-price-origin {
	display: flex;
	align-items: center;
	gap: 6px;
	flex-wrap: wrap;
}

.qsv-price-origin.is-hidden {
	display: none;
}

.qsv-price-origin .qsv-origin-strike {
	color: #9ca5b3;
	text-decoration: line-through;
}

.qsv-price-origin .el-tag {
	margin-left: 4px;
	vertical-align: middle;
	padding: 0 8px;
	height: 14px;
	line-height: 14px;
	border-radius: 2px;
	font-size: 11px;
	letter-spacing: 1px;
}

.qsv-btn-buy,
.qsv-soldout {
	display: block;
	margin: 6px -12px 0;
	padding: 12px;
	font-size: 13px;
	text-align: center;
	text-decoration: none;
}

.qsv-btn-buy {
	background: #2f64ef;
	color: #fff;
}

.qsv-btn-buy:hover {
	color: #fff;
	text-decoration: none;
	background: #2756cc;
}

.qsv-soldout {
	background: #f2f3f5;
	color: #98a2b2;
	cursor: not-allowed;
}

.qsv-pagination-wrap {
	margin-top: 14px;
	display: flex;
	justify-content: center;
}

.qsv-pagination-wrap .pagination {
	margin-bottom: 0;
}

.qsv-empty {
	padding: 56px 0;
	text-align: center;
	color: #7c8796;
	font-size: 14px;
	background: #fff;
	border: 1px solid #d4d6d9;
	border-radius: 0;
}

.qsv-sidebar-overlay {
	display: none;
	position: fixed;
	inset: 0;
	background: rgba(8, 20, 42, 0.45);
	z-index: 98;
}

.qsv-sidebar-overlay.is-open {
	display: block;
}

.qsv-sidebar-toggle {
	display: none;
	position: fixed;
	left: 14px;
	bottom: 14px;
	width: 44px;
	height: 44px;
	min-width: 44px;
	min-height: 44px;
	max-width: 44px;
	max-height: 44px;
	padding: 0;
	border: none;
	border-radius: 50%;
	-webkit-border-radius: 50%;
	background: #2f64ef;
	color: #fff;
	font-size: 18px;
	z-index: 101;
	cursor: pointer;
	box-shadow: 0 8px 18px rgba(47, 100, 239, 0.3);
	overflow: hidden;
	-webkit-appearance: none;
	appearance: none;
	align-items: center;
	justify-content: center;
}

/* Hamburger icon - 3 bars to X animation */
.qsv-hamburger {
	display: block;
	width: 20px;
	height: 16px;
	position: relative;
}

.qsv-hamburger span {
	display: block;
	position: absolute;
	left: 0;
	width: 100%;
	height: 2px;
	background: #fff;
	border-radius: 2px;
	transition: all 0.3s ease;
}

.qsv-hamburger span:nth-child(1) {
	top: 0;
}

.qsv-hamburger span:nth-child(2) {
	top: 50%;
	transform: translateY(-50%);
}

.qsv-hamburger span:nth-child(3) {
	bottom: 0;
}

/* Active state: X */
.qsv-sidebar-toggle.is-active .qsv-hamburger span:nth-child(1) {
	top: 50%;
	transform: translateY(-50%) rotate(45deg);
}

.qsv-sidebar-toggle.is-active .qsv-hamburger span:nth-child(2) {
	opacity: 0;
	transform: translateY(-50%) scaleX(0);
}

.qsv-sidebar-toggle.is-active .qsv-hamburger span:nth-child(3) {
	bottom: auto;
	top: 50%;
	transform: translateY(-50%) rotate(-45deg);
}

@media (max-width: 1199px) {
	.qsv-grid {
		grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	}
}

@media (max-width: 991px) {
	.qsv-page {
		padding: 58px 8px 8px;
	}

	.qsv-sidebar {
		left: 0;
		top: 50px;
		bottom: 0;
		width: 300px;
		max-width: 88vw;
		transform: translateX(-104%);
		transition: transform 0.22s ease;
		z-index: 99;
	}

	.qsv-sidebar.is-open {
		transform: translateX(0);
	}

	.qsv-sidebar-inner {
		border-radius: 0;
	}

	.qsv-sidebar-title button {
		display: inline-flex;
		align-items: center;
		justify-content: center;
	}

	.qsv-main {
		margin-left: 0;
		width: 100%;
		padding-left: 0;
	}

	.qsv-main-config {
		padding-right: 0;
	}

	.qsv-config-page .qiucart-summary-dock {
		left: 8px;
		right: 8px;
	}

	.qsv-sidebar-toggle {
		display: flex !important;
		align-items: center;
		justify-content: center;
		border-radius: 50% !important;
	}
}

@media (max-width: 767px) {
	.qsv-config-nav-inner {
		padding: 0 12px;
	}

	.qsv-config-nav-back {
		margin-right: 12px;
	}

	.qsv-hero {
		padding: 16px;
		flex-direction: column;
		align-items: flex-start;
		gap: 10px;
	}

	.qsv-hero-title {
		font-size: 18px;
	}

	.qsv-hero-subtitle {
		font-size: 12px;
	}

	.qsv-console-btn {
		height: 34px;
		padding: 0 12px;
	}

	.qsv-grid {
		grid-template-columns: 1fr;
	}

	.qsv-card-body {
		padding: 12px 10px 12px 14px;
	}
}
