/* =========================================================
   门店 Demo 样式（基于 v5 深蓝 #0d3e83 + 金 #d4af37 设计令牌）
   仅用于 1/ 目录下的 store.html / store-detail.html 演示
   ========================================================= */
:root {
	--brand-blue: #0d3e83;
	--brand-blue-2: #1466b8;
	--brand-gold: #d4af37;
	--brand-gold-soft: #fbf3d9;
	--ink-1: #182338;
	--ink-2: #4a5568;
	--ink-3: #8a93a3;
	--line: #e3e8f0;
	--bg-soft: #f6f8fc;
}

/* ---------- 数据带（demo 新增） ---------- */
.store-databand {
	/* background: var(--brand-blue); */
	background: var(-brand-blue-soft);
	color: #fff;
	padding: 30px 0;
}
.store-databand__inner {
	display: flex;
	justify-content: center;
	align-items: stretch;
	flex-wrap: wrap;
	gap: 0;
}
.store-databand__item {
	flex: 1 1 0;
	min-width: 140px;
	text-align: center;
	padding: 6px 18px;
	position: relative;
}
.store-databand__item + .store-databand__item::before {
	content: "";
	position: absolute;
	left: 0;
	top: 18%;
	height: 64%;
	width: 1px;
	background: rgba(255, 255, 255, .22);
}
.store-databand__num {
	font-size: 34px;
	line-height: 1.1;
	font-weight: 700;
	color: var(--brand-gold);
	letter-spacing: .5px;
}
.store-databand__num small {
	font-size: 15px;
	font-weight: 500;
	color: #fff;
	margin-left: 3px;
}
.store-databand__label {
	font-size: 13px;
	margin-top: 4px;
	opacity: .82;
}

/* ---------- 品牌筛选 chips（demo 新增） ---------- */
.brand-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	padding: 4px 0;
}
.brand-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 14px 6px 10px;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: #fff;
	color: var(--ink-2);
	font-size: 13px;
	cursor: pointer;
	user-select: none;
	transition: all .15s ease;
	white-space: nowrap;
}
.brand-chip:hover {
	border-color: var(--brand-gold);
	color: var(--brand-blue);
}
.brand-chip img {
	height: 18px;
	width: auto;
	max-width: 54px;
	object-fit: contain;
}
.brand-chip__txt {
	font-weight: 500;
}
.brand-chip.is-active {
	border-color: var(--brand-gold);
	background: var(--brand-gold-soft);
	color: var(--brand-blue);
	font-weight: 600;
}
.brand-chip--all.is-active {
	background: var(--brand-blue);
	color: #fff;
	border-color: var(--brand-blue);
}

/* ---------- 筛选栏微调 ---------- */
.store-filter-bar {
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 14px;
	padding: 20px 22px;
	margin-bottom: 26px;
	box-shadow: 0 6px 22px rgba(13, 62, 131, .05);
}
.store-filter-result {
	margin-top: 14px;
	font-size: 14px;
	color: var(--ink-2);
}
.store-filter-result strong {
	color: var(--brand-blue);
	font-size: 18px;
	margin: 0 2px;
}

/* ---------- 门店网格（自包含响应式，不依赖 Bootstrap row-cols，避免 width 被覆盖成 1 列） ---------- */
.store-grid {
	display: grid;
	grid-template-columns: repeat(1, 1fr);
	gap: 16px;
}
@media (min-width: 576px) { .store-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 768px) { .store-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 992px) { .store-grid { grid-template-columns: repeat(4, 1fr); gap: 20px; } }

