/* 2026-11-26 前台首頁改版（接續商品列表 #141～#144）：
   顏色、按鈕跟列表頁一致（深藍主色）；新品輪播卡片等高、品名兩行、按鈕對齊底部；最新消息的 more 改成小外框連結。
   只換外觀，不動 slick 設定與連結。 */
:root {
	--hm-pri: #1f7fb5;
	--hm-pri-d: #17668f;
	--hm-pri-l: #eef6fb;
	--hm-ink: #1f2933;
	--hm-ink2: #52606d;
	--hm-mute: #8a96a3;
	--hm-line: #e3e8ee;
}

/* ---------- 新品輪播 ---------- */
#productArea {
	background: #f3f5f8;
	border-radius: 12px;
}
#productArea .slick-track { display: flex; }
#productArea .slick-slide { height: auto; }
.productList {
	justify-content: flex-start;
	gap: 10px;
	height: auto;
	padding: 22px 10px;
}
.productList img {
	aspect-ratio: 1 / 1;
	object-fit: cover;
	background: #fff;
	border: 1px solid var(--hm-line);
	border-radius: 10px;
	transition: transform .2s ease, box-shadow .2s ease;
}
.productList:hover img {
	transform: translateY(-2px);
	box-shadow: 0 8px 20px rgba(16, 24, 40, .12);
}
.productList p {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	width: 100%;
	min-height: 3em;
	margin: 2px 0 0;
	color: var(--hm-ink);
	font-size: 14.5px;
	font-weight: 600;
	line-height: 1.5;
	letter-spacing: normal;
	text-align: center;
}
.productList .button {
	margin-top: auto;
	height: 38px;
	padding: 0 22px;
	border-radius: 8px;
	box-shadow: none;
	background: var(--hm-pri);
	font-size: 14px;
	font-weight: 700;
}
.productList .button:hover { background: var(--hm-pri-d); text-decoration: none; }

/* 輪播左右箭頭原本 0.25 透明度幾乎看不到 */
#productArea .slick-prev,
#productArea .slick-next,
#bannerArea .slick-prev,
#bannerArea .slick-next { opacity: .6; }
#productArea .slick-prev:hover,
#productArea .slick-next:hover,
#bannerArea .slick-prev:hover,
#bannerArea .slick-next:hover { opacity: 1; }

/* ---------- 左側「線上購物」與 LINE 區 ---------- */
#BBTN {
	background: var(--hm-pri);
	box-shadow: 0 2px 8px rgba(31, 127, 181, .25);
}
#BBTN:hover { background: var(--hm-pri-d); }
#AD {
	background: transparent;
	border-radius: 10px;
	overflow: hidden;
}

/* ---------- 最新消息 ---------- */
#indexNews {
	/* 用陰影畫框線不用 border：#indexNews 是 calc(100% - 295px) 浮動，多 2px 邊框就會被擠到左欄下面 */
	border-radius: 10px;
	box-shadow: 0 0 0 1px var(--hm-line);
	overflow: hidden;
}
#indexNews .title {
	color: var(--hm-ink);
	border-bottom: 1px solid var(--hm-line);
}
#news { margin: 10px 24px 6px; width: calc(100% - 48px); }
#news li {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 6px 8px;
	line-height: 1.6;
	border-bottom: 1px solid #eef1f4;
	border-radius: 6px;
	transition: background .12s ease;
}
#news li:last-child { border-bottom: 0; }
#news li:hover { background: #f8fbfd; }
#news .date {
	float: none;
	flex: none;
	width: auto;
	margin: 0;
	color: var(--hm-mute);
	font-size: 14px;
	font-variant-numeric: tabular-nums;
}
#news .newsText {
	float: none;
	flex: 1;
	width: auto;
	min-width: 0;
	margin: 0;
	color: var(--hm-ink);
}
#news li > a { flex: none; }
#news .more {
	padding: 3px 14px;
	border: 1.5px solid var(--hm-pri);
	border-radius: 999px;
	box-shadow: none;
	background: #fff;
	color: var(--hm-pri-d);
	font-size: 13px;
	font-weight: 700;
	line-height: 1.5;
}
#news .more:hover { background: var(--hm-pri-l); }

@media (prefers-reduced-motion: reduce) {
	.productList img, #news li { transition: none; }
	.productList:hover img { transform: none; }
}

/* ---------- 2026-11-26 寬螢幕尺寸（#1055 改滿版後圖太大） ---------- */
/* 主橫幅：最高 400px，寬度照樣撐滿；超出的只裁上下（左邊的標語文字不會被切到） */
.bannerList img {
	display: block;
	height: auto;
	max-height: 400px;
	object-fit: cover;
	object-position: center;
}
