/**
 * 与 template-amazon-home.php 顶栏、容器、底栏视觉一致的壳层样式（用于 get_header / get_footer 的页面）。
 */

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

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

body.amazon-brand-shell-layout {
	min-height: 100%;
	display: flex;
	flex-direction: column;
	font-family: 'Inter', 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;
	/*
	 * 固定顶栏不占文档流，仅靠占位 div 在 flex + Tailwind 下可能被压扁，导致标题与顶栏重叠。
	 * top(20) + 栏高约 56 + 安全间距 ≈ 104px；小屏 top(12) + 栏高约 52。
	 */
	padding-top: 104px;
}

@media (max-width: 768px) {
	body.amazon-brand-shell-layout main {
		padding-top: 88px;
	}
}

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;
}

/* —— 顶栏（与首页 fixed-header 一致）—— */
.fixed-header {
	position: fixed;
	top: 20px;
	left: 50%;
	transform: translateX(-50%);
	width: 94%;
	max-width: 1100px;
	background: rgba(26, 30, 38, 0.95);
	backdrop-filter: blur(16px);
	-webkit-backdrop-filter: blur(16px);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 50px;
	z-index: 1000;
	padding: 0 20px;
}

.mobile-menu-btn {
	display: none;
}

.header-inner {
	display: flex;
	justify-content: space-between;
	align-items: center;
	height: 56px;
	gap: 16px;
}

.logo-area {
	display: flex;
	align-items: center;
	gap: 12px;
	color: white;
	text-decoration: none;
	flex-shrink: 0;
}

.logo-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	background: white;
	border-radius: 50%;
	flex-shrink: 0;
	font-size: 1rem;
}

.logo-text {
	display: flex;
	flex-direction: column;
	line-height: 1.2;
}

.logo-text-main {
	font-size: 1.1rem;
	font-weight: 700;
	color: white;
}

.logo-text-sub {
	font-size: 0.65rem;
	color: #94a3b8;
	letter-spacing: 0.5px;
}

.desktop-nav {
	display: flex;
	gap: 28px;
	flex-shrink: 0;
}

.desktop-nav a {
	color: #94a3b8;
	font-size: 0.85rem;
	font-weight: 500;
	white-space: nowrap;
	transition: color 0.3s;
}

.desktop-nav a:hover {
	color: white;
}

.header-cta {
	flex-shrink: 0;
}

.btn-login {
	display: none;
}

.btn-signup {
	display: inline-block;
	background: white;
	color: #0f172a;
	padding: 8px 20px;
	border-radius: 24px;
	font-size: 0.85rem;
	font-weight: 600;
	white-space: nowrap;
	text-decoration: none;
	transition: all 0.3s;
}

.btn-signup:hover {
	background: #f1f5f9;
	transform: scale(1.02);
}

@media (max-width: 768px) {
	.fixed-header {
		width: 92%;
		padding: 0 16px;
		top: 12px;
	}

	.header-inner {
		height: 52px;
		gap: 12px;
		flex-wrap: nowrap;
	}

	.header-inner .mobile-menu-btn {
		order: -1;
	}

	.desktop-nav {
		display: none;
	}

	.mobile-nav-open .desktop-nav {
		display: flex;
		flex-direction: column;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		background: rgba(26, 30, 38, 0.98);
		padding: 20px;
		margin-top: 8px;
		border-radius: 16px;
		gap: 0;
		z-index: 100;
	}

	.mobile-nav-open .desktop-nav a {
		padding: 12px 0;
		border-bottom: 1px solid rgba(255, 255, 255, 0.1);
	}

	.mobile-nav-open .desktop-nav a:last-child {
		border-bottom: none;
	}

	.mobile-menu-btn {
		display: flex;
		flex-direction: column;
		gap: 5px;
		background: none;
		border: none;
		cursor: pointer;
		padding: 8px;
	}

	.mobile-menu-btn span {
		width: 22px;
		height: 2px;
		background: white;
		border-radius: 1px;
	}

	.logo-text-main {
		font-size: 1rem;
	}

	.logo-text-sub {
		font-size: 0.6rem;
	}

	.btn-signup {
		padding: 8px 16px;
		font-size: 0.8rem;
		background: #1a1e26;
		color: white;
		border: 1px solid rgba(255, 255, 255, 0.2);
	}

	.btn-signup:hover {
		background: #232730;
	}
}

@media (min-width: 769px) {
	.mobile-menu-btn {
		display: none;
	}
}

/* —— 底栏（与首页 contact-section 同色与层次）—— */
.amazon-brand-site-footer {
	background-color: #0b0e14;
	color: #94a3b8;
	padding: 48px 0 32px;
	border-top: 1px solid rgba(255, 255, 255, 0.06);
	margin-top: auto;
}

.amazon-brand-footer-title {
	font-size: 1.25rem;
	font-weight: 600;
	color: #fff;
	text-align: center;
	margin: 0 0 32px;
}

.amazon-brand-footer-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 32px;
}

.amazon-brand-footer-col h4 {
	color: #fff;
	font-size: 0.95rem;
	font-weight: 600;
	margin: 0 0 12px;
}

.amazon-brand-footer-col p,
.amazon-brand-footer-col li {
	font-size: 0.875rem;
	line-height: 1.6;
}

.amazon-brand-footer-col ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.amazon-brand-footer-col li + li {
	margin-top: 8px;
}

.amazon-brand-footer-col a {
	color: #94a3b8;
}

.amazon-brand-footer-col a:hover {
	color: #e2e8f0;
}

.amazon-brand-footer-bottom {
	margin-top: 40px;
	padding-top: 24px;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
	text-align: center;
	font-size: 0.75rem;
	color: #64748b;
}

@media (max-width: 900px) {
	.amazon-brand-footer-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 520px) {
	.amazon-brand-footer-grid {
		grid-template-columns: 1fr;
	}
}
