/* xqdshop — 仿 buy.xqd.cn 视多商城风格 */
:root {
	--xqd-primary: #667eea;
	--xqd-primary-dark: #764ba2;
	--xqd-blue: #1890ff;
	--xqd-teal: #16a085;
	--xqd-orange: #ff4900;
	--xqd-bg: #f2f6fa;
	--xqd-text: #333;
	--xqd-muted: #6b7280;
	--xqd-border: #e8eaed;
	--xqd-radius: 12px;
	--xqd-shadow: 0 4px 20px rgba(22, 186, 170, 0.1);
	--xqd-max: 1300px;
}

* {
	box-sizing: border-box;
}

html, body {
	margin: 0;
	padding: 0;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
	color: var(--xqd-text);
	background: var(--xqd-bg);
	min-height: 100vh;
}

a {
	text-decoration: none;
	color: inherit;
}

.xqd-page {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

/* ========== 导航栏 ========== */
.xqd-navbar {
	position: sticky;
	top: 0;
	z-index: 100;
	background: #fff;
	box-shadow: 0 4px 25px rgba(102, 126, 234, 0.15);
	border-bottom: 1px solid rgba(102, 126, 234, 0.1);
}

.xqd-navbar-inner {
	max-width: var(--xqd-max);
	margin: 0 auto;
	padding: 0 20px;
	height: 70px;
	display: flex;
	align-items: center;
	gap: 24px;
}

.xqd-navbar-logo a {
	display: flex;
	align-items: center;
	line-height: 0;
}

.xqd-navbar-logo img {
	max-width: 180px;
	height: auto;
	object-fit: contain;
}

.xqd-navbar-menu {
	display: flex;
	align-items: center;
	gap: 6px;
	flex: 1;
}

.xqd-nav-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 8px 16px;
	border-radius: 12px;
	color: #4b5563;
	font-size: 13px;
	font-weight: 500;
	transition: all 0.25s ease;
	min-width: 56px;
}

.xqd-nav-item i {
	font-size: 18px;
	margin-bottom: 2px;
}

.xqd-nav-item:hover {
	color: var(--xqd-primary);
	transform: translateY(-2px);
	background: linear-gradient(135deg, rgba(102, 126, 234, 0.08), rgba(118, 75, 162, 0.08));
}

.xqd-nav-item.is-active {
	color: var(--xqd-blue);
	background: linear-gradient(135deg, rgba(102, 126, 234, 0.12), rgba(0, 36, 245, 0.06));
	box-shadow: 0 2px 8px rgba(102, 126, 234, 0.15);
}

.xqd-navbar-aside {
	flex-shrink: 0;
}

.xqd-btn-query {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 10px 20px;
	background: linear-gradient(135deg, var(--xqd-primary), var(--xqd-primary-dark));
	color: #fff;
	border-radius: 999px;
	font-size: 14px;
	font-weight: 500;
	box-shadow: 0 4px 14px rgba(102, 126, 234, 0.35);
	transition: transform 0.2s, box-shadow 0.2s;
}

.xqd-btn-query:hover {
	color: #fff;
	transform: translateY(-1px);
	box-shadow: 0 6px 18px rgba(102, 126, 234, 0.45);
}

/* ========== 主内容区 ========== */
.xqd-main {
	flex: 1;
	max-width: var(--xqd-max);
	width: 100%;
	margin: 0 auto;
	padding: 20px 20px 40px;
}

/* ========== 公告 ========== */
.xqd-announce {
	background: #fff;
	border-radius: var(--xqd-radius);
	box-shadow: var(--xqd-shadow);
	overflow: hidden;
	margin-bottom: 24px;
}

.xqd-announce-head {
	background: linear-gradient(135deg, var(--xqd-primary), var(--xqd-primary-dark));
	color: #fff;
	padding: 16px 24px;
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 18px;
	font-weight: 600;
}

.xqd-announce-head i {
	font-size: 20px;
}

.xqd-announce-body {
	padding: 18px 24px;
	font-size: 14px;
	line-height: 1.8;
	color: #555;
}

.xqd-announce-body strong,
.xqd-announce-body b {
	color: #e53935;
}

