/**
 * 内页壳层：顶栏 / 底栏与 /product/ 落地页一致。
 */

html {
	height: 100%;
	scroll-padding-top: 86px;
}

body.amazon-brand-shell-layout {
	min-height: 100%;
	display: flex;
	flex-direction: column;
	font-family: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", "Hiragino Sans GB", "Noto Sans SC", system-ui, -apple-system, sans-serif;
	background-color: #0f172a;
	color: #f8fafc;
	line-height: 1.6;
}

body.amazon-brand-shell-layout main {
	flex: 1 0 auto;
	padding-top: 86px;
}

body.amazon-brand-shell-layout a {
	text-decoration: none;
	transition: color 0.3s ease;
}

.container-custom {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
}

/* —— 顶栏（与产品落地页 lp-nav 一致）—— */
.lp-nav {
	position: fixed;
	top: 0;
	right: 0;
	left: 0;
	z-index: 1000;
	box-sizing: border-box;
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 70px;
	padding: 0 59px;
	overflow: visible;
	background: #fff;
	box-shadow: 0 2px 10px 0 rgba(0, 0, 0, 0.06);
}

.admin-bar .lp-nav {
	top: 32px;
}

.lp-nav-brand {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	color: inherit;
	text-decoration: none;
	flex-shrink: 0;
}

.lp-nav .auth-link {
	margin: 0;
	color: #585f69;
	font-size: 16px;
	line-height: normal;
	text-align: right;
	white-space: nowrap;
	cursor: pointer;
	transition: color 0.2s;
}

.lp-nav .auth-link:hover {
	color: #0175ff;
}

.lp-nav .auth-link:focus-visible {
	outline: 2px solid #0175ff;
	outline-offset: 3px;
	border-radius: 4px;
}

.acct-slot {
	display: contents;
}

.acct {
	position: relative;
}

.acct-trigger {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 5px 10px 5px 5px;
	background: #fff;
	border: 1px solid rgba(29, 33, 40, 0.1);
	border-radius: 999px;
	font-family: inherit;
	cursor: pointer;
	transition: border-color 0.2s, background 0.2s;
}

.acct-trigger:hover {
	background: rgba(1, 117, 255, 0.04);
	border-color: rgba(1, 117, 255, 0.4);
}

.acct-trigger:focus-visible {
	outline: 2px solid #0175ff;
	outline-offset: 2px;
}

.acct-avatar {
	display: block;
	flex-shrink: 0;
	width: 26px;
	height: 26px;
}

.acct-avatar img {
	display: block;
	width: 100%;
	height: 100%;
}

.acct-phone {
	color: #1d2128;
	font-size: 15px;
	white-space: nowrap;
}

.acct-caret {
	color: #8b93a1;
	transition: transform 0.2s;
}

.acct-caret.is-open {
	transform: rotate(180deg);
}

.acct-menu {
	position: absolute;
	top: calc(100% + 8px);
	right: 0;
	z-index: 950;
	min-width: 192px;
	padding: 6px;
	background: #fff;
	border: 1px solid rgba(29, 33, 40, 0.08);
	border-radius: 12px;
	box-shadow: 0 18px 40px -14px rgba(9, 18, 45, 0.35);
}

.acct-menu-head,
.acct-item {
	text-decoration: none;
}

.acct-menu-head {
	display: flex;
	flex-direction: column;
	gap: 2px;
	margin-bottom: 6px;
	padding: 8px 10px 10px;
	border-bottom: 1px solid rgba(29, 33, 40, 0.07);
	border-radius: 8px;
	color: inherit;
	cursor: pointer;
	transition: background 0.18s;
}

.acct-menu-head span {
	color: rgba(29, 33, 40, 0.45);
	font-size: 12px;
}

.acct-menu-head strong {
	color: #1d2128;
	font-size: 15px;
	font-weight: 600;
}

.acct-menu-head:hover {
	background: rgba(1, 117, 255, 0.06);
}

.acct-menu-head:hover strong {
	color: #0175ff;
}

.acct-item {
	display: flex;
	align-items: center;
	gap: 8px;
	width: 100%;
	padding: 9px 10px;
	color: #1d2128;
	background: transparent;
	border: 0;
	border-radius: 8px;
	font-family: inherit;
	font-size: 14px;
	cursor: pointer;
	transition: background 0.18s, color 0.18s;
}

