/**
 * /ett/ Hero + Trust — Same-source V2 + Owner delta.
 * Scope: .ett-v8 only. Speech-bubble photos. No trust outer circle.
 */
.ett-home {
	--ett-v8-primary: #26352F;
	--ett-v8-primary-dark: #1D2824;
	--ett-v8-warm: #FAF8F3;
	--ett-v8-white: #FFFFFF;
	--ett-v8-gold: #B89A63;
	--ett-v8-text: #2E2E2B;
	--ett-v8-muted: #746F67;
	--ett-v8-border: #E7E1D7;
	--ett-v8-bubble-mask: url("/view/img/ett_home/v8/svg/bubble-speech-mask.svg");
}

.ett-home > .ett-hero,
.ett-home > .ett-trust { display: none !important; }

.ett-home .ett-v8 {
	width: 100%;
	overflow: hidden;
	background: var(--ett-v8-white);
}

.ett-home .ett-v8__hero {
	position: relative;
	min-height: 308px;
	overflow: hidden;
	padding: 35px clamp(38px, 5vw, 72px) 92px;
	background: var(--ett-v8-warm);
	margin: 0;
	height: auto;
	text-align: left;
}

.ett-home .ett-v8__scene {
	position: absolute;
	inset: 0 0 0 39%;
	z-index: 1;
	overflow: hidden;
}

.ett-home .ett-v8__travel {
	width: 100%;
	height: 100%;
	display: block;
	object-fit: cover;
	object-position: 61% 53%;
	filter: saturate(.94) contrast(.98);
}

.ett-home .ett-v8__scene::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(
		90deg,
		var(--ett-v8-warm) 0%,
		rgba(250, 248, 243, .95) 7%,
		rgba(250, 248, 243, .48) 23%,
		rgba(250, 248, 243, 0) 43%
	);
	pointer-events: none;
}

.ett-home .ett-v8__decor {
	position: absolute;
	inset: 1% 1% auto auto;
	width: 88%;
	height: 92%;
	z-index: 3;
	pointer-events: none;
}

.ett-home .ett-v8__copy {
	position: relative;
	z-index: 5;
	width: min(43vw, 610px);
}

.ett-home .ett-v8__eyebrow {
	margin: 0 0 8px;
	color: var(--ett-v8-gold);
	font-size: 14px;
	font-weight: 700;
	letter-spacing: .08em;
}

.ett-home .ett-v8__hero h1 {
	margin: 0;
	color: var(--ett-v8-primary);
	font-family: "Noto Serif TC", "Songti TC", "PMingLiU", serif;
	font-size: clamp(27px, 2.25vw, 36px);
	font-weight: 700;
	line-height: 1.22;
	letter-spacing: .02em;
	max-width: none;
}

.ett-home .ett-v8__gold-line {
	display: block;
	width: 42px;
	height: 3px;
	margin: 11px 0 8px;
	border-radius: 99px;
	background: var(--ett-v8-gold);
}

.ett-home .ett-v8__lead {
	margin: 0;
	color: var(--ett-v8-muted);
	font-size: 14px;
	line-height: 1.55;
}

/* Speech-bubble photos: continuous mask (body + tail), warm rim + gold edge */
.ett-home .ett-v8__bubble {
	position: absolute;
	z-index: 4;
	margin: 0;
	padding: 0;
	overflow: visible;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	filter: drop-shadow(0 8px 16px rgba(29, 40, 36, .13));
}

.ett-home .ett-v8__bubble::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 0;
	background: var(--ett-v8-gold);
	-webkit-mask: var(--ett-v8-bubble-mask) center / 100% 100% no-repeat;
	mask: var(--ett-v8-bubble-mask) center / 100% 100% no-repeat;
	pointer-events: none;
}

.ett-home .ett-v8__bubble::after {
	content: "";
	position: absolute;
	inset: 2.5px;
	z-index: 1;
	background: var(--ett-v8-warm);
	-webkit-mask: var(--ett-v8-bubble-mask) center / 100% 100% no-repeat;
	mask: var(--ett-v8-bubble-mask) center / 100% 100% no-repeat;
	pointer-events: none;
}

.ett-home .ett-v8__bubble img {
	position: absolute;
	left: 6.5%;
	top: 5%;
	z-index: 2;
	display: block;
	width: 87%;
	height: 74%;
	object-fit: cover;
	border-radius: 50%;
	border: 0;
	box-shadow: none;
}

.ett-home .ett-v8__bubble--food {
	width: 128px;
	height: 147px;
	left: 24%;
	top: 6px;
}
.ett-home .ett-v8__bubble--food img { object-position: 50% 62%; }

