/* 首页主体（变量与公共头部见 home_modern.css，由 base 引入） */
.edi-home {
	font-family: var(--edi-font);
	color: var(--edi-text);
	background: var(--edi-bg);
}

/* —— Hero / 轮播 —— */
.edi-hero {
	position: relative;
	margin-bottom: 16px;
}

.edi-home .wst-slide {
	position: relative;
	border-radius: 0 0 var(--edi-radius) var(--edi-radius);
	overflow: hidden;
	max-width: 100%;
}

.edi-home .wst-slide-items {
	list-style: none;
	margin: 0;
	padding: 0;
	min-height: 240px;
}

@media (min-width: 1024px) {
	.edi-home .wst-slide-items {
		min-height: 300px;
	}
}

.edi-home .wst-slide-items li {
	position: relative;
	overflow: hidden;
}

.edi-home .wst-slide-items li > a {
	display: block;
	width: 100%;
	min-height: 240px;
}

@media (min-width: 1024px) {
	.edi-home .wst-slide-items li > a {
		min-height: 300px;
	}
}

.edi-home .wst-slide-items li img {
	width: 100%;
	height: 100%;
	min-height: 240px;
	object-fit: cover;
	display: block;
	vertical-align: top;
}

@media (min-width: 1024px) {
	.edi-home .wst-slide-items li img {
		min-height: 300px;
	}
}

.edi-home .wst-slide-numbox {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 20px;
	z-index: 5;
	pointer-events: none;
}

.edi-home .wst-slide-controls {
	display: flex;
	justify-content: center;
	gap: 8px;
	pointer-events: auto;
}

.edi-home .wst-slide-controls span {
	width: 10px;
	height: 10px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.45);
	text-indent: -9999px;
	overflow: hidden;
	cursor: pointer;
	transition: transform 0.2s, background 0.2s;
	border: none;
	padding: 0;
}

.edi-home .wst-slide-controls span.curr {
	background: #fff;
	transform: scale(1.2);
}

/* —— Category chips —— */
.edi-section {
	margin-bottom: 48px;
}

.edi-section-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 20px;
}

.edi-section-title {
	font-size: 1.35rem;
	font-weight: 700;
	letter-spacing: -0.02em;
	margin: 0;
}

.edi-section-more {
	font-size: 14px;
	font-weight: 600;
	color: var(--edi-accent);
	text-decoration: none;
}

.edi-section-more:hover {
	text-decoration: underline;
}

.edi-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.edi-chip {
	display: inline-flex;
	align-items: center;
	padding: 8px 16px;
	border-radius: 999px;
	background: var(--edi-surface);
	color: var(--edi-text);
	text-decoration: none;
	font-size: 14px;
	font-weight: 500;
	box-shadow: var(--edi-shadow);
	transition: transform 0.15s, box-shadow 0.15s;
}

.edi-chip:hover {
	transform: translateY(-2px);
	box-shadow: var(--edi-shadow-hover);
	color: var(--edi-accent);
}

/* —— Product grid —— */
.edi-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 20px;
}

.edi-card {
	background: var(--edi-surface);
	border-radius: var(--edi-radius);
	overflow: hidden;
	box-shadow: var(--edi-shadow);
	transition: transform 0.2s, box-shadow 0.2s;
	display: flex;
	flex-direction: column;
}

.edi-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--edi-shadow-hover);
}

.edi-card-img {
	aspect-ratio: 1;
	background: #f8fafc;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}

.edi-card-img img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.edi-card-body {
	padding: 14px 16px 16px;
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.edi-card-title {
	font-size: 14px;
	font-weight: 500;
	line-height: 1.45;
	margin: 0;
	color: var(--edi-text);
	text-decoration: none;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.edi-card-title:hover {
	color: var(--edi-accent);
}

.edi-card-meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-top: auto;
	gap: 8px;
}

.edi-price {
	font-size: 18px;
	font-weight: 700;
	color: #dc2626;
}

.edi-price .f12 {
	font-size: 12px;
	font-weight: 600;
}

.edi-add-cart {
	width: 40px;
	height: 40px;
	border-radius: var(--edi-radius-sm);
	border: none;
	background: #eff6ff;
	color: var(--edi-accent);
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.15s;
	flex-shrink: 0;
}

.edi-add-cart:hover {
	background: #dbeafe;
}

/* Coupon strip */
.edi-coupon-strip {
	background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
	border-radius: var(--edi-radius);
	padding: 20px 24px;
	display: grid;
	grid-template-columns: 200px 1fr;
	gap: 20px;
	align-items: center;
	color: #fff;
	margin-bottom: 48px;
}

@media (max-width: 768px) {
	.edi-coupon-strip {
		grid-template-columns: 1fr;
	}
}

.edi-coupon-strip a.edi-coupon-lead {
	color: #fff;
	text-decoration: none;
}

.edi-coupon-lead h3 {
	margin: 0 0 6px;
	font-size: 1.25rem;
}

.edi-coupon-lead p {
	margin: 0;
	opacity: 0.85;
	font-size: 14px;
}

.edi-coupon-row {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.edi-coupon-card {
	flex: 1;
	min-width: 140px;
	background: rgba(255, 255, 255, 0.1);
	border-radius: var(--edi-radius-sm);
	padding: 14px;
	text-align: center;
	text-decoration: none;
	color: #fff;
	transition: background 0.15s;
}

.edi-coupon-card:hover {
	background: rgba(255, 255, 255, 0.18);
}

.edi-coupon-card .amt {
	font-size: 1.5rem;
	font-weight: 700;
}

.edi-coupon-card .sub {
	font-size: 12px;
	opacity: 0.9;
	margin-top: 4px;
}

/* Shop street */
.edi-shops {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 16px;
}

.edi-shop-card {
	border-radius: var(--edi-radius);
	overflow: hidden;
	background: var(--edi-surface);
	box-shadow: var(--edi-shadow);
	transition: transform 0.2s;
}

.edi-shop-card:hover {
	transform: translateY(-3px);
}

.edi-shop-card a {
	display: block;
	text-decoration: none;
	color: inherit;
}

.edi-shop-card img {
	width: 100%;
	height: 120px;
	object-fit: cover;
	display: block;
}

.edi-shop-card .cap {
	padding: 12px;
	font-size: 14px;
	font-weight: 600;
	text-align: center;
}

/* Floors */
.edi-floor {
	margin-bottom: 40px;
}

.edi-floor-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 20px;
	padding-bottom: 12px;
	border-bottom: 2px solid #e2e8f0;
}

.edi-floor-head h2 {
	margin: 0;
	font-size: 1.2rem;
	font-weight: 700;
}

.edi-floor-head h2 a {
	color: inherit;
	text-decoration: none;
}

.edi-floor-head h2 a:hover {
	color: var(--edi-accent);
}

/* Integral / distribute blocks */
.edi-banner-block {
	display: grid;
	grid-template-columns: 220px 1fr;
	gap: 20px;
	background: var(--edi-surface);
	border-radius: var(--edi-radius);
	padding: 20px;
	box-shadow: var(--edi-shadow);
	margin-bottom: 40px;
}

@media (max-width: 640px) {
	.edi-banner-block {
		grid-template-columns: 1fr;
	}
}

.edi-banner-block img {
	max-width: 100%;
	border-radius: var(--edi-radius-sm);
}

.edi-mini-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
	gap: 16px;
}

.edi-home .wst-main {
	background: transparent !important;
	padding-bottom: 48px;
}

.edi-home + * {
	margin-top: 0;
}
