/* Home specialists panel — HKSH-inspired split list (Virtus blue) */
.vm-home-spec-wrap { margin: 0; padding: 0; overflow-x: clip; }
.vm-home-spec {
	--vm-blue: #2f9dd3;
	--vm-blue-deep: #1e7faf;
	--vm-ink: #1A2B3C;
	--vm-muted: #5a6b7c;
	--vm-line: #e2e8ef;
	--vm-panel-bg: #f3f6f9;
	padding: 36px 0 40px;
	background: var(--vm-panel-bg);
	font-family: GothamBook, "Microsoft JhengHei", "PingFang TC", sans-serif;
	overflow-x: clip;
}
/* Keep content inside site frame (same Bootstrap .container as 最新資訊) */
.vm-home-spec > .container {
	width: 100%;
	max-width: 1140px;
	margin-left: auto;
	margin-right: auto;
	box-sizing: border-box;
}
.vm-home-spec__title {
	margin: 0 0 22px;
	padding: 0;
	font-size: clamp(1.45rem, 2.4vw, 1.85rem);
	font-weight: 700;
	color: var(--vm-ink);
	letter-spacing: .02em;
	text-align: left;
}
.vm-home-spec__title::after {
	content: "";
	display: block;
	width: 42px;
	height: 3px;
	margin-top: 10px;
	background: var(--vm-blue);
	border-radius: 2px;
}
.vm-spec-panel {
	display: grid;
	grid-template-columns: minmax(140px, 0.42fr) minmax(0, 1.58fr);
	gap: 28px 28px;
	align-items: stretch;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	box-sizing: border-box;
}
.vm-spec-panel__visual {
	position: relative;
	min-height: 260px;
	max-width: 220px;
	width: 100%;
	margin: auto 0;
	overflow: visible;
}
/* Overlapping solid blue boxes — smaller (no photo, no pattern) */
.vm-spec-panel__box {
	position: absolute;
	inset: 8% 22% 18% 0;
	background: #b8dff2;
	z-index: 1;
}
.vm-spec-panel__box--front {
	inset: 22% 0 4% 20%;
	background: #7ec8e8;
	box-shadow: 0 10px 24px rgba(26,43,60,.08);
	z-index: 2;
}
.vm-spec-panel__body {
	display: flex;
	flex-direction: column;
	min-width: 0;
}
.vm-spec-panel__viewport {
	position: relative;
	overflow: hidden;
	flex: 1 1 auto;
	min-height: 280px;
}
/* Hidden bag — JS moves items into pages */
[data-vm-spec-items] {
	display: none !important;
}
.vm-spec-page {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	grid-template-rows: repeat(4, auto);
	column-gap: 24px;
	grid-auto-flow: row;
	align-content: start;
	position: absolute;
	left: 0;
	right: 0;
	top: 0;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transform: none; /* only animate while entering/exiting — avoids mobile overflow */
	transition: opacity .45s ease, transform .45s ease, visibility .45s;
	z-index: 0;
}
.vm-spec-page.is-active {
	position: relative;
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	transform: translateX(0);
	z-index: 2;
}
.vm-spec-page.is-active.is-dir-next { transform: translateX(28px); }
.vm-spec-page.is-active.is-dir-prev { transform: translateX(-28px); }
.vm-spec-page.is-exit {
	position: absolute;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	z-index: 1;
}
.vm-spec-page.is-exit.is-dir-next { transform: translateX(-28px); }
.vm-spec-page.is-exit.is-dir-prev { transform: translateX(28px); }
.vm-spec-item {
	display: grid;
	grid-template-columns: 48px 1fr 14px;
	align-items: center;
	gap: 12px;
	padding: 14px 4px;
	border-bottom: 1px solid var(--vm-line);
	color: var(--vm-ink);
	text-decoration: none !important;
	transition: background .16s ease, color .16s ease;
}
.vm-spec-item:hover,
.vm-spec-item:focus-visible {
	color: var(--vm-blue-deep);
	background: rgba(47,157,211,.06);
	outline: none;
}
.vm-spec-item__ico {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: rgba(47,157,211,.14);
	display: inline-flex;
	align-items: center;
	justify-content: center;
}
.vm-spec-item__ico img {
	width: 30px;
	height: 30px;
	object-fit: contain;
	display: block;
}
.vm-spec-item__name {
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.35;
	min-width: 0;
}
.vm-spec-item__arrow {
	width: 0;
	height: 0;
	border-style: solid;
	border-width: 5px 0 5px 7px;
	border-color: transparent transparent transparent var(--vm-blue);
	justify-self: end;
}
.vm-spec-panel__foot {
	display: flex;
	align-items: center;
	gap: 16px;
	flex-wrap: wrap;
	margin-top: 18px;
	padding-top: 6px;
}
.vm-spec-dots {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	flex: 1 1 auto;
	min-width: 120px;
}
.vm-spec-dots__bar {
	height: 6px;
	border-radius: 999px;
	background: #d5dee7;
	overflow: hidden;
	width: min(160px, 40vw);
	position: relative;
}
.vm-spec-dots__fill {
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	width: 28%;
	border-radius: inherit;
	background: var(--vm-blue);
	transition: left .25s ease, width .25s ease;
}
.vm-spec-dots__pip {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	border: 0;
	padding: 0;
	background: #c5d0db;
	cursor: pointer;
}
.vm-spec-dots__pip.is-active { background: var(--vm-blue); }
.vm-spec-nav {
	display: inline-flex;
	align-items: center;
	gap: 10px;
}
.vm-spec-nav__btn {
	width: 40px;
	height: 40px;
	border: 0;
	background: transparent;
	color: var(--vm-ink);
	cursor: pointer;
	font-size: 1.35rem;
	line-height: 1;
	padding: 0;
	position: relative;
	z-index: 2;
}
.vm-spec-nav__btn:disabled {
	opacity: .28;
	cursor: default;
}
.vm-spec-nav__btn:not(:disabled):hover { color: var(--vm-blue-deep); }
.vm-spec-cta {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin-left: auto;
	color: var(--vm-blue-deep);
	font-weight: 700;
	font-size: 0.95rem;
	text-decoration: none !important;
}
.vm-spec-cta__box {
	width: 36px;
	height: 36px;
	background: var(--vm-blue);
	color: #fff;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
}
.vm-spec-cta__box svg { width: 16px; height: 16px; display: block; }
.vm-spec-cta:hover { color: var(--vm-ink); }
.vm-spec-cta:hover .vm-spec-cta__box { background: var(--vm-blue-deep); }