/* ========== 分类区块 ========== */
.xqd-categories {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.xqd-cat-section {
	background: #fff;
	border-radius: var(--xqd-radius);
	box-shadow: var(--xqd-shadow);
	overflow: hidden;
}

.xqd-cat-head {
	background: linear-gradient(135deg, #f8f9ff, #fff);
	padding: 14px 20px;
	border-bottom: 1px solid #e1e8f0;
	display: flex;
	align-items: center;
	gap: 10px;
}

.xqd-cat-head i {
	font-size: 18px;
	color: var(--xqd-primary);
}

.xqd-cat-title {
	font-size: 17px;
	font-weight: 600;
	margin: 0;
	flex-shrink: 0;
}

.xqd-cat-line {
	flex: 1;
	height: 2px;
	background: linear-gradient(135deg, var(--xqd-primary), var(--xqd-primary-dark));
	border-radius: 1px;
	margin-left: 12px;
}

.xqd-products {
	padding: 16px 20px;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.xqd-product-row {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 12px 16px;
	background: #fff;
	border: 1px solid var(--xqd-border);
	border-radius: 10px;
	transition: all 0.2s ease;
	position: relative;
	overflow: hidden;
	min-height: 84px;
}

.xqd-product-row::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	width: 3px;
	background: linear-gradient(135deg, var(--xqd-primary), var(--xqd-blue));
	transform: scaleY(0);
	transition: transform 0.2s ease;
}

.xqd-product-row:hover {
	transform: translateY(-1px);
	box-shadow: 0 4px 15px rgba(102, 126, 234, 0.12);
	border-color: var(--xqd-blue);
	background: linear-gradient(135deg, #fafbff, #f0f4ff);
}

.xqd-product-row:hover::before {
	transform: scaleY(1);
}

.xqd-product-thumb {
	flex: 0 0 70px;
	height: 70px;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 2px 8px rgba(102, 126, 234, 0.15);
}

.xqd-product-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.2s;
}

.xqd-product-row:hover .xqd-product-thumb img {
	transform: scale(1.05);
}

.xqd-product-info {
	flex: 1;
	min-width: 0;
}

.xqd-product-name {
	font-size: 15px;
	font-weight: 600;
	color: #1f2937;
	margin: 0 0 6px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.xqd-product-badges {
	display: flex;
	gap: 6px;
	margin-bottom: 6px;
	flex-wrap: wrap;
}

.xqd-badge {
	padding: 2px 8px;
	border-radius: 5px;
	font-size: 11px;
	font-weight: 500;
	color: #fff;
}

.xqd-badge-primary {
	background: var(--xqd-primary);
}

.xqd-badge-success {
	background: #10b981;
}

.xqd-product-price {
	font-size: 18px;
	font-weight: 700;
	color: #dc2626;
}

.xqd-product-price small {
	font-size: 14px;
}

.xqd-product-meta {
	display: flex;
	gap: 10px;
	margin-top: 6px;
	flex-wrap: wrap;
}

.xqd-meta-item {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 2px 8px;
	background: rgba(102, 126, 234, 0.08);
	border-radius: 6px;
	font-size: 11px;
	color: var(--xqd-muted);
}

.xqd-meta-item span {
	color: #374151;
	font-weight: 600;
}

.xqd-product-action {
	flex-shrink: 0;
}

.xqd-buy-btn {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 8px 18px;
	background: var(--xqd-blue);
	color: #fff;
	border-radius: 6px;
	font-size: 13px;
	font-weight: 500;
	box-shadow: 0 2px 6px rgba(102, 126, 234, 0.3);
	transition: all 0.2s;
}

.xqd-buy-btn:hover {
	color: #fff;
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.xqd-empty {
	text-align: center;
	padding: 48px 20px;
	color: var(--xqd-muted);
}

.xqd-empty i {
	font-size: 48px;
	opacity: 0.4;
	display: block;
	margin-bottom: 12px;
}

/* ========== 商品详情 ========== */
.xqd-detail-wrap {
	background: #fff;
	border-radius: var(--xqd-radius);
	box-shadow: var(--xqd-shadow);
	padding: 28px;
	display: flex;
	gap: 36px;
	margin-bottom: 20px;
}

.xqd-detail-imgbox {
	flex: 0 0 360px;
}

.xqd-detail-imgbox img {
	width: 100%;
	height: 360px;
	object-fit: cover;
	border-radius: 8px;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

.xqd-detail-body {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.xqd-detail-title {
	font-size: 22px;
	font-weight: 600;
	margin: 0;
	line-height: 1.4;
	color: #333;
}

.xqd-detail-badges {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.xqd-detail-badges .xqd-badge {
	padding: 4px 12px;
	border-radius: 20px;
	font-size: 12px;
}

.xqd-badge-info {
	background: linear-gradient(135deg, #43e97b, #38f9d7);
}

.xqd-badge-warning {
	background: linear-gradient(135deg, #fa709a, #fee140);
}

.xqd-price-box {
	background: linear-gradient(135deg, #f8f9ff, #e8f4fd);
	border: 1px solid #e1e8f0;
	padding: 18px 20px;
	border-radius: var(--xqd-radius);
}

.xqd-price-main {
	font-size: 32px;
	font-weight: 700;
	color: #333;
}

.xqd-price-main small {
	font-size: 18px;
}

.xqd-stock-row {
	display: flex;
	gap: 24px;
	margin-top: 10px;
	font-size: 14px;
}

.xqd-stock-row strong {
	color: var(--xqd-primary);
	font-size: 16px;
}

.xqd-form-row {
	display: flex;
	align-items: center;
	gap: 12px;
	padding-top: 12px;
	border-top: 1px solid #eee;
}

.xqd-form-label {
	width: 90px;
	flex-shrink: 0;
	font-size: 15px;
	font-weight: 600;
	color: #333;
}

.xqd-form-field {
	flex: 1;
}

.xqd-input {
	width: 100%;
	max-width: 360px;
	padding: 10px 14px;
	border: 2px solid #e0e0e0;
	border-radius: 8px;
	font-size: 14px;
	transition: border-color 0.2s, box-shadow 0.2s;
}

.xqd-input:focus {
	outline: none;
	border-color: var(--xqd-primary);
	box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.xqd-stepper {
	display: inline-flex;
	align-items: center;
	border: 2px solid #e0e0e0;
	border-radius: 8px;
	overflow: hidden;
}

.xqd-stepper button {
	width: 38px;
	height: 38px;
	border: none;
	background: #f8f9fa;
	color: #666;
	font-size: 18px;
	cursor: pointer;
}

.xqd-stepper input {
	width: 56px;
	height: 38px;
	border: none;
	text-align: center;
	font-size: 15px;
	font-weight: 600;
}

.xqd-pay-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
	gap: 10px;
	max-width: 480px;
}

.xqd-pay-item {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 10px 8px;
	border: 2px solid #e0e0e0;
	border-radius: 8px;
	cursor: pointer;
	font-size: 13px;
	transition: all 0.2s;
	background: #fff;
}

.xqd-pay-item input {
	display: none;
}

.xqd-pay-item img {
	width: 20px;
	height: 20px;
}

.xqd-pay-item.active,
.xqd-pay-item:hover {
	border-color: var(--xqd-primary);
	background: linear-gradient(135deg, rgba(102, 126, 234, 0.08), rgba(118, 75, 162, 0.08));
	box-shadow: 0 2px 8px rgba(102, 126, 234, 0.2);
}

.xqd-form-row-action {
	border-top: none;
	padding-top: 4px;
}

.xqd-form-label-empty {
	visibility: hidden;
}

.xqd-detail-body .xqd-form-row-action .xqd-submit-btn {
	width: 200px;
	max-width: 100%;
	margin-top: 0;
}

.xqd-submit-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 200px;
	height: 44px;
	margin-top: 8px;
	background: linear-gradient(90deg, #ff7700, var(--xqd-orange));
	color: #fff;
	border: none;
	border-radius: 8px;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	box-shadow: 0 2px 8px rgba(255, 73, 0, 0.35);
	transition: all 0.25s;
}

.xqd-submit-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(255, 73, 0, 0.45);
}

.xqd-desc-panel {
	background: #fff;
	border-radius: var(--xqd-radius);
	box-shadow: var(--xqd-shadow);
	overflow: hidden;
}

.xqd-desc-head {
	background: linear-gradient(135deg, #f8f9ff, #e8f4fd);
	border-bottom: 1px solid #e1e8f0;
	padding: 16px 24px;
	font-size: 18px;
	font-weight: 600;
}

.xqd-desc-body {
	padding: 24px;
	line-height: 1.8;
	color: #555;
	font-size: 15px;
}

.xqd-desc-body img {
	max-width: 100%;
	height: auto;
	border-radius: 8px;
}

/* ========== 订单查询 ========== */
.xqd-query-box {
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 8px 32px rgba(22, 186, 170, 0.15);
	overflow: hidden;
	margin-bottom: 24px;
}

.xqd-query-head {
	background: linear-gradient(135deg, #f8f9ff, #e8f4fd);
	border-bottom: 1px solid #e1e8f0;
	padding: 32px 24px;
	text-align: center;
}

.xqd-query-head i {
	font-size: 40px;
	color: var(--xqd-primary);
	display: block;
	margin-bottom: 12px;
}

.xqd-query-title {
	font-size: 26px;
	font-weight: 700;
	margin: 0 0 6px;
	background: linear-gradient(135deg, var(--xqd-primary), var(--xqd-primary-dark));
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

.xqd-query-tip {
	font-size: 14px;
	color: var(--xqd-muted);
	margin: 0;
}

.xqd-query-tabs {
	display: flex;
	border-bottom: 1px solid #eee;
	background: #fafbfc;
}

.xqd-query-tab {
	flex: 1;
	padding: 14px 12px;
	border: none;
	background: transparent;
	font-size: 14px;
	font-weight: 500;
	color: var(--xqd-muted);
	cursor: pointer;
	border-bottom: 2px solid transparent;
	transition: all 0.2s;
}

.xqd-query-tab.active {
	color: var(--xqd-teal);
	border-bottom-color: var(--xqd-teal);
	background: #fff;
}

.xqd-query-panel {
	display: none;
	padding: 24px;
}

.xqd-query-panel.active {
	display: block;
}

.xqd-query-panel .xqd-form-row {
	border-top: none;
	padding-top: 0;
	margin-bottom: 16px;
}

.xqd-query-panel .xqd-input {
	max-width: 100%;
}

.xqd-query-panel .xqd-submit-btn {
	width: 100%;
	max-width: 100%;
	background: var(--xqd-teal);
	box-shadow: 0 4px 14px rgba(22, 160, 133, 0.35);
}

.xqd-query-panel .xqd-submit-btn:hover {
	background: linear-gradient(135deg, #5a6fd8, #6a4190);
}

.xqd-notice-box {
	margin-top: 20px;
	padding-top: 16px;
	border-top: 1px solid #f0f2f5;
	font-size: 13px;
	line-height: 1.7;
	color: #666;
}

.xqd-result-card {
	border: 1px solid #e0e0e0;
	border-radius: 12px;
	overflow: hidden;
	margin-bottom: 16px;
	transition: box-shadow 0.2s;
}

.xqd-result-card:hover {
	box-shadow: 0 4px 16px rgba(102, 126, 234, 0.15);
}

.xqd-result-head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 12px 16px;
	background: linear-gradient(135deg, #f8f9ff, rgba(236, 228, 221, 0.06));
	border-bottom: 1px solid #e1e8f0;
	font-size: 13px;
}

.xqd-result-body {
	padding: 16px;
}

.xqd-result-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 10px 20px;
	font-size: 14px;
}

.xqd-result-grid label {
	display: block;
	color: var(--xqd-muted);
	font-size: 12px;
	margin-bottom: 2px;
}

.xqd-km-box {
	background: #f8f9fa;
	border: 1px dashed #ddd;
	border-radius: 8px;
	padding: 12px;
	font-family: Consolas, monospace;
	font-size: 13px;
	line-height: 1.6;
	margin: 10px 0;
	word-break: break-all;
}

.xqd-btn-copy {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 16px;
	background: var(--xqd-primary);
	color: #fff;
	border: none;
	border-radius: 6px;
	font-size: 13px;
	cursor: pointer;
}

.xqd-alert-empty {
	text-align: center;
	padding: 40px 20px;
	color: var(--xqd-muted);
}

/* ========== 页脚 & FAB ========== */
.xqd-footer {
	max-width: var(--xqd-max);
	width: 100%;
	margin: 0 auto;
	padding: 20px;
	text-align: center;
	font-size: 13px;
	color: #a4a4a4;
}

.xqd-fab {
	position: fixed;
	right: 24px;
	bottom: 24px;
	width: 52px;
	height: 52px;
	border-radius: 50%;
	background: linear-gradient(135deg, var(--xqd-primary), var(--xqd-primary-dark));
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 22px;
	box-shadow: 0 4px 16px rgba(102, 126, 234, 0.45);
	z-index: 99;
	transition: transform 0.2s;
}

.xqd-fab:hover {
	color: #fff;
	transform: scale(1.08);
}

/* ========== 响应式 ========== */
@media (max-width: 991px) {
	.xqd-navbar-inner {
		height: 60px;
		gap: 12px;
	}

	.xqd-navbar-menu .xqd-nav-item span {
		display: none;
	}

	.xqd-nav-item {
		min-width: 40px;
		padding: 6px 10px;
	}

	.xqd-nav-item i {
		margin-bottom: 0;
	}

	.xqd-navbar-aside {
		display: none;
	}

	.xqd-detail-wrap {
		flex-direction: column;
		padding: 20px;
	}

	.xqd-detail-imgbox {
		flex: none;
		width: 100%;
		max-width: 100%;
	}

	.xqd-detail-imgbox img {
		width: 100%;
		height: auto;
		max-height: none;
		object-fit: contain;
	}

	.xqd-form-row {
		flex-direction: column;
		align-items: stretch;
	}

	.xqd-form-label {
		width: auto;
	}

	.xqd-form-label-empty {
		display: none;
	}

	.xqd-input {
		max-width: 100%;
	}

	.xqd-submit-btn,
	.xqd-detail-body .xqd-form-row-action .xqd-submit-btn {
		width: 100%;
	}

	.xqd-result-grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 600px) {
	.xqd-main {
		padding: 12px 12px 32px;
	}

	.xqd-product-row {
		flex-wrap: wrap;
	}

	.xqd-product-action {
		width: 100%;
	}

	.xqd-buy-btn {
		width: 100%;
		justify-content: center;
	}

	.xqd-query-tabs {
		flex-direction: column;
	}

	.xqd-query-title {
		font-size: 22px;
	}
}