.ett-home .ett-v8__bubble--hotel {
	width: 138px;
	height: 158px;
	left: 46%;
	bottom: 6px;
}
.ett-home .ett-v8__bubble--hotel img { object-position: 50% 49%; }

.ett-home .ett-v8__search {
	position: absolute;
	z-index: 7;
	left: clamp(38px, 5vw, 72px);
	bottom: 16px;
	width: min(49vw, 700px);
	height: 58px;
	display: flex;
	align-items: center;
	padding: 5px 6px 5px 18px;
	border: 1px solid rgba(231, 225, 215, .95);
	border-radius: 16px;
	background: var(--ett-v8-white);
	box-shadow: 0 12px 28px rgba(29, 40, 36, .14);
	margin: 0;
}

.ett-home .ett-v8__search > svg {
	flex: 0 0 24px;
	width: 24px;
	height: 24px;
	fill: none;
	stroke: var(--ett-v8-primary);
	stroke-width: 2;
	stroke-linecap: round;
}

.ett-home .ett-v8__search input,
.ett-home .ett-v8__search .ett-search-input {
	min-width: 0;
	flex: 1;
	padding: 0 13px;
	border: 0;
	outline: 0;
	background: transparent;
	color: var(--ett-v8-text);
	font: 400 15px/1.3 "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
	height: auto;
	width: auto;
	border-radius: 0;
	box-shadow: none;
}

.ett-home .ett-v8__search .ett-search-clear {
	position: static;
	flex: none;
	width: 28px;
	height: 28px;
	margin: 0 4px 0 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--ett-v8-muted);
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
}
.ett-home .ett-v8__search .ett-search-clear.is-disabled {
	opacity: .35;
	cursor: default;
}

.ett-home .ett-v8__search button[type="submit"] {
	height: 46px;
	min-width: 96px;
	border: 0;
	border-radius: 12px;
	background: var(--ett-v8-primary);
	color: #fff;
	font: 600 16px "Noto Sans TC", "Microsoft JhengHei", sans-serif;
	cursor: pointer;
	flex: none;
}

.ett-home .ett-v8__trust {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0;
	padding: 24px clamp(38px, 5vw, 72px);
	border-bottom: 1px solid var(--ett-v8-border);
	background: #fff;
}

.ett-home .ett-v8__trust article {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 14px;
	min-width: 0;
	padding: 0 22px;
}

.ett-home .ett-v8__trust article + article::before {
	content: "";
	position: absolute;
	left: 0;
	top: 12%;
	height: 76%;
	width: 1px;
	background: var(--ett-v8-border);
}

.ett-home .ett-v8__trust-art {
	display: block;
	flex: 0 0 58px;
	width: 58px;
	height: 58px;
	background: transparent;
	border: 0;
	border-radius: 0;
	box-shadow: none;
}

.ett-home .ett-v8__trust-art img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.ett-home .ett-v8__trust article div {
	display: flex;
	min-width: 0;
	flex-direction: column;
}

.ett-home .ett-v8__trust strong {
	color: var(--ett-v8-primary);
	font-size: 15px;
	line-height: 1.35;
	white-space: nowrap;
	font-weight: 700;
}

.ett-home .ett-v8__trust article div span {
	margin-top: 3px;
	color: var(--ett-v8-muted);
	font-size: 12px;
	line-height: 1.4;
	white-space: nowrap;
}

/* Tablet */
@media (min-width: 681px) and (max-width: 980px) {
	.ett-home .ett-v8__hero {
		min-height: 500px;
		padding: 42px 42px 96px;
	}
	.ett-home .ett-v8__copy { width: 54%; }
	.ett-home .ett-v8__hero h1 {
		font-size: 34px;
		line-height: 1.24;
	}
	.ett-home .ett-v8__lead {
		font-size: 14px;
		max-width: 430px;
	}
	.ett-home .ett-v8__scene { inset: 0 0 0 31%; }
	.ett-home .ett-v8__scene::after {
		background: linear-gradient(
			90deg,
			var(--ett-v8-warm) 0%,
			rgba(250, 248, 243, .9) 10%,
			rgba(250, 248, 243, .3) 31%,
			transparent 48%
		);
	}
	.ett-home .ett-v8__bubble--food {
		width: 118px;
		height: 135px;
		left: 34%;
		top: 72px;
	}
	.ett-home .ett-v8__bubble--hotel {
		width: 130px;
		height: 149px;
		left: 55%;
		bottom: 96px;
	}
	.ett-home .ett-v8__search {
		left: 42px;
		bottom: 24px;
		width: calc(100% - 84px);
		height: 62px;
	}
	.ett-home .ett-v8__trust { padding: 23px 20px; }
	.ett-home .ett-v8__trust article {
		gap: 10px;
		padding: 0 14px;
	}
	.ett-home .ett-v8__trust-art {
		flex-basis: 46px;
		width: 46px;
		height: 46px;
	}
	.ett-home .ett-v8__trust strong { font-size: 14px; }
	.ett-home .ett-v8__trust article div span { font-size: 11px; }
}

