/* ==========================================================================
   购物车 / 用户中心统一精简头部
   白底单行：品牌（蓝方块 logo + 公司名） + 购物车 + 登录 / 免费注册（或用户菜单）
   覆盖会员中心旧顶栏（.v2-ca-top）与登录页顶栏（.v2-auth-*）
   ========================================================================== */

body.v2-ca { --v2-ca-header-h: 60px; }

#page-topbar.v2-slim {
	background: #fff;
	box-shadow: none;
	border-bottom: 1px solid #eef1f6;
}

.v2-slim-in {
	display: flex;
	align-items: center;
	gap: 10px;
	height: 60px;
	max-width: none;
	padding: 0 20px;
}

.v2-slim-burger { display: none; color: #12181F; font-size: 18px; }
@media (max-width: 992px) {
	.v2-slim-burger { display: inline-flex; }
}

.v2-slim-brand {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	height: 32px;
	min-width: 0;
	flex: 0 0 auto;
	text-decoration: none !important;
}

.v2-slim-mark {
	width: 22px;
	height: 22px;
	border-radius: 6px;
	background: linear-gradient(135deg, #1B5CE6, #5B8DEF);
	flex: 0 0 auto;
}

.v2-slim-name {
	font-size: 17px;
	font-weight: 700;
	color: #12181F;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.v2-slim-actions {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-left: auto;
	flex: 0 0 auto;
}

.v2-slim-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 6px;
	color: #4A5568;
	text-decoration: none !important;
	transition: background-color .18s ease, color .18s ease;
}
.v2-slim-icon:hover { background: #EFF4FF; color: #1B5CE6; }
.v2-slim-icon svg { display: block; }

.v2-slim-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 32px;
	padding: 0 12px;
	border-radius: 4px;
	font-size: 13.5px;
	font-weight: 500;
	line-height: 1;
	white-space: nowrap;
	text-decoration: none !important;
	transition: background-color .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease;
}
.v2-slim-btn--ghost {
	border: 1px solid #E3E8F0;
	background: #fff;
	color: #4A5568;
}
.v2-slim-btn--ghost:hover { border-color: #1B5CE6; color: #1B5CE6; }
.v2-slim-btn--primary {
	border: 1px solid #1B5CE6;
	background: linear-gradient(135deg, #1B5CE6 0%, #1752C0 100%);
	color: #fff;
}
.v2-slim-btn--primary:hover { color: #fff; box-shadow: 0 4px 14px rgba(27, 92, 230, .32); }

/* ---------------- 登录态：头像 + 下拉 ---------------- */
.v2-slim-user {
	position: relative;
	display: flex;
	align-items: center;
	height: 32px;
}

.v2-slim-user-btn {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	height: 32px;
	padding: 0 6px;
	border: 0;
	border-radius: 6px;
	background: transparent;
	color: #4A5568;
	cursor: pointer;
	transition: background-color .18s ease;
}
.v2-slim-user-btn:hover { background: #EFF4FF; }

.v2-slim-avatar {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	object-fit: cover;
	background: #E8EFFF;
	flex: 0 0 auto;
	overflow: hidden;
}
.v2-slim-avatar--txt {
	color: #1B5CE6;
	font-size: 13px;
	font-weight: 600;
	line-height: 1;
	text-transform: uppercase;
}
.v2-slim-avatar--logo {
	background: #fff;
	border: 1px solid #E3E8F0;
	object-fit: cover;
	object-position: left center;
}

.v2-slim-uname {
	max-width: 120px;
	font-size: 14px;
	font-weight: 500;
	color: #12181F;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.v2-slim-user-btn i { font-size: 16px; color: #8A94A6; }

.v2-slim-drop {
	position: absolute;
	top: calc(100% + 6px);
	right: 0;
	z-index: 1200;
	min-width: 236px;
	padding: 8px;
	border: 1px solid #E9EDF5;
	border-radius: 10px;
	background: #fff;
	box-shadow: 0 10px 28px rgba(18, 24, 31, .12);
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: opacity .16s ease, transform .16s ease, visibility .16s ease;
}
.v2-slim-user:hover .v2-slim-drop,
.v2-slim-user:focus-within .v2-slim-drop {
	opacity: 1;
	visibility: visible;
	transform: none;
}

.v2-slim-drop-hd {
	display: flex;
	align-items: center;
	gap: 9px;
	padding: 8px 8px 10px;
}
.v2-slim-drop-hd strong { display: block; font-size: 13px; color: #12181F; }
.v2-slim-drop-hd em {
	display: block;
	font-size: 12px;
	font-style: normal;
	color: #8A94A6;
	word-break: break-all;
}

.v2-slim-drop-balance {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-bottom: 4px;
	padding: 8px;
	border-radius: 8px;
	background: #F5F8FE;
	font-size: 12px;
	color: #8A94A6;
}
.v2-slim-drop-balance b { font-size: 14px; color: #1B5CE6; }
.v2-slim-drop-balance a { margin-left: auto; font-size: 12px; color: #1B5CE6; text-decoration: none; }

.v2-slim-drop-item {
	display: flex;
	align-items: center;
	gap: 9px;
	height: 36px;
	padding: 0 8px;
	border-radius: 7px;
	font-size: 13px;
	color: #2B3441;
	text-decoration: none !important;
}
.v2-slim-drop-item i { font-size: 16px; color: #8A94A6; }
.v2-slim-drop-item:hover { background: #F2F6FF; color: #1B5CE6; }
.v2-slim-drop-item:hover i { color: #1B5CE6; }
.v2-slim-drop-item--danger,
.v2-slim-drop-item--danger i { color: #E5484D; }
.v2-slim-drop-sep { height: 1px; margin: 6px 4px; background: #EEF1F6; }

@media (max-width: 992px) {
	.v2-slim-in { padding: 0 16px; gap: 8px; }
	.v2-slim-name { font-size: 16px; }
	.v2-slim-uname { display: none; }
}
@media (max-width: 420px) {
	.v2-slim-btn { padding: 0 9px; font-size: 12.5px; }
}

/* ---------------- 登录 / 注册页顶栏同款 ---------------- */
.login-page .v2-auth-wrap {
	max-width: none;
	padding: 0 14px;
	gap: 14px;
}
.v2-auth-cart {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border-radius: 8px;
	color: #4A5568;
	text-decoration: none !important;
	transition: background-color .18s ease, color .18s ease;
}
.v2-auth-cart:hover { background: #EFF4FF; color: #1B5CE6; }
.v2-auth-cart svg { display: block; }

/* 品牌 Logo 图片（来自模板管理后台） */
.v2-slim-logo { height: 30px; width: auto; max-width: 200px; object-fit: contain; display: block; }
@media (max-width: 900px) { .v2-slim-logo { height: 24px; max-width: 150px; } }