.acct-item svg {
	display: block;
	width: 16px;
	height: 16px;
	flex: none;
}

.acct-item:hover {
	color: #0175ff;
	background: rgba(1, 117, 255, 0.08);
}

.acct-item--logout:hover {
	color: #fa3e42;
	background: rgba(250, 62, 66, 0.08);
}

.product-svg-mask {
	display: inline-block;
	width: var(--product-svg-width);
	height: var(--product-svg-height);
	background: currentColor;
	-webkit-mask: var(--product-svg-source) center / contain no-repeat;
	mask: var(--product-svg-source) center / contain no-repeat;
}

/* —— 底栏（与产品落地页 lp-footer 一致）—— */
.lp-footer {
	background: #1f2126;
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 100%;
	padding: 64px 24px 28px;
	margin-top: auto;
}

.lp-footer--site {
	margin-top: auto;
}

.lp-footer-title {
	color: rgba(255, 255, 255, 0.92);
	text-align: center;
	margin: 0 0 80px;
	font-size: 36px;
	font-weight: 600;
	line-height: 1.3;
}

.lp-footer-title span + span {
	margin-left: 0.5em;
}

.lp-footer-cols {
	display: flex;
	align-items: stretch;
	width: min(100% - 80px, 1200px);
	margin-bottom: 80px;
}

.lp-footer-col {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 4px;
	min-width: 0;
}

.lp-footer-col:first-child {
	flex: 368px;
}

.lp-footer-col:nth-child(2) {
	flex: 600px;
}

.lp-footer-col:nth-child(3) {
	flex: 0 232px;
}

.lp-footer-col + .lp-footer-col {
	position: relative;
	padding-left: 76px;
}

.lp-footer-col + .lp-footer-col:before {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	width: 1px;
	background: linear-gradient(rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.16) 45% 55%, rgba(255, 255, 255, 0) 100%);
}

.lp-footer-h {
	color: rgba(255, 255, 255, 0.8);
	margin: 0 0 12px;
	font-size: 18px;
	font-weight: 600;
	line-height: 1.3;
}

.lp-footer-t {
	margin: 0;
	color: rgba(255, 255, 255, 0.5);
	font-size: 14px;
	line-height: 1.5;
}

.lp-footer-t a,
.lp-footer-legal a {
	color: inherit;
	text-decoration: none;
}

.lp-footer-t a:hover,
.lp-footer-legal a:hover {
	color: #fff;
}

.lp-footer-legal {
	margin: 0;
	color: rgba(255, 255, 255, 0.35);
	text-align: center;
	font-size: 12px;
	line-height: 1.5;
}

@media (max-width: 1179px) {
	.lp-nav {
		padding-left: 24px;
		padding-right: 24px;
	}

	.lp-footer {
		padding-top: 48px;
	}

	.lp-footer-title {
		margin-bottom: 56px;
		font-size: clamp(24px, 3vw, 36px);
	}

	.lp-footer-cols {
		margin-bottom: 56px;
	}

	.lp-footer-col + .lp-footer-col {
		padding-left: 44px;
	}
}

@media (max-width: 899px) {
	.lp-footer-cols {
		flex-direction: column;
		gap: 32px;
		width: 100%;
	}

	.lp-footer-col,
	.lp-footer-col:first-child,
	.lp-footer-col:nth-child(2),
	.lp-footer-col:nth-child(3) {
		flex: none;
		width: 100%;
	}

	.lp-footer-col + .lp-footer-col {
		padding-left: 0;
	}

	.lp-footer-col + .lp-footer-col:before {
		display: none;
	}
}

@media (max-width: 782px) {
	.admin-bar .lp-nav {
		top: 46px;
	}
}

@media (max-width: 767px) {
	html {
		scroll-padding-top: 78px;
	}

	body.amazon-brand-shell-layout main {
		padding-top: 78px;
	}

	.lp-nav {
		padding-left: 16px;
		padding-right: 16px;
	}

	.acct-phone {
		font-size: 14px;
	}

	.lp-footer {
		padding: 48px 20px 16px;
	}

	.lp-footer-title,
	.lp-footer-cols {
		margin-bottom: 36px;
	}

	.lp-footer-title span + span {
		margin-left: 0;
		display: block;
	}
}