/*
 * Mobile root cause:
 * DOM order is scene → copy → search; scene is position:absolute full-width
 * with fixed inset-top. On real devices (taller copy, different header, or
 * stacking), the absolute scene paints over the text band / overflow:hidden
 * clips it — Owner sees eyebrow/h1/lead "completely gone".
 * Fix: flex column + order so copy is always above a in-flow scene.
 */
@media (max-width: 680px) {
	.ett-home .ett-v8__hero {
		display: flex;
		flex-direction: column;
		align-items: stretch;
		min-height: 0;
		height: auto;
		padding: 22px 16px 18px;
		overflow: visible;
		background: var(--ett-v8-warm);
	}

	.ett-home .ett-v8__copy {
		order: 1;
		position: relative;
		z-index: 3;
		width: 100%;
		flex: 0 0 auto;
		padding: 0 4px 12px;
		background: var(--ett-v8-warm);
	}

	.ett-home .ett-v8__eyebrow {
		font-size: 12px;
		margin-bottom: 6px;
		color: var(--ett-v8-gold);
		opacity: 1;
		visibility: visible;
	}

	.ett-home .ett-v8__hero h1 {
		font-size: 28px;
		line-height: 1.25;
		letter-spacing: .01em;
		color: var(--ett-v8-primary);
		opacity: 1;
		visibility: visible;
	}

	.ett-home .ett-v8__gold-line {
		width: 36px;
		margin: 8px 0 6px;
	}

	.ett-home .ett-v8__lead {
		max-width: 100%;
		font-size: 13px;
		line-height: 1.5;
		color: var(--ett-v8-muted);
		opacity: 1;
		visibility: visible;
	}

	.ett-home .ett-v8__scene {
		order: 2;
		position: relative;
		inset: auto;
		z-index: 1;
		width: 100%;
		height: 340px;
		flex: 0 0 auto;
		overflow: hidden;
		border-radius: 0;
	}

	.ett-home .ett-v8__travel {
		object-position: 68% 48%;
	}

	.ett-home .ett-v8__scene::after {
		background: linear-gradient(
			180deg,
			var(--ett-v8-warm) 0%,
			rgba(250, 248, 243, .35) 12%,
			transparent 28%
		);
	}

	.ett-home .ett-v8__decor {
		inset: 2% 0 auto auto;
		width: 100%;
		height: 88%;
	}

	/* Bubbles inside scene — keep clear of traveler (right) */
	.ett-home .ett-v8__bubble--food {
		width: 78px;
		height: 90px;
		left: 6%;
		top: 10%;
		right: auto;
		bottom: auto;
	}
	.ett-home .ett-v8__bubble--hotel {
		width: 84px;
		height: 96px;
		left: 28%;
		top: auto;
		bottom: 18%;
		right: auto;
	}

	.ett-home .ett-v8__search {
		order: 3;
		position: relative;
		z-index: 4;
		left: auto;
		right: auto;
		bottom: auto;
		width: 100%;
		height: 54px;
		margin: -28px 0 0;
		padding: 4px 5px 4px 12px;
		border-radius: 14px;
		flex: 0 0 auto;
	}

	.ett-home .ett-v8__search > svg {
		flex-basis: 20px;
		width: 20px;
		height: 20px;
	}

	.ett-home .ett-v8__search input,
	.ett-home .ett-v8__search .ett-search-input {
		padding: 0 6px;
		font-size: 13px;
	}

	.ett-home .ett-v8__search .ett-search-clear {
		width: 24px;
		height: 24px;
		margin: 0 2px 0 0;
		font-size: 16px;
	}

	.ett-home .ett-v8__search button[type="submit"] {
		height: 42px;
		min-width: 68px;
		font-size: 14px;
	}

	.ett-home .ett-v8__trust {
		grid-template-columns: 1fr;
		padding: 18px 20px;
		gap: 0;
	}
	.ett-home .ett-v8__trust article {
		justify-content: flex-start;
		gap: 14px;
		padding: 14px 0;
	}
	.ett-home .ett-v8__trust article + article::before {
		top: 0;
		left: 0;
		width: 100%;
		height: 1px;
	}
	.ett-home .ett-v8__trust-art {
		flex-basis: 44px;
		width: 44px;
		height: 44px;
	}
	.ett-home .ett-v8__trust strong { font-size: 15px; }
	.ett-home .ett-v8__trust article div span { font-size: 12px; }
}

@media (min-width: 1200px) {
	.ett-home .ett-v8__hero {
		background-image: none !important;
		height: auto !important;
	}
}

