/* ==========================================================================
   iPartsMall Child — Bulk Order List 页（报价清单表单）
   仅 is_page('bulk-order-list') 加载
   ========================================================================== */

/* ---------- 表单卡 ---------- */
.ns-qform {
	max-width: var(--ns-max); /* 与首页板块同宽 1200px */
	margin: 0 auto;
}

.ns-qcard {
	background: var(--ns-bg);
	border: 1px solid var(--ns-line);
	border-radius: var(--ns-radius-lg);
	padding: 34px 38px;
	margin-bottom: 24px;
	box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 28px rgba(15, 23, 42, 0.05);
}

.ns-qcard h2 {
	font-size: 20px;
	font-weight: 800;
	letter-spacing: -0.4px;
	margin: 0 0 6px;
	color: var(--ns-ink);
}

.ns-qhint {
	font-size: 14.5px;
	color: var(--ns-muted);
	margin: 0 0 18px;
}

/* ---------- 基础字段 ---------- */
.ns-qfield {
	display: block;
}

.ns-qfield > span {
	display: block;
	font-size: 13.5px;
	font-weight: 700;
	color: var(--ns-ink);
	margin-bottom: 7px;
}

.ns-qfield > span em {
	color: #dc2626;
	font-style: normal;
}

.ns-qfield .ns-qopt {
	color: var(--ns-muted);
	font-weight: 500;
}

.ns-qfield input,
.ns-qfield select,
.ns-qfield textarea,
.ns-qrow input,
.ns-qrow select {
	width: 100%;
	height: 46px;
	padding: 0 14px;
	border: 1px solid var(--ns-line);
	border-radius: 10px;
	background: var(--ns-bg);
	font: inherit;
	font-size: 15px;
	color: var(--ns-ink);
	transition: border-color 0.15s, box-shadow 0.15s;
}

/* 下拉通用箭头（国家选择） */
.ns-qfield select {
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2364748b' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
	padding-right: 36px;
	cursor: pointer;
}

.ns-qfield select.is-placeholder {
	color: var(--ns-muted);
}

.ns-qfield input:hover,
.ns-qfield select:hover,
.ns-qfield textarea:hover,
.ns-qrow input:hover {
	border-color: #c7d2e3;
}

.ns-qfield textarea {
	height: auto;
	padding: 12px 14px;
	line-height: 1.6;
	resize: vertical;
}

.ns-qfield input:focus,
.ns-qfield select:focus,
.ns-qfield textarea:focus,
.ns-qrow input:focus,
.ns-qrow select:focus {
	outline: none;
	border-color: var(--ns-brand);
	box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.12);
}

.ns-qfield input.is-invalid,
.ns-qfield select.is-invalid,
.ns-qrow input.is-invalid {
	border-color: #dc2626;
}

/* ---------- 你的信息：两列 ---------- */
.ns-qgrid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px 18px;
	margin-top: 14px;
}

.ns-qfull {
	grid-column: 1 / -1;
}

/* ---------- 订单清单表格 ---------- */
.ns-qtable-head,
.ns-qrow {
	display: grid;
	/* Model / Product（最长，产品名长）/ Grade / Qty / 删钮 */
	grid-template-columns: 1.15fr 1.65fr 0.95fr 0.55fr 40px;
	gap: 12px;
	align-items: end;
}

.ns-qtable-head {
	font-size: 12.5px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.6px;
	color: var(--ns-muted);
	padding: 0 0 8px;
	border-bottom: 1px solid var(--ns-line);
	margin-bottom: 12px;
}

.ns-qtable-head span:last-child {
	width: 40px;
}

.ns-qrow {
	margin-bottom: 12px;
}

.ns-qrow input,
.ns-qrow select {
	height: 46px;
}

.ns-qrow select {
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2364748b' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 13px center;
	padding-right: 34px;
}

.ns-qrow .ns-qc > span {
	display: none;
}

.ns-qrow-del {
	width: 40px;
	height: 46px;
	border: 1px solid var(--ns-line);
	border-radius: 10px;
	background: var(--ns-bg);
	color: #94a3b8;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
	transition: 0.15s;
}

.ns-qrow-del:hover {
	color: #dc2626;
	border-color: #fca5a5;
	background: #fef2f2;
}

.ns-qrow:first-child .ns-qrow-del {
	visibility: hidden;
}

.ns-qadd {
	border: 1px dashed var(--ns-brand);
	color: var(--ns-brand);
	background: rgba(29, 78, 216, 0.03);
	border-radius: 10px;
	height: 46px;
	width: 100%;
	font: inherit;
	font-size: 14.5px;
	font-weight: 700;
	cursor: pointer;
	transition: 0.15s;
}

.ns-qadd:hover {
	background: rgba(29, 78, 216, 0.08);
	border-style: solid;
}

.ns-qnote {
	margin-top: 22px;
}

/* honeypot */
.ns-qp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	opacity: 0;
}

/* ---------- 提交区 ---------- */
.ns-qsubmit {
	display: flex;
	align-items: center;
	gap: 18px;
	flex-wrap: wrap;
}

.ns-qsubmit .ns-btn {
	min-width: 280px;
	height: 54px;
	font-size: 16px;
	box-shadow: 0 10px 24px rgba(29, 78, 216, 0.28);
}

.ns-qstatus {
	font-size: 14.5px;
	margin: 0;
	color: var(--ns-muted);
}

.ns-qstatus.is-ok {
	color: #15803d;
	font-weight: 600;
}

.ns-qstatus.is-err {
	color: #dc2626;
	font-weight: 600;
}