.store-card-link {
	text-decoration: none;
	color: inherit;
	display: flex;
}
.store-card {
	width: 100%;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 6px;
	overflow: hidden;
	transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
	display: flex;
	flex-direction: column;
}
.store-card-link:hover .store-card {
	transform: translateY(-5px);
	box-shadow: 0 12px 28px rgba(13, 62, 131, .14);
	border-color: var(--ink-3);
}
.store-card__media {
	position: relative;
	aspect-ratio: 16 / 10;
	background: var(--bg-soft);
	overflow: hidden;
}
.store-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.store-card__img {
	opacity: 0;
	transition: opacity .45s ease;
	background: var(--bg-soft);
}
.store-card__img.is-loaded { opacity: 1; }
.store-card__placeholder {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, #0d3e83 0%, #1466b8 100%);
	color: #fff;
	font-size: 16px;
	font-weight: 600;
	text-align: center;
	padding: 10px;
	line-height: 1.4;
}
/* .store-card__brand-tag {
	position: absolute;
	left: 10px;
	bottom: 10px;
	background: rgba(13, 62, 131, .92);
	color: #fff;
	font-size: 12px;
	padding: 3px 10px;
	border-radius: 999px;
} */
.store-card__body {
	padding: 14px 14px 16px;
	display: flex;
	flex-direction: column;
	flex: 1;
}
.store-card__title {
	font-size: 15px;
	font-weight: 600;
	color: var(--ink-1);
	margin: 0 0 6px;
	line-height: 1.4;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	min-height: 42px;
}
.store-card__meta {
	font-size: 12px;
	color: var(--brand-blue);
	margin-bottom: 8px;
}
.store-card__brands {
	display: flex;
	align-items: center;
	gap: 6px;
	flex-wrap: wrap;
	margin: 2px 0 10px;
}
.store-card__brand-tag {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 11.5px;
	line-height: 1;
	color: var(--brand-blue);
	background: var(--bg-soft);
	border: 1px solid var(--line);
	border-radius: 4px;
	padding: 4px 8px;
	white-space: nowrap;
	max-width: 100%;
	position: unset !important;
}
.store-card__brand-tag img {
	height: 14px;
	width: auto;
	max-width: 42px;
	object-fit: contain;
	flex: 0 0 auto;
}
.store-card__brand-name {
	font-weight: 500;
	overflow: hidden;
	text-overflow: ellipsis;
}
/* .store-card-link:hover .store-card__brand-tag {
	border-color: var(--brand-gold);
} */
.store-card__address {
	font-size: 12.5px;
	color: var(--ink-3);
	line-height: 1.5;
	margin: 0;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* ---------- 加载更多 ---------- */
.store-loadmore-wrap {
	text-align: center;
	margin-top: 28px;
}
.btn-loadmore {
	border: 1px solid var(--brand-blue);
	color: var(--brand-blue);
	background: #fff;
	border-radius: 999px;
	padding: 9px 30px;
	font-size: 14px;
	transition: all .15s ease;
}
.btn-loadmore:hover {
	background: var(--brand-blue);
	color: #fff;
}

/* ---------- 筛选入场特效 ---------- */
@keyframes storeCardIn {
	from {
		opacity: 0;
		transform: translateY(18px) scale(.97);
	}
	to {
		opacity: 1;
		transform: none;
	}
}
.store-card-link.card-enter {
	animation: storeCardIn .45s cubic-bezier(.22, .61, .36, 1) both;
	will-change: transform, opacity;
}
/* 结果数跳动（需 inline-block 才能做 transform） */
.store-filter-result strong {
	display: inline-block;
}
.store-filter-result strong.bump {
	animation: numBump .4s ease;
}
@keyframes numBump {
	0% { transform: scale(1); }
	40% { transform: scale(1.4); color: var(--brand-gold); }
	100% { transform: scale(1); }
}
/* 尊重系统"减少动态效果"设置 */
@media (prefers-reduced-motion: reduce) {
	.store-card-link.card-enter,
	.store-filter-result strong.bump {
		animation: none;
	}
	.store-card__img {
		transition: none;
		opacity: 1;
	}
}

/* ---------- 详情页 ---------- */
.detail-store {
	padding: 34px 0 56px;
	background: var(--bg-soft);
}
.store-crumb {
	font-size: 13px;
	color: var(--ink-3);
	margin-bottom: 18px;
}
.store-crumb a { color: var(--ink-2); text-decoration: none; }
.store-crumb a:hover { color: var(--brand-blue); }
.detail-store__layout {
	/* display: grid; */
	grid-template-columns: 1fr 320px;
	gap: 28px;
	align-items: start;
}
.detail-store__panel {
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 14px;
	padding: 26px 28px;
}
.store-detail__brand {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: var(--brand-gold-soft);
	color: var(--brand-blue);
	font-size: 13px;
	font-weight: 600;
	padding: 5px 14px;
	border-radius: 999px;
	margin-bottom: 14px;
}
.store-detail__brand img { height: 18px; }
.store-detail__name {
	font-size: 26px;
	font-weight: 700;
	color: var(--ink-1);
	margin: 0 0 8px;
	line-height: 1.3;
}
.store-detail__loc {
	font-size: 14px;
	color: var(--brand-blue);
	margin-bottom: 22px;
}
/* 地图占位 */
.store-map {
	position: relative;
	height: 240px;
	border-radius: 12px;
	background:
		repeating-linear-gradient(0deg, #eef2f8 0 1px, transparent 1px 28px),
		repeating-linear-gradient(90deg, #eef2f8 0 1px, transparent 1px 28px),
		#f4f7fc;
	border: 1px solid var(--line);
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
}
.store-map__pin {
	position: relative;
	z-index: 2;
	text-align: center;
}
.store-map__pin svg { display: block; margin: 0 auto 6px; }
.store-map__pin span {
	font-size: 13px;
	color: var(--ink-2);
	background: #fff;
	padding: 3px 12px;
	border-radius: 999px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
}
.btn-map-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: 14px;
	background: var(--brand-blue);
	color: #fff;
	font-size: 14px;
	padding: 9px 22px;
	border-radius: 999px;
	text-decoration: none;
	transition: background .15s ease;
}
.btn-map-link:hover { background: #0a3268; color: #fff; }
/* 信息列表 */
.store-detail__info {
	list-style: none;
	padding: 0;
	margin: 22px 0 0;
}
.store-detail__info li {
	display: flex;
	gap: 12px;
	padding: 13px 0;
	border-top: 1px solid var(--line);
	font-size: 14px;
	color: var(--ink-2);
}
.store-detail__info li:first-child { border-top: none; }
.store-detail__info .k {
	flex: 0 0 72px;
	color: var(--ink-3);
}
.store-detail__info .v {
	flex: 1;
	color: var(--ink-1);
}
.demo-tag {
	display: inline-block;
	font-size: 11px;
	color: #b06a00;
	background: #fff4dc;
	border-radius: 4px;
	padding: 1px 6px;
	margin-left: 6px;
	vertical-align: middle;
}
/* 侧栏：同城市门店 */
.detail-store__side .store-detail__panel { padding: 20px 20px; }
.detail-store__side h3 {
	font-size: 16px;
	color: var(--ink-1);
	margin: 0 0 14px;
	padding-bottom: 12px;
	border-bottom: 2px solid var(--brand-gold);
	display: inline-block;
}
.same-city-list { list-style: none; padding: 0; margin: 0; }
.same-city-list li { border-top: 1px solid var(--line); }
.same-city-list li:first-child { border-top: none; }
.same-city-list a {
	display: block;
	padding: 11px 4px;
	text-decoration: none;
	color: var(--ink-1);
	font-size: 14px;
	transition: color .15s ease;
}
.same-city-list a:hover { color: var(--brand-blue); }
.same-city-list .sc-brand {
	display: block;
	font-size: 12px;
	color: var(--brand-blue);
	margin-top: 2px;
}

/* ---------- 门店相册：主图轮播 + 缩略图 ---------- */
.store-gallery { margin-top: 22px; }
.store-gallery__main .carousel-inner {
	border-radius: 12px;
	overflow: hidden;
	border: 1px solid var(--line);
	background: #f4f7fc;
}
.store-gallery__main .carousel-item img {
	width: 100%;
	height: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	display: block;
}
/* 过渡期间淡入淡出（carousel-fade） */
.store-gallery__main .carousel-item {
	transition: opacity .45s ease;
}
/* 左右箭头：圆钮样式 */
.store-gallery__main .carousel-control-prev,
.store-gallery__main .carousel-control-next {
	width: 42px;
	height: 42px;
	top: 50%;
	transform: translateY(-50%);
	margin: 0 14px;
	background: rgba(13, 62, 131, .55);
	border-radius: 50%;
	opacity: 1;
	transition: background .15s ease;
}
.store-gallery__main .carousel-control-prev:hover,
.store-gallery__main .carousel-control-next:hover {
	background: rgba(13, 62, 131, .8);
}
/* 页码指示 */
.store-gallery__counter {
	position: absolute;
	right: 14px;
	bottom: 14px;
	z-index: 3;
	font-size: 12px;
	font-weight: 600;
	color: #fff;
	background: rgba(0, 0, 0, .45);
	padding: 3px 12px;
	border-radius: 999px;
	letter-spacing: 1px;
}
/* 缩略图条：横向滚动，超出可滑动 */
.store-gallery__thumbs {
	display: flex;
	gap: 10px;
	margin-top: 12px;
	overflow-x: auto;
	padding: 2px;
	scrollbar-width: thin;
}
.store-gallery__thumbs::-webkit-scrollbar { height: 6px; }
.store-gallery__thumbs::-webkit-scrollbar-thumb {
	background: #d5dcea;
	border-radius: 999px;
}
.store-gallery__thumb {
	flex: 0 0 auto;
	width: 110px;
	padding: 0;
	border: 2px solid transparent;
	border-radius: 8px;
	overflow: hidden;
	background: #f4f7fc;
	cursor: pointer;
	opacity: .65;
	transition: opacity .15s ease, border-color .15s ease;
}
.store-gallery__thumb img {
	width: 100%;
	height: 100%;
	aspect-ratio: 16 / 10;
	object-fit: cover;
	display: block;
}
.store-gallery__thumb:hover { opacity: 1; }
.store-gallery__thumb.is-active {
	opacity: 1;
	border-color: var(--brand-gold);
}

/* ---------- 响应式 ---------- */
@media (max-width: 991px) {
	.detail-store__layout { grid-template-columns: 1fr; }
}
@media (max-width: 575px) {
	.store-databand__num { font-size: 27px; }
	.store-databand__item { min-width: 50%; }
	.store-gallery__main .carousel-item img { aspect-ratio: 4 / 3; }
	.store-gallery__main .carousel-control-prev,
	.store-gallery__main .carousel-control-next {
		width: 34px;
		height: 34px;
		margin: 0 8px;
	}
	.store-gallery__thumb { width: 88px; }
}