/* /ett/ floating actions — scoped to .ett-home only */
.ett-home .ett-v8__page-top {
	display: block;
	width: 0;
	height: 0;
	margin: 0;
	padding: 0;
	border: 0;
	overflow: hidden;
	position: relative;
	scroll-margin-top: 0;
}

@media (prefers-reduced-motion: no-preference) {
	html:has(.ett-home .ett-v8__floating-actions) {
		scroll-behavior: smooth;
	}
}
@media (prefers-reduced-motion: reduce) {
	html:has(.ett-home .ett-v8__floating-actions) {
		scroll-behavior: auto;
	}
}

.ett-home .ett-v8__floating-actions {
	position: fixed;
	z-index: 50;
	right: 22px;
	bottom: 112px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 14px;
	pointer-events: none;
}

.ett-home .ett-v8__floating-action {
	pointer-events: auto;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: 72px;
	height: 72px;
	padding: 8px;
	border: 1.5px solid rgba(184, 154, 99, .72);
	border-radius: 50%;
	background: var(--ett-v8-primary, #26352F);
	color: var(--ett-v8-warm, #FAF8F3);
	text-align: center;
	text-decoration: none;
	line-height: 1.2;
	box-shadow: 0 8px 18px rgba(29, 40, 36, .16);
	transition: background .18s ease, box-shadow .18s ease, transform .18s ease, opacity .2s ease, visibility .2s ease;
}

.ett-home .ett-v8__floating-action-label {
	display: block;
	font: 700 13px/1.2 "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
	letter-spacing: .02em;
}

/* Apply: warm gold + dark text */
.ett-home .ett-v8__floating-action--apply {
	background: #B89A63;
	color: #1D2824;
	border-color: #8F7546;
}
.ett-home .ett-v8__floating-action--apply:hover {
	background: #C4A872;
	box-shadow: 0 10px 22px rgba(29, 40, 36, .18);
}
.ett-home .ett-v8__floating-action--apply:active {
	background: #A68B55;
	transform: translateY(1px);
	box-shadow: 0 5px 12px rgba(29, 40, 36, .14);
}
.ett-home .ett-v8__floating-action--apply:focus-visible {
	outline: 2px solid #1D2824;
	outline-offset: 3px;
}

/* Top: deep green; hidden until page top leaves viewport */
.ett-home .ett-v8__floating-action--top {
	gap: 1px;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
}
.ett-home .ett-v8__floating-action--top.is-visible {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}
.ett-home .ett-v8__floating-action--top:hover {
	background: var(--ett-v8-primary-dark, #1D2824);
	box-shadow: 0 10px 22px rgba(29, 40, 36, .2);
}
.ett-home .ett-v8__floating-action--top:active {
	transform: translateY(1px);
	box-shadow: 0 5px 12px rgba(29, 40, 36, .16);
}
.ett-home .ett-v8__floating-action--top:focus-visible {
	outline: 2px solid var(--ett-v8-gold, #B89A63);
	outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
	.ett-home .ett-v8__floating-action,
	.ett-home .ett-v8__floating-action--top {
		transition: none;
	}
}

.ett-home .ett-v8__floating-action-arrow {
	display: block;
	font-size: 18px;
	line-height: 1;
	font-weight: 700;
}

.ett-home .ett-v8__floating-action-top-text {
	display: block;
	font: 700 13px/1 "Noto Sans TC", "Microsoft JhengHei", sans-serif;
	letter-spacing: .04em;
}

.ett-home .ett-v8__floating-action:focus {
	outline: none;
}

@media (min-width: 681px) and (max-width: 980px) {
	.ett-home .ett-v8__floating-actions {
		right: 16px;
		bottom: 96px;
		gap: 12px;
	}
	.ett-home .ett-v8__floating-action {
		width: 64px;
		height: 64px;
		padding: 7px;
	}
	.ett-home .ett-v8__floating-action-label {
		font-size: 12px;
	}
	.ett-home .ett-v8__floating-action-arrow {
		font-size: 16px;
	}
	.ett-home .ett-v8__floating-action-top-text {
		font-size: 12px;
	}
}

@media (max-width: 680px) {
	.ett-home .ett-v8__floating-actions {
		right: 12px;
		bottom: calc(18px + env(safe-area-inset-bottom, 0px));
		gap: 10px;
	}
	.ett-home .ett-v8__floating-action {
		width: 56px;
		height: 56px;
		padding: 6px;
	}
	.ett-home .ett-v8__floating-action-label {
		font-size: 11px;
		line-height: 1.15;
	}
	.ett-home .ett-v8__floating-action-arrow {
		font-size: 15px;
	}
	.ett-home .ett-v8__floating-action-top-text {
		font-size: 11px;
	}
}