.ns-qstatus.is-busy {
	color: var(--ns-muted);
}

/* ---------- 提交后三步说明 ---------- */
.ns-qsteps {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 18px;
	max-width: var(--ns-max);
	margin: 0 auto;
}

.ns-qsteps .ns-box {
	background: var(--ns-bg-soft);
	border: 1px solid var(--ns-line);
	border-radius: var(--ns-radius-lg);
	padding: 24px;
	transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s;
}

.ns-qsteps .ns-box:hover {
	transform: translateY(-3px);
	border-color: #c7d8f6;
	box-shadow: 0 14px 32px rgba(15, 23, 42, 0.08);
}

.ns-qsteps h3 {
	font-size: 16px;
	font-weight: 800;
	margin: 10px 0 6px;
	color: var(--ns-ink);
}

.ns-qsteps p {
	margin: 0;
	font-size: 14.5px;
	line-height: 1.7;
	color: var(--ns-muted);
}

/* ---------- 首页批发区嵌表单（.ns-ws 蓝底容器内） ---------- */
.ns-ws--stack {
	display: block;
}

.ns-ws--stack .ns-ws-head {
	position: relative;
	z-index: 1;
	max-width: 780px;
}

.ns-ws--stack .ns-qform {
	max-width: none;
	margin: 34px 0 0;
	position: relative;
	z-index: 1;
}

/* 深蓝底上的白色卡片：标题/提示/状态色要抢回深色，别被 .ns-ws 的白字规则染掉 */
.ns-ws--stack .ns-qcard h2 {
	color: var(--ns-ink);
}

.ns-ws--stack .ns-qhint {
	color: var(--ns-muted);
	font-size: 14.5px;
	margin: 0 0 18px;
}

.ns-ws--stack .ns-qstatus {
	color: rgba(255, 255, 255, 0.75);
	font-size: 14.5px;
	margin: 0;
}

.ns-ws--stack .ns-qstatus.is-ok {
	color: #86efac;
}

.ns-ws--stack .ns-qstatus.is-err {
	color: #fecaca;
}

.ns-ws--stack .ns-qstatus.is-busy {
	color: rgba(255, 255, 255, 0.75);
}

/* 蓝底容器内：主按钮改白底蓝字，避免蓝融蓝 */
.ns-ws--stack .ns-qsubmit .ns-btn {
	background: #fff;
	color: var(--ns-brand);
	box-shadow: 0 10px 24px rgba(5, 16, 48, 0.28);
}

.ns-ws--stack .ns-qsubmit .ns-btn:hover {
	background: #e8efff;
	color: var(--ns-brand-hover);
}

/* ---------- 移动端 ---------- */
@media (max-width: 760px) {
	.ns-qcard {
		padding: 22px 18px;
	}

	.ns-qgrid {
		grid-template-columns: 1fr;
	}

	.ns-qtable-head {
		display: none;
	}

	.ns-qrow {
		grid-template-columns: 1fr 1fr;
		position: relative;
		border: 1px solid var(--ns-line);
		border-radius: 12px;
		padding: 14px 14px 16px;
		margin-bottom: 14px;
	}

	.ns-qrow .ns-qc > span {
		display: block;
		font-size: 12.5px;
		font-weight: 700;
		color: var(--ns-muted);
		margin-bottom: 6px;
	}

	.ns-qrow .ns-qrow-del {
		position: absolute;
		top: 10px;
		right: 10px;
		width: 32px;
		height: 32px;
		font-size: 16px;
	}

	.ns-qrow:first-child .ns-qrow-del {
		visibility: hidden;
	}

	.ns-qsteps {
		grid-template-columns: 1fr;
	}
}

/* ==========================================================================
   2026-10-16 突出 Order List 卡、弱化压缩 details 卡
   ========================================================================== */

/* ---------- Order List 主卡：品牌色描边 + 徽标 ---------- */
.ns-qcard-lead {
	border: 2px solid var(--ns-brand);
	box-shadow: 0 12px 36px rgba(29, 78, 216, 0.13);
	padding: 26px 30px;
	position: relative;
}

.ns-qflag {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: var(--ns-brand);
	color: #fff;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	border-radius: 999px;
	padding: 5px 14px;
	margin-bottom: 12px;
}

.ns-qcard-lead h2 {
	margin: 0 0 6px;
	font-size: 22px;
}

/* ---------- details 副卡：浅灰底 + 紧凑 ---------- */
.ns-qcard-soft {
	background: #f8fafc;
	border-color: #e6ecf4;
	box-shadow: none;
	padding: 18px 22px 20px;
	margin-bottom: 20px;
}

.ns-qcard-soft h2 {
	font-size: 16px;
	margin: 0 0 4px;
}

.ns-qsoft-note {
	font-size: 12.5px;
	color: var(--ns-muted);
	margin: 0 0 12px;
}

.ns-qcard-soft .ns-qgrid {
	gap: 10px 14px;
}

.ns-qcard-soft .ns-qfield > span {
	font-size: 11.5px;
	margin-bottom: 3px;
}

.ns-qcard-soft .ns-qfield input,
.ns-qcard-soft .ns-qfield select {
	height: 38px;
	font-size: 14px;
	padding: 0 10px;
}

.ns-qcard-soft .ns-qfield select {
	padding-right: 32px;
	background-position: right 10px center;
}

@media (max-width: 768px) {
	.ns-qcard-lead {
		padding: 20px 16px;
	}
	.ns-qcard-soft {
		padding: 16px 14px;
	}
}
