/* Hero — 明亮蓝色，对齐 contact / user / svc */
.cart-banner.news-banner {
	height: 440px !important;
	background-color: #eff6ff;
	background-image: url("/home/images/banner-cart-bright.jpg");
	background-position: center center;
	background-size: cover;
	background-repeat: no-repeat;
}

.cart-banner .news-banner-mask {
	background:
		linear-gradient(105deg, rgba(248, 250, 252, 0.88) 0%, rgba(239, 246, 255, 0.72) 38%, rgba(219, 234, 254, 0.28) 72%, rgba(191, 219, 254, 0.12) 100%),
		linear-gradient(180deg, rgba(255, 255, 255, 0.35) 0%, rgba(239, 246, 255, 0.45) 100%);
}

.cart-banner .news-banner-inner {
	position: relative;
	z-index: 1;
	height: 440px !important;
	min-height: 440px;
	padding: 52px 15px 96px;
}

.cart-banner .news-banner-inner h1 {
	margin: 0;
	font-size: clamp(34px, 5vw, 48px);
	font-weight: 700;
	color: var(--zly-text, #111827);
	letter-spacing: 0.01em;
}

.cart-banner .news-banner-inner p {
	margin: 18px 0 0;
	max-width: 540px;
	font-size: 16px;
	line-height: 1.8;
	color: #4b5563;
}

/* 购物车列表页：白卡片上叠 banner 底图留白，不压住副标题 */
.cart-page > .container > .cart-panel:not(.pay-page) {
	margin-top: -36px;
}

.cart-page {
	background: var(--zly-bg, #f5f7f8);
	padding-bottom: 64px;
}

.cart-panel {
	background: #fff;
	border-radius: var(--zly-radius, 6px);
	box-shadow: var(--zly-shadow, 0 8px 28px rgba(17, 34, 32, 0.08));
	margin-top: 0;
	position: relative;
	z-index: 2;
	padding: 24px 20px 28px;
}

.cart-flash {
	margin-bottom: 16px;
	padding: 12px 14px;
	border-radius: var(--zly-radius, 6px);
	font-size: 14px;
	line-height: 1.5;
}

.cart-flash-in-panel {
	margin: 0;
	position: static;
}

.cart-flash-ok {
	background: rgba(37, 99, 235, 0.12);
	color: var(--zly-brand, var(--zly-brand, #2563eb));
	border: 1px solid rgba(37, 99, 235, 0.18);
}

.cart-flash-err {
	background: #fdecea;
	color: #c0392b;
	border: 1px solid rgba(192, 57, 43, 0.22);
}

.cart-empty {
	text-align: center;
	padding: 48px 16px;
	color: #666;
}

.cart-empty p {
	margin-bottom: 20px;
	font-size: 16px;
}

.cart-table-head,
.cart-row {
	display: grid;
	grid-template-columns: 2fr 1fr 1fr 1fr auto;
	gap: 12px;
	align-items: center;
	padding: 14px 0;
	border-bottom: 1px solid #eef1f0;
	font-size: 14px;
}

.cart-table-head {
	font-weight: 600;
	color: #555;
	padding-top: 0;
}

.cart-row:last-of-type {
	border-bottom: none;
}

.cart-years-form select {
	width: 100%;
	max-width: 120px;
	height: 36px;
	border: 1px solid #e2e6e5;
	border-radius: var(--zly-radius, 6px);
	padding: 0 8px;
}

.cart-link-btn {
	border: none;
	background: none;
	color: #c0392b;
	padding: 0;
	cursor: pointer;
	font-size: 14px;
}

.cart-summary {
	margin-top: 24px;
	padding-top: 20px;
	border-top: 1px solid #eef1f0;
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 20px;
}

.cart-subtotal {
	font-size: 16px;
}

.cart-subtotal strong {
	color: var(--zly-brand, var(--zly-brand, #2563eb));
	font-size: 22px;
}

.cart-subtotal-hint {
	display: block;
	margin-top: 6px;
	font-size: 12px;
	color: #999;
}

.cart-btn-primary {
	display: inline-block;
	padding: 12px 28px;
	background: var(--zly-brand, var(--zly-brand, #2563eb));
	color: #fff !important;
	border: none;
	border-radius: var(--zly-radius, 6px);
	font-size: 15px;
	text-decoration: none !important;
	cursor: pointer;
}

.cart-btn-primary:disabled {
	background: #ccc;
	cursor: not-allowed;
}

.cart-checkout-form {
	flex: 1 1 280px;
	max-width: 420px;
}

.cart-checkout-field label {
	display: block;
	margin-bottom: 8px;
	font-size: 14px;
	color: #444;
}

.cart-checkout-field select {
	width: 100%;
	height: 44px;
	border: 1px solid #e2e6e5;
	border-radius: var(--zly-radius, 6px);
	padding: 0 10px;
	margin-bottom: 12px;
}

.cart-template-hint {
	margin: 0 0 8px;
	font-size: 13px;
	color: #888;
}

.cart-template-hint a {
	color: var(--zly-brand, var(--zly-brand, #2563eb));
}

.domain-toast {
	position: fixed;
	top: 90px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 9999;
	padding: 12px 22px;
	background: rgba(37, 99, 235, 0.95);
	color: #fff;
	border-radius: var(--zly-radius, 6px);
	font-size: 14px;
	box-shadow: 0 8px 24px rgba(17, 34, 32, 0.15);
	opacity: 0;
	transition: opacity 0.25s ease;
	pointer-events: none;
}

.domain-toast.show {
	opacity: 1;
}

.cart-toast {
	display: none;
	margin-top: 12px;
	padding: 10px 14px;
	border-radius: var(--zly-radius, 6px);
	font-size: 14px;
}

.cart-toast-ok {
	background: #ecfdf5;
	color: #047857;
	border: 1px solid #a7f3d0;
}

.cart-toast-err {
	background: #fef2f2;
	color: #b91c1c;
	border: 1px solid #fecaca;
}

.cart-pay-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 16px;
}

.cart-btn-wechat {
	background: #07c160;
}

.cart-btn-alipay {
	background: #1677ff;
}

/* Domain order pay (/domain/pay/...) — no hero banner; cancel cart-panel pull-up under fixed nav */
.cart-panel.pay-page {
	margin-top: 24px;
}

.pay-page {
	padding: 28px 24px 32px;
	overflow: visible;
}

.pay-top {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 18px;
	margin-bottom: 4px;
}

.pay-page .pay-top > .cart-flash-in-panel,
.pay-page .pay-top > .pay-header {
	margin: 0;
	position: static;
	z-index: auto;
	flex: 0 0 auto;
}

.pay-header {
	margin: 0;
}

.pay-title {
	margin: 0 0 8px;
	font-size: 22px;
	font-weight: 600;
	color: #222;
}

.pay-checkout-no {
	margin: 0;
	font-size: 13px;
	color: #999;
	line-height: 1.5;
}

.pay-order {
	margin-top: 20px;
	border: 1px solid #eef1f0;
	border-radius: var(--zly-radius, 6px);
	overflow: hidden;
	background: #fff;
}

.pay-order-head,
.pay-order-row {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 88px 112px;
	gap: 12px;
	align-items: center;
	padding: 12px 16px;
	font-size: 14px;
}

.pay-order-head {
	background: #f8faf9;
	font-weight: 600;
	color: #555;
	border-bottom: 1px solid #eef1f0;
}

.pay-order-row {
	border-bottom: 1px solid #eef1f0;
}

.pay-order-row:last-child {
	border-bottom: none;
}

.pay-order-head .col-years,
.pay-order-head .col-line,
.pay-order-row .col-years,
.pay-order-row .col-line {
	text-align: right;
}

.pay-summary {
	margin-top: 20px;
}

.pay-total {
	font-size: 16px;
	text-align: right;
	line-height: 1.4;
}

.pay-total strong {
	color: var(--zly-brand, #2563eb);
	font-size: 22px;
	font-weight: 600;
}

.pay-expire-tip {
	margin: 12px 0 0;
	font-size: 12px;
	color: #888;
	line-height: 1.55;
}

.pay-expire-tip a {
	color: var(--zly-brand, #2563eb);
}

.pay-methods {
	margin-top: 24px;
	padding-top: 20px;
	border-top: 1px solid #eef1f0;
}

.pay-methods-title {
	margin: 0 0 14px;
	font-size: 14px;
	font-weight: 600;
	color: #444;
}

.pay-methods-note {
	margin: -6px 0 16px;
	font-size: 13px;
	color: #666;
	line-height: 1.55;
}

.pay-contact-cta {
	min-width: 200px;
	border: none;
	cursor: pointer;
}

.pay-help a {
	color: var(--zly-brand, #2563eb);
	text-decoration: none;
}

.pay-help a:hover {
	text-decoration: underline;
}

/* Sit in the viewport under the fixed header (110px / 90px / 56px), not over the nav.
   Specificity beats Bootstrap's .modal.in .modal-dialog transform reset. */
.domain-pay-contact-modal.modal .modal-dialog {
	position: absolute;
	top: calc(50% + 55px);
	left: 50%;
	width: 320px;
	max-width: calc(100% - 32px);
	margin: 0;
	-webkit-transform: translate(-50%, -50%);
	transform: translate(-50%, -50%);
}

.domain-pay-contact-modal .modal-content {
	border: none;
	border-radius: var(--zly-radius, 8px);
	box-shadow: 0 12px 40px rgba(15, 23, 42, 0.18);
	overflow: auto;
	max-height: calc(100vh - 110px - 32px);
}

.domain-pay-contact-modal .modal-header {
	border-bottom: 1px solid #eef1f0;
	padding: 16px 18px;
	background: #f8fafc;
}

.domain-pay-contact-modal .modal-title {
	font-size: 17px;
	font-weight: 600;
	color: #111;
}

.domain-pay-contact-modal .modal-body {
	padding: 20px 18px 8px;
}

.domain-pay-contact-lead {
	margin: 0 0 10px;
	font-size: 16px;
	font-weight: 600;
	color: var(--zly-brand, #2563eb);
	line-height: 1.5;
}

.domain-pay-contact-sub {
	margin: 0 0 16px;
	font-size: 13px;
	color: #555;
	line-height: 1.6;
}

.domain-pay-contact-list {
	margin: 0;
	padding: 0;
	list-style: none;
	border-top: 1px solid #eef1f0;
	padding-top: 14px;
}

.domain-pay-contact-list li {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 8px;
	margin-bottom: 10px;
	font-size: 14px;
	color: #222;
}

.domain-pay-contact-label {
	flex: 0 0 auto;
	min-width: 4.5em;
	color: #888;
	font-size: 13px;
}

.domain-pay-contact-list a,
.domain-pay-contact-value {
	color: var(--zly-brand, #2563eb);
	font-weight: 500;
	text-decoration: none;
}

.domain-pay-contact-list a:hover {
	text-decoration: underline;
}

.domain-pay-contact-modal .modal-footer {
	border-top: 1px solid #eef1f0;
	padding: 12px 18px 16px;
	text-align: center;
}

.domain-pay-contact-modal .modal-footer .cart-btn-primary {
	min-width: 120px;
	border: none;
}

@media (min-width: 992px) and (max-width: 1200px) {
	.domain-pay-contact-modal.modal .modal-dialog {
		top: calc(50% + 45px);
	}

	.domain-pay-contact-modal .modal-content {
		max-height: calc(100vh - 90px - 32px);
	}
}

@media (max-width: 767px) {
	.domain-pay-contact-modal.modal .modal-dialog {
		top: calc(50% + 28px);
	}

	.domain-pay-contact-modal .modal-content {
		max-height: calc(100vh - 56px - 32px);
	}
}

.pay-page .cart-pay-actions {
	margin-top: 0;
}

.pay-page .cart-pay-actions form {
	margin: 0;
}

.pay-help {
	margin: 14px 0 0;
	font-size: 12px;
	color: #999;
	line-height: 1.5;
}

.pay-status-msg {
	margin-top: 20px;
	margin-bottom: 0;
}

@media (max-width: 767px) {
	.cart-banner.news-banner,
	.cart-banner .news-banner-inner {
		height: auto !important;
		min-height: 320px;
	}

	.cart-banner .news-banner-inner {
		padding: 36px 15px 72px;
	}

	.cart-page > .container > .cart-panel:not(.pay-page) {
		margin-top: -20px;
	}

	.cart-panel {
		padding: 16px 12px 20px;
	}

	.cart-panel.pay-page {
		margin-top: 16px;
	}

	.cart-table-head {
		display: none;
	}

	.cart-row {
		grid-template-columns: 1fr;
		gap: 8px;
		padding: 16px 0;
	}

	.cart-summary {
		flex-direction: column;
		align-items: stretch;
	}

	.cart-checkout-form {
		max-width: none;
	}

	.pay-page {
		padding: 16px 12px 20px;
	}

	.pay-order-head {
		display: none;
	}

	.pay-order-row {
		grid-template-columns: 1fr;
		gap: 6px;
		padding: 14px 12px;
	}

	.pay-order-row .col-years,
	.pay-order-row .col-line {
		text-align: left;
		font-size: 13px;
		color: #666;
	}

	.pay-order-row .col-line {
		color: #222;
		font-weight: 500;
	}

	.pay-total {
		text-align: left;
	}

	.pay-page .cart-pay-actions {
		flex-direction: column;
	}

	.pay-page .cart-pay-actions .cart-btn-primary {
		width: 100%;
		text-align: center;
		box-sizing: border-box;
	}
}