/* HKSH-style shortcuts — hidden for now */
.vm-spec-actions-wrap {
	display: none !important;
}
.vm-spec-actions {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 12px;
	margin: 0;
	padding: 0;
	border: 0;
}
.vm-spec-actions__btn {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 96px;
	padding: 16px 10px;
	background: #fff;
	border: 1px solid #d7e3ec;
	color: var(--vm-ink);
	text-decoration: none !important;
	text-align: center;
	transition: border-color .16s ease, color .16s ease, background .16s ease, box-shadow .16s ease;
}
.vm-spec-actions__btn:hover,
.vm-spec-actions__btn:focus-visible {
	border-color: var(--vm-blue);
	color: var(--vm-blue-deep);
	background: #f7fbfe;
	box-shadow: 0 6px 18px rgba(26,43,60,.06);
	outline: none;
}
.vm-spec-actions__ico {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: rgba(47,157,211,.12);
	color: var(--vm-blue-deep);
	display: inline-flex;
	align-items: center;
	justify-content: center;
}
.vm-spec-actions__ico svg {
	width: 20px;
	height: 20px;
	display: block;
}
.vm-spec-actions__label {
	font-size: 0.95rem;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: .02em;
}
.vm-spec-actions__btn.is-disabled {
	opacity: .45;
	cursor: not-allowed;
	pointer-events: none;
	box-shadow: none;
	background: #f6f8fa;
	color: var(--vm-muted);
}
.vm-spec-actions__btn.is-disabled .vm-spec-actions__ico {
	background: #e8eef3;
	color: #8a9aab;
}

@media (max-width: 991.98px) {
	.vm-spec-panel {
		grid-template-columns: 1fr;
		gap: 0;
	}
	/* Mobile: no blue boxes — list aligns with section title */
	.vm-spec-panel__visual {
		display: none !important;
	}
	.vm-spec-panel__viewport { min-height: 0; overflow: hidden; }
	.vm-spec-page,
	.vm-spec-page.is-active { grid-template-columns: 1fr; column-gap: 0; }
	.vm-home-spec__title {
		margin: 0 0 18px;
	}
	.vm-spec-item {
		padding-left: 0;
		padding-right: 0;
	}
	.vm-spec-actions {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}
@media (max-width: 640px) {
	.vm-home-spec { padding: 24px 0 28px; }
	.vm-spec-item { padding: 12px 2px; }
	.vm-spec-item__name { font-size: 0.95rem; }
	.vm-spec-panel__foot { gap: 12px; }
	.vm-spec-cta { margin-left: 0; width: 100%; justify-content: flex-end; }
	.vm-spec-actions-wrap { padding: 20px 0 4px; }
	.vm-spec-actions {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 10px;
	}
	.vm-spec-actions__btn {
		min-height: 84px;
		padding: 14px 8px;
		gap: 8px;
	}
	.vm-spec-actions__label { font-size: 0.88rem; }
}
