.home-page {
	max-width: none;
	padding: 0;
	overflow: hidden;
}

.home-container {
	width: min(1200px, calc(100% - 48px));
	margin: 0 auto;
}

.home-hero {
	position: relative;
	min-height: clamp(560px, 43.75vw, 840px);
	overflow: hidden;
	color: #fff;
	background: #287cbd var(--home-hero-image, url("/public/images/home/hero-mountains.webp")) center 47% / cover no-repeat;
}

.home-hero::before,
.home-hero::after {
	position: absolute;
	right: 0;
	left: 0;
	content: "";
	pointer-events: none;
}

.home-hero::before {
	top: 0;
	height: 41.2%;
	background: linear-gradient(180deg, rgba(0, 112, 221, 0.35), rgba(0, 112, 221, 0));
}

.home-hero::after {
	bottom: 0;
	height: 24.72%;
	background: linear-gradient(0deg, rgba(0, 112, 221, 0.35), rgba(0, 112, 221, 0));
}

.hero-inner {
	position: relative;
	z-index: 1;
	width: min(1200px, calc(100% - 48px));
	margin: auto;
	padding-top: 60px;
	font-family: Inter, sans-serif;
}

.hero-kicker {
	margin: 0 0 12px;
	color: rgba(255, 255, 255);
	font-size: 22px;
	font-weight: 500;
	font-family: Inter, sans-serif;
}

.hero-kicker::before {
	content: "";
	display: inline-block;
	width: 8px;
	height: 8px;
	margin-right: 10px;
	border-radius: 50%;
	background: #ff7849;
	vertical-align: 4px;
}

.hero-inner h1 {
	max-width: 810px;
	margin: 0;
	color: #fff;
	font-size: 60px;
	line-height: 1.13;
	letter-spacing: -1.8px;
	font-weight: 700;
}

.hero-subtitle {
	margin: 20px 0 0;
	color: rgba(255, 255, 255, 0.86);
	font-size: 20px;
	font-weight: 500;
	font-family: Inter, sans-serif;
}

.hero-script {
	margin-top: 24px;
	color: #fff;
	font-size: clamp(52px, 7vw, 112px);
	line-height: 1.05;
	font-weight: 700;
	font-style: italic;
	letter-spacing: -5px;
	text-shadow: 0 4px 14px rgba(13, 48, 85, 0.15);
	transform: rotate(-5deg);
	transform-origin: left center;
}

.hero-destination-search {
	position: relative;
	display: flex;
	align-items: center;
	gap: 12px;
	width: min(100%, 1200px);
	/* grid 子项默认 min-width:auto，输入框的固有宽度会把整列撑出容器。 */
	min-width: 0;
	height: 66px;
	margin-top: clamp(60px, 7vw, 130px);
	padding: 8px 9px 8px 20px;
	border: 1px solid rgba(255, 255, 255, 0.65);
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.92);
	box-shadow: 0 12px 35px rgba(20, 58, 95, 0.16);
}

.hero-pin {
	color: #3296f2;
	font-size: 23px;
}

.hero-destination-search input {
	flex: 1;
	min-width: 0;
	height: 100%;
	border: 0;
	outline: 0;
	background: transparent;
	color: #263d55;
	font-size: 18px;
}

.hero-destination-search input::placeholder {
	color: #78889a;
}

.hero-destination-search button {
	display: grid;
	place-items: center;
	width: 70px;
	height: 48px;
	border: 0;
	border-radius: 9px;
	background: #268df2;
}

.hero-destination-search button img {
	width: 44px;
	height: 44px;
	object-fit: contain;
}

.home-destinations-wrap {
	background: radial-gradient(ellipse at 95% 30%, #e8f4ff, transparent 60%),
		radial-gradient(ellipse at 5% 70%, #fff0eb, transparent 60%), #fbfcfe;
}

.home-destinations {
	padding: 76px 0 58px;
	background: transparent;
}

.home-section-heading {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: 28px;
}

.home-section-heading h2 {
	margin: 0;
	color: #252a33;
	font-size: clamp(32px, 3vw, 48px);
	line-height: 1.18;
	letter-spacing: -1.2px;
	font-weight: 700;
}

.home-section-heading h2 em {
	color: #268df2;
	font-style: normal;
}

.home-section-heading h2 b {
	color: #ff7548;
}

.home-section-heading>img {
	width: 66px;
	height: 66px;
	object-fit: contain;
}

.destination-tabs {
	display: inline-flex;
	padding: 4px;
	border-radius: 30px;
	background: #edf0f5;
}

.destination-tabs button {
	min-width: 138px;
	height: 42px;
	padding: 0 22px;
	border: 0;
	border-radius: 24px;
	background: transparent;
	color: #5d6c7e;
	font-size: 15px;
}

.destination-tabs button.active {
	background: linear-gradient(180deg, #2F92FF 0%, #20A3FF 100%) !important;
	color: #fff;
	box-shadow: 0 4px 10px rgba(38, 141, 242, 0.2);
}

.home-destination-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px 20px;
	margin-top: 24px;
}

.home-destination-card {
	display: flex;
	align-items: center;
	min-width: 0;
	min-height: 100px;
	gap: 12px;
	padding: 20px;
	border: 1px solid #EBEDF0;
	border-radius: 50px;
	background: #FFFFFF;
	color: #25364b;
	transition:
		border-color 0.2s,
		background 0.2s,
		box-shadow 0.2s;
}

.home-destination-card:hover {
	border: 1px solid #268DF2;
	border-radius: 50px;
	background: linear-gradient(180deg, #F5FAFF 0%, #E7F3FF 100%);
	box-shadow: 0px 8px 24px 0px rgba(38, 141, 242, 0.14);
}

.home-destination-flag {
	display: grid;
	place-items: center;
	/* flex: 0 0 30px; */
	width: 60px;
	height: 60px;
	font-size: 22px;
}

.home-destination-flag img {
	display: block;
	width: 60px;
	height: 60px;
	object-fit: contain;
}

.home-destination-name {
	overflow: hidden;
	flex: 1;
	font-size: 16px;
	font-weight: 600;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.home-destination-price {
	flex: 0 0 auto;
	color: #9aa5b3;
	font-size: 18px;
	white-space: nowrap;
}

.home-destination-price strong {
	color: #f08b69;
	font-weight: 600;
}

.destination-all {
	display: flex;
	width: fit-content;
	min-height: 56px;
	gap: 12px;
	margin: 28px auto 0;
	padding: 0 21px;
	border-radius: 30px;
	font-size: 14px;
}

.destination-all span:last-child {
	display: grid;
	place-items: center;
	width: 21px;
	height: 21px;
	border-radius: 50%;
	background: #fff;
	color: #268df2;
	font-size: 19px;
}

.referral-wrap {
	padding: 20px 24px 70px;
	background: transparent;
}

.referral-banner {
	position: relative;
	display: flex;
	align-items: center;
	width: min(1200px, 100%);
	min-height: 220px;
	margin: auto;
	overflow: visible;
	border-radius: 24px;
	background: #ff7048;
	color: #fff;
}

.referral-copy {
	position: relative;
	z-index: 1;
	max-width: 720px;
	padding: 34px 44px;
}

.referral-copy h2 {
	margin: 0;
	font-size: clamp(26px, 2.5vw, 40px);
	line-height: 1.2;
}

.referral-copy p {
	margin: 15px 0 0;
	font-size: 16px;
}

.referral-learn-more {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: 14px;
	padding: 9px 16px;
	border-radius: 20px;
	background: #fff;
	color: #111b2d;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
}

.referral-learn-more:hover {
	color: #1677ff;
}

.referral-learn-more:focus-visible {
	outline: 3px solid #fff;
	outline-offset: 3px;
}

.referral-art {
	position: absolute;
	right: 25px;
	bottom: -12px;
	width: min(38%, 450px);
	height: 110%;
	object-fit: contain;
	object-position: right bottom;
}

.home-esim {
	background-color: #f5f7fb;
}

.esim-content {
	position: relative;
	isolation: isolate;
	display: grid;
	grid-template-columns: 0.9fr 1.1fr;
	align-items: center;
	min-height: 420px;
	background-color: #f8fafc;
	padding: 100px 0;
}

/* 背景图外层 picture 必须绝对定位、脱离 grid 流，等价于原始结构里那张
   position:absolute 的 img。否则 picture 会成为 .esim-content 的第一个 grid 项，
   把文案挤到第二列、photo 掉到第二行，污染桌面两列布局。 */
.esim-content>picture {
	position: absolute;
	z-index: 0;
	inset: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
}

.esim-content-background {
	position: absolute;
	z-index: 0;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 58% center;
	pointer-events: none;
}

.esim-copy {
	position: relative;
	z-index: 1;
	max-width: 530px;
}

.esim-copy h2 {
	margin: 0 0 32px;
	color: #252a33;
	font-size: clamp(34px, 3.4vw, 52px);
	letter-spacing: -1.3px;
	/* 标题在所有端保持单行（含 PC）。 */
	white-space: nowrap;
}

/* 法语文案更长，单行下按可用宽度缩小字号，避免溢出容器。 */
html[lang="fr"] .esim-copy h2 {
	font-size: min(34px, 3.8vw);
}

.esim-copy h2 em {
	color: #268df2;
	font-style: normal;
}

.esim-copy h2 b {
	color: #ff7548;
}

.esim-copy p {
	max-width: 460px;
	margin: 0 0 14px;
	color: #5d6876;
	font-size: 18px;
	line-height: 1.65;
	font-weight: 500;
}

.esim-pills {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 20px;
}

.esim-pills span {
	padding: 6px 12px;
	border: 1px solid #268DF2;
	border-radius: 10px;
	background: #f7fbff;
	color: #268df2;
	font-size: 16px;
	font-weight: 500;
}

.small-link {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	margin-top: 24px;
	padding: 9px 15px;
	border: 1px solid #e7ecf2;
	border-radius: 30px;
	background: #fff;
	color: #25364b;
	font-size: 16px;
	font-weight: 500;
	box-shadow: 0 3px 9px rgba(28, 53, 83, 0.04);
}

.small-link b {
	color: #ff7548;
	font-size: 18px;
}

.esim-photo {
	align-self: stretch;
	min-height: 390px;
	background: url("/public/images/home/esim-photo-background.png") center/cover no-repeat;
}

.home-benefits {
	padding: 82px 0 90px;
	background: #fafafc;
}

.home-benefits .home-section-heading {
	margin-bottom: 34px;
}

.home-heading-logo {
	display: inline-block;
	width: 2.3em;
	height: 1.55em;
	object-fit: contain;
	vertical-align: middle;
}

.benefit-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
}

.benefit-grid article {
	min-height: 210px;
	padding: 24px;
	border: 1px solid #edf0f5;
	border-radius: 18px;
	background: rgba(255, 255, 255, 0.95);
	box-shadow: 0 8px 24px rgba(28, 53, 83, 0.035);
}

.benefit-grid article>img {
	width: 54px;
	height: 54px;
	object-fit: contain;
}

.benefit-grid h3 {
	margin: 15px 0 7px;
	color: #273344;
	font-size: 18px;
}

.benefit-grid p {
	max-width: 330px;
	margin: 0;
	color: #748092;
	font-size: 14px;
	line-height: 1.55;
}

.home-how {
	position: relative;
	overflow: hidden;
	padding: 70px 0 180px;
	background: #268df2;
	color: #fff;
}

.home-how::after {
	position: absolute;
	right: -4%;
	bottom: -68px;
	left: -4%;
	height: 145px;
	content: "";
	border: 12px solid rgba(255, 255, 255, 0.96);
	border-top-color: transparent;
	border-radius: 50%;
	transform: rotate(-3deg);
	pointer-events: none;
}

.home-how .home-section-heading {
	position: relative;
	z-index: 1;
}

.home-how .home-section-heading h2 {
	color: #fff;
}

.home-how .home-section-heading h2 b {
	color: #ff7548;
}

.home-how .home-section-heading>img {
	width: 66px;
	height: 66px;
}

.how-grid {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 22px;
}

.how-grid article {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	min-height: 300px;
	padding: 25px 27px;
	border: 1px solid rgba(255, 255, 255, 0.24);
	border-radius: 18px;
	background: rgba(255, 255, 255, 0.2);
}

.how-number {
	display: block;
	color: rgba(255, 255, 255, 0.38);
	font-size: 42px;
	font-weight: 700;
}

.how-grid article>img {
	position: absolute;
	top: 25px;
	right: 23px;
	width: 52px;
	height: 52px;
	object-fit: contain;
}

.how-grid h3 {
	margin: 9px 0 10px;
	font-size: 30px;
	font-family: Inter, sans-serif
}

.how-grid p {
	margin: 0 0 22px;
	color: rgba(255, 255, 255, 0.94);
	font-size: 16px;
	line-height: 1.55;
	font-weight: 500;
	font-family: Inter, sans-serif;
}

.how-grid .small-link {
	/* 链接固定推到卡片底部，三条 Learn more 保持同一水平线。 */
	margin-top: auto;
}

.home-reviews {
	padding: 80px 0 86px;
	background: radial-gradient(ellipse at 95% 30%, #e8f4ff, transparent 60%),
		radial-gradient(ellipse at 5% 70%, #fff0eb, transparent 60%), #fbfcfe;
}

.review-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 18px;
}

.review-grid article {
	display: flex;
	min-height: 205px;
	flex-direction: column;
	padding: 20px 22px;
	border: 1px solid #e9edf3;
	border-radius: 17px;
	background: #fff;
	box-shadow: 0 7px 20px rgba(25, 50, 80, 0.035);
}

.review-grid article.review-featured {
	border-color: #268df2;
	background: #268df2;
	color: #fff;
}

.stars {
	display: flex;
	align-items: center;
	gap: 3px;
}

.stars img {
	width: 20px;
	height: 20px;
	object-fit: contain;
}

.review-featured .stars {
	color: #fff;
}

.review-grid article>p {
	flex: 1;
	margin: 13px 0 18px;
	color: #344257;
	font-size: 16px;
	font-family: Inter, sans-serif;
	line-height: 1.55;
}

.review-featured>p {
	color: #fff !important;
}

.review-author {
	display: flex;
	align-items: center;
	gap: 9px;
	color: #354256;
	font-size: 18px;
}

.review-featured .review-author {
	color: #fff;
}

.review-author img {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	object-fit: cover;
}

.home-faq {
	padding: 78px 0 82px;
	background: #fff;
}

.faq-grid {
	display: grid;
	grid-auto-flow: column;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	grid-template-rows: repeat(3, auto);
	gap: 12px 20px;
}

.faq-grid details {
	align-self: start;
	overflow: hidden;
	border: 1px solid #e5eaf0;
	border-radius: 12px;
	background: #fff;
}

.faq-grid details[open] {
	border-color: #c9e2ff;
	background: #f4f9ff;
}

.faq-grid summary {
	position: relative;
	padding: 17px 46px 17px 20px;
	color: #38475a;
	font-size: 18px;
	font-weight: 600;
	cursor: pointer;
	list-style: none;
}

.faq-grid summary::-webkit-details-marker {
	display: none;
}

.faq-grid summary::after {
	position: absolute;
	right: 19px;
	content: "⌄";
	color: #268df2;
	font-size: 20px;
}

.faq-grid details[open] summary::after {
	content: "⌃";
}

.faq-grid details p {
	margin: 0;
	padding: 0 20px 18px;
	color: #57677b;
	font-size: 16px;
	line-height: 1.6;
}

.faq-more {
	display: flex;
	width: fit-content;
	margin: 26px auto 0;
}

.app-promo {
	padding: 30px 24px 80px;
	background:
		radial-gradient(ellipse at 99% 100%, #fff9e8 0, transparent 27%),
		linear-gradient(180deg, #cadff7 0%, #dcecf7 59%, #f3f8fc 100%);
}

.app-promo-inner {
	position: relative;
	width: min(1200px, 100%);
	aspect-ratio: 300 / 121;
	margin: 0 auto;
	color: #fff;
}

.app-promo-art {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.app-promo-copy {
	position: absolute;
	inset: 0;
	padding: 109px 40px 40px;
}

.app-promo h2 {
	margin: 0;
	font-size: 42px;
	font-weight: 600;
	line-height: 1.33;
	letter-spacing: -1.2px;
}

.app-promo-copy>p {
	max-width: 570px;
	margin: 19px 0 0;
	font-size: 20px;
	font-weight: 600;
	line-height: 1.5;
}

.app-promo-downloads {
	display: flex;
	align-items: flex-end;
	flex-wrap: wrap;
	gap: 16px;
	max-width: 560px;
	margin-top: 54px;
}

.app-promo-qr {
	flex: 0 0 88px;
	width: 88px;
	height: 88px;
	object-fit: contain;
	border-radius: 10px;
}

.app-badges {
	display: flex;
	flex: 0 1 392px;
	gap: 10px;
	max-width: 392px;
}

.app-badges a {
	display: block;
	flex: 0 1 180px;
	min-width: 0;
	border-radius: 9px;
	transition: transform 0.18s ease;
}

.app-badges a:nth-child(2) {
	flex-basis: 202px;
}

.app-badges img {
	display: block;
	width: 100%;
	height: auto;
}

.app-badges a:hover {
	transform: translateY(-3px);
}

.app-badges a:focus-visible {
	outline: 3px solid #fff;
	outline-offset: 5px;
}

@media (min-width: 801px) and (max-width: 1240px) {
	.app-promo-copy {
		padding-top: 9.1%;
		padding-left: 3.33%;
	}

	.app-promo h2 {
		font-size: clamp(28px, 2.92vw, 42px);
	}

	.app-promo-copy>p {
		max-width: 51%;
		margin-top: 14px;
		font-size: clamp(14px, 1.4vw, 20px);
	}

	.app-promo-downloads {
		margin-top: clamp(24px, 4vw, 58px);
	}

	.app-badges {
		max-width: clamp(230px, 28vw, 392px);
	}
}

@media (min-width: 801px) and (max-width: 900px) {
	.app-promo-qr {
		flex-basis: 68px;
		width: 68px;
		height: 68px;
	}
}

@media (max-width: 800px) {
	.app-promo {
		padding: 24px 16px 48px;
	}

	.app-promo-inner {
		min-height: 660px;
		max-width: 540px;
		aspect-ratio: auto;
		overflow: hidden;
		border-radius: 24px;
		background: #298bf2;
	}

	.app-promo-art {
		inset: auto auto 0 -80%;
		width: 180%;
		max-width: none;
		height: auto;
	}

	.app-promo-copy {
		padding: 32px 28px;
	}

	.app-promo h2 {
		font-size: 36px;
		line-height: 1.25;
		letter-spacing: -0.8px;
	}

	.app-promo-copy>p {
		max-width: 400px;
		margin-top: 18px;
		font-size: 17px;
	}

	.app-promo-downloads {
		margin-top: 32px;
	}

	.app-badges {
		flex: 1 1 0;
		min-width: 0;
		max-width: none;
	}
}

@media (max-width: 420px) {

	.app-promo-inner {
		min-height: 625px;
	}

	.app-promo-copy {
		padding: 30px 24px;
	}

	.app-promo h2 {
		font-size: 32px;
	}

	.app-promo-copy>p {
		font-size: 16px;
	}

	.app-promo-qr {
		flex-basis: 64px;
		width: 64px;
		height: 64px;
	}
}

@media (max-width: 900px) {
	.home-hero {
		min-height: 630px;
		background-position: 58% center;
	}

	.hero-inner {
		padding-top: 82px;
	}

	.hero-destination-search {
		margin-top: 90px;
	}

	.home-destination-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.esim-content {
		grid-template-columns: 1fr 1fr;
	}

	.benefit-grid {
		gap: 14px;
	}

	.benefit-grid article {
		padding: 20px;
	}

	.review-grid {
		gap: 12px;
	}

	.review-grid article {
		padding: 17px;
	}
}

@media (max-width: 640px) {

	/* 不用 100vw：iOS Safari 的 100vw 含滚动条/工具栏区域，比可用宽度大，
	   会让 hero 内容（含搜索框）整体右偏、右侧按钮被裁。父级本就满宽，100% 等价。 */
	.home-container,
	.hero-inner {
		width: 100%;
		padding: 15px;
	}

	.home-hero {
		/* 手机主图切图为 750×492，按 2x 设计稿显示高度 492。 */
		min-height: 492px;
		background-position: 58% center;
		/* 手机端随机图由首页脚本写入，桌面/平板仍用 --home-hero-image。 */
		background-image: var(--home-hero-image-phone, url("/public/images/home/phone/hero-mountains.png"));
	}

	.hero-inner {
		padding-top: 74px;
	}

	.hero-inner h1 {
		font-size: 60px;
		letter-spacing: -1.2px;
	}

	.hero-subtitle {
		font-size: 16px;
	}

	.hero-script {
		margin-top: 34px;
		font-size: 65px;
		letter-spacing: -3px;
	}

	.hero-destination-search {
		height: 58px;
		margin-top: 114px;
		padding-left: 12px;
	}

	.hero-destination-search button {
		width: 46px;
		height: 42px;
	}

	.home-destinations {
		padding: 54px 0 40px;
	}

	.home-section-heading {
		margin-bottom: 22px;
	}

	.home-section-heading h2 {
		font-size: 32px;
	}

	.home-section-heading>img {
		width: 48px;
		height: 48px;
	}

	.destination-tabs {
		width: 100%;
	}

	.destination-tabs button {
		flex: 1;
		min-width: 0;
	}

	.home-destination-grid {
		grid-template-columns: 1fr;
		gap: 10px;
		margin-top: 16px;
	}

	.home-destination-card {
		min-height: 64px;
	}

	.referral-wrap {
		padding: 8px 16px 46px;
	}

	.referral-banner {
		min-height: 260px;
		align-items: flex-start;
		border-radius: 18px;
	}

	.referral-copy {
		padding: 25px 22px;
	}

	.referral-copy h2 {
		max-width: 330px;
		font-size: 27px;
	}

	.referral-copy p {
		max-width: 300px;
		font-size: 14px;
	}

	.referral-art {
		right: 0;
		bottom: -16px;
		width: 57%;
		height: 65%;
		opacity: 0.96;
	}

	.home-esim {
		padding: 52px 0 35px;
	}

	.esim-content {
		grid-template-columns: 1fr;
	}

	.esim-content-background {
		object-position: center top;
	}

	.esim-copy h2 {
		margin-bottom: 22px;
		font-size: 35px;
		white-space: nowrap;
	}

	html[lang="fr"] .esim-copy h2 {
		font-size: min(35px, 7vw);
	}

	.esim-photo {
		min-height: 260px;
		margin: 12px -16px 0;
		background-position: center;
	}

	/* App 推广位手机切图为 690×980：蓝底+手机在下半部分，文案/按钮/二维码放上半部分。 */
	.app-promo-inner {
		min-height: 0;
		max-width: 460px;
		aspect-ratio: 690 / 980;
	}

	.app-promo-art {
		inset: 0;
		width: 100%;
		height: 100%;
		object-fit: cover;
		object-position: center;
	}

	.app-promo-copy {
		padding: 28px 24px;
	}

	.app-promo h2 {
		font-size: 28px;
		line-height: 1.2;
	}

	.app-promo-copy>p {
		max-width: none;
		margin-top: 12px;
		font-size: 14px;
	}

	.app-promo-downloads {
		flex-direction: column;
		align-items: flex-start;
		gap: 14px;
		/* 手机端下载区距文案顶部 10px（PC/平板保持原 margin-top）。 */
		margin-top: 10px;
	}

	.app-badges {
		order: 1;
		flex: none;
		width: 100%;
		max-width: none;
	}

	/* 两个徽章链接等宽等高，图片 contain 居中，视觉大小一致。 */
	.app-badges a {
		flex: 1 1 0;
		display: flex;
		align-items: center;
		justify-content: center;
	}

	.app-badges a:nth-child(2) {
		flex-basis: 0;
	}

	.app-badges img {
		width: 100%;
		height: 44px;
		object-fit: contain;
	}

	.app-promo-qr {
		order: 2;
		flex: 0 0 64px;
		width: 64px;
		height: 64px;
	}

	.home-benefits {
		padding: 56px 0;
	}

	.benefit-grid {
		grid-template-columns: 1fr;
		gap: 12px;
	}

	.benefit-grid article {
		min-height: auto;
		padding: 18px;
	}

	.benefit-grid article>img {
		float: left;
		width: 48px;
		height: 48px;
		margin: 0 14px 10px 0;
	}

	.benefit-grid h3 {
		margin-top: 5px;
	}

	.home-how {
		padding: 55px 0 75px;
	}

	.how-grid {
		grid-template-columns: 1fr;
		gap: 12px;
	}

	.how-grid article {
		min-height: 230px;
	}

	.home-how::after {
		bottom: -90px;
	}

	.home-reviews,
	.home-faq {
		padding: 55px 0;
	}

	.review-grid {
		grid-template-columns: 1fr;
	}

	.review-grid article {
		min-height: 170px;
	}

	.faq-grid {
		grid-auto-flow: row;
		grid-template-columns: 1fr;
		grid-template-rows: auto;
	}

	.faq-grid summary {
		padding: 15px 42px 15px 15px;
	}

	.faq-grid details p {
		padding: 0 15px 15px;
	}
}

/* Homepage artwork and interaction refinements from the Lanhu export. */
/* picture 是 grid 子项，必须自行约束宽度，否则内部图片的 100vw 会把整列撑出容器。 */
.hero-route-picture {
	display: block;
	width: 100%;
}

.hero-route-art {
	position: absolute;
	z-index: 1;
	top: 36%;
	left: 0;
	display: block;
	width: 100%;
	height: clamp(150px, 15vw, 280px);
	object-fit: fill;
	pointer-events: none;
}

.hero-pin {
	display: grid;
	place-items: center;
	flex: 0 0 24px;
	width: 24px;
	height: 26px;
}

.hero-pin img {
	display: block;
	width: 20px;
	height: 24px;
	object-fit: contain;
}

.destinations-heading>img {
	width: 80px;
	height: 80px;
}

.destination-all {
	min-height: 56px;
	padding-right: 20px;
	padding-left: 22px;
	background: linear-gradient(180deg, #2F92FF 0%, #20A3FF 100%) !important;

	box-shadow: 0 7px 18px rgba(38, 141, 242, 0.18);
	transition:
		background 0.2s,
		transform 0.2s,
		box-shadow 0.2s;
}

.destination-all:hover {
	transform: translateY(-2px);
	background: #147de5;
	box-shadow: 0 10px 22px rgba(38, 141, 242, 0.28);
}

.destination-all span:last-child {
	display: grid;
	place-items: center;
	width: 24px;
	height: 24px;
	font-size: 0;
}

.destination-all span:last-child img {
	display: block;
	width: 24px;
	height: 24px;
	object-fit: contain;
}

.referral-banner {
	overflow: hidden;
}

.referral-art {
	right: 0;
	bottom: 0;
	width: min(43%, 560px);
	height: 130%;
	object-fit: contain;
	object-position: right center;
}

.esim-photo {
	min-height: 420px;
	border-radius: 4px;
}

.benefit-grid article {
	cursor: pointer;
	transition:
		transform 0.22s ease,
		border-color 0.22s ease,
		box-shadow 0.22s ease,
		background-color 0.22s ease;
}

.benefit-grid article:hover,
.benefit-grid article:focus-within {
	transform: translateY(-5px);
	border-color: #71b8ff;
	background: #fff;
	box-shadow: 0 14px 30px rgba(38, 141, 242, 0.14);
}

.benefit-grid article>img {
	transition: transform 0.22s ease;
}

.benefit-grid article:hover>img,
.benefit-grid article:focus-within>img {
	transform: scale(1.08);
}

.home-how {
	background: #268df2 url("/public/images/home/how-background.png") center 95%/100% auto no-repeat;
}

.home-how::after {
	display: none;
}

.review-grid article {
	position: relative;
	overflow: hidden;
	transition:
		transform 0.2s ease,
		border-color 0.2s ease,
		background-color 0.2s ease,
		box-shadow 0.2s ease;
}

.review-grid article:hover,
.review-grid article:focus-within {
	transform: translateY(-4px);
	border-color: #268df2;
	background-color: #268df2;
	box-shadow: 0 12px 26px rgba(38, 141, 242, 0.2);
}

.review-grid article:hover>p,
.review-grid article:hover .review-author,
.review-grid article:focus-within>p,
.review-grid article:focus-within .review-author {
	color: #fff;
}

.review-grid article:hover .stars,
.review-grid article:focus-within .stars {
	color: #fff;
}

.faq-grid details {
	transition:
		border-color 0.2s,
		box-shadow 0.2s,
		background-color 0.2s;
}

.faq-grid details:hover {
	border-color: #b8d9fb;
	box-shadow: 0 5px 16px rgba(40, 126, 201, 0.08);
}

.faq-grid details[open] {
	border-color: #c8e0ff;
	background: linear-gradient(135deg, #eef6ff, #e6f1ff);
	box-shadow: 0 5px 16px rgba(40, 126, 201, 0.08);
}

.faq-grid summary {
	display: flex;
	align-items: center;
	min-height: 54px;
	padding: 14px 48px 14px 20px;
}

.faq-grid summary::after {
	content: "";
	top: 50%;
	right: 19px;
	width: 8px;
	height: 8px;
	border-right: 2px solid #248cf0;
	border-bottom: 2px solid #248cf0;
	transform: translateY(-70%) rotate(45deg);
	transition: transform 0.18s;
}

.faq-grid details[open] summary {
	color: #2587e9;
}

.faq-grid details[open] summary::after {
	transform: translateY(-25%) rotate(225deg);
}

.faq-grid details p {
	margin: 0 10px 10px;
	padding: 13px 14px;
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.78);
	color: #4c5969;
}

@media (max-width: 900px) {
	.hero-route-art {
		top: 34%;
		height: clamp(140px, 24vw, 230px);
	}

	.referral-art {
		width: 45%;
		height: 118%;
	}

	.home-how::after {
		height: 150px;
	}
}

@media (max-width: 640px) {
	.hero-route-art {
		top: 34%;
		left: -18%;
		width: 136%;
		height: 150px;
	}

	.destinations-heading>img {
		width: 52px;
		height: 52px;
	}

	.referral-art {
		right: -8%;
		bottom: 0;
		width: 65%;
		height: 67%;
		object-position: right bottom;
	}

	.esim-photo {
		min-height: 260px;
		background-position: 58% center;
	}

	.home-how::after {
		height: 120px;
	}

	.faq-grid summary {
		min-height: 48px;
		padding: 13px 42px 13px 15px;
	}
}

.destinations-heading>img {
	width: 92px;
	height: 92px;
}

.home-section-heading h2 {
	font-size: clamp(36px, 3.2vw, 52px);
}

.destination-all {
	font-size: 16px;
}

.faq-grid summary::after {
	font-size: 0;
}

/* Final homepage refinements from the latest desktop design review. */
.hero-route-art {
	left: 50%;
	width: 100vw;
	max-width: none;
	height: auto;
	transform: translateX(-50%);
	object-fit: contain;
}

.hero-pin {
	display: grid;
	flex: 0 0 40px;
	place-items: center;
	width: 40px;
	height: 40px;
}

.hero-pin img {
	display: block;
	width: 40px;
	height: 40px;
	object-fit: contain;
}

.referral-banner {
	min-height: 0;
	overflow: visible;
	isolation: isolate;
	aspect-ratio: 2400 / 680;
	border-radius: 0;
	background: transparent;
}

.referral-copy {
	position: absolute;
	top: 66%;
	left: 0;
	box-sizing: border-box;
	width: 76%;
	max-width: 68%;
	padding: 0 0 0 clamp(36px, 6.5vw, 78px);
	transform: translateY(-50%);
}

.referral-copy h2 {
	font-size: clamp(28px, 3.25vw, 40px);
}

.referral-copy h2 span {
	display: block;
}

.referral-art {
	top: 50%;
	right: auto;
	bottom: auto;
	left: 50%;
	z-index: -1;
	width: 92%;
	height: auto;
	object-fit: contain;
	object-position: center;
	transform: translate(-50%, -50%);
}

.review-grid article {
	isolation: isolate;
}

.review-grid article::after {
	position: absolute;
	z-index: 0;
	right: 0;
	bottom: -20px;
	width: 42%;
	height: 55%;
	content: "";
	opacity: 0;
	background: url("/public/images/home/hover@2x.png") right bottom / contain no-repeat;
	transition: opacity 0.2s ease;
	pointer-events: none;
}

.review-grid article>* {
	position: relative;
	z-index: 1;
}

.review-grid article:hover::after,
.review-grid article:focus-within::after {
	opacity: 1;
}

@media (max-width: 640px) {
	.hero-route-art {
		top: 34%;
		left: 50%;
		width: 100vw;
		height: auto;
	}

	.hero-pin,
	.hero-pin img {
		width: 36px;
		height: 36px;
	}

	.hero-pin {
		flex-basis: 36px;
	}

	.referral-banner {
		min-height: 260px;
		aspect-ratio: auto;
		align-items: flex-start;
		overflow: hidden;
		border-radius: 18px;
		background: #ff7048;
	}

	.referral-copy {
		position: relative;
		top: auto;
		left: auto;
		width: 100%;
		max-width: 100%;
		padding: 25px 22px;
		transform: none;
	}

	.referral-copy h2 {
		max-width: 80%;
		font-size: 28px;
	}

	.referral-copy p {
		max-width: 78%;
	}

	.referral-art {
		inset: auto auto 0 -45%;
		width: 190%;
		height: auto;
		transform: none;
	}
}

/* Equal outer rows keep the route centered as translated copy wraps. */
.hero-route-art {
	position: relative;
	top: auto;
	left: auto;
	display: block;
	width: 100vw;
	max-width: none;
	height: auto;
	margin: 0 0 0 calc(50% - 50vw);
	transform: translateY(-55px);
	object-fit: contain;
}

.hero-inner {
	display: grid;
	min-height: inherit;
	/* grid-template-rows: 1fr auto 1fr; */
	/* gap: 24px; */
	padding-top: 60px;
	padding-bottom: 120px;
}

.hero-copy {
	align-self: start;
}

.hero-destination-search {
	align-self: end;
	margin-top: 0;
}

@media (max-width: 640px) {

	/* keepgoing 按设计稿满页宽显示（750×128 的 2x 切图 → 高 64px）。
	   这里用 100% + 负 margin 拉到父容器（.hero-inner，已满宽）边缘，
	   不用 100vw / calc(50% - 50vw)：后者在 iOS Safari 上会右偏、溢出裁切按钮。 */
	.hero-route-picture {
		/* picture 是 grid 子项，内容区宽 = 视口 - 30px（hero-inner 左右各 15px padding）。
		   calc(100% + 30px) + 负 margin 把它撑回视口左右边缘，保持满页宽。 */
		width: calc(100% + 30px);
		margin-left: -15px;
		margin-bottom: 20px;
	}

	.hero-route-art {
		width: 100%;
		max-width: none;
		height: 64px;
		margin: 0;
		transform: none;
		object-fit: fill;
	}

	.hero-inner {
		gap: 20px;
		padding-top: 40px;
		padding-bottom: 40px;
	}

	.hero-inner h1 {
		font-size: 34px;
	}
}

/* Match both promo banners to the main content column. */
.referral-wrap {
	padding-right: 0;
	padding-left: 0;
}

.referral-banner {
	width: min(1200px, calc(100% - 48px));
	aspect-ratio: 2400 / 680;
}

.referral-art {
	width: 100%;
	height: 100%;
	object-fit: fill;
}

/* The traveler artwork is the full eSIM section background. */
.esim-photo {
	background: none;
	border-radius: 0;
}

@media (max-width: 640px) {
	.referral-wrap {
		padding-right: 16px;
		padding-left: 16px;
	}

	.referral-banner {
		width: 100%;
		min-height: 340px;
		aspect-ratio: auto;
	}

	.referral-copy {
		z-index: 1;
	}

	.referral-art {
		inset: auto 0 0 auto;
		z-index: 0;
		width: 100%;
		height: auto;
		object-fit: contain;
		object-position: right bottom;
	}

	.esim-photo {
		display: none;
	}
}

/* Match the referral artwork and eSIM section proportions in the 1920px design. */
@media (min-width: 901px) {
	.referral-wrap {
		padding-bottom: 0;
	}

	.referral-copy {
		padding-left: clamp(24px, 2.1vw, 40px);
	}

	.home-esim {
		background-position: center 35%;
	}

	.esim-copy h2 {
		margin-bottom: 50px;
		font-size: clamp(42px, 3.5vw, 66px);
	}

	/* PC 标题单行，法语长文案缩小字号防溢出。 */
	html[lang="fr"] .esim-copy h2 {
		font-size: clamp(28px, 2.8vw, 42px);
	}

	.esim-copy p {
		max-width: 420px;
		margin-bottom: 30px;
	}
}

/* ===== 首页广告轮播（/app/advertise-list，单个轮播位） ===== */
.home-ads-wrap {
	padding: 44px 0 0;
}

.home-ads-wrap+.home-destinations {
	padding-top: 52px;
}

/* ADPro / AD@2x 本身就是一整幅 2400×680 的透明背景：上方留白、橙色圆角条、
   白色曲线和右侧插画都在图里。容器按原图比例排版，整幅图完整铺满，
   不再用纯色或渐变去补任何区域。 */
.home-ad-carousel {
	position: relative;
	width: min(1200px, calc(100% - 48px));
	aspect-ratio: 1200 / 340;
	margin: 0 auto;
	overflow: hidden;
	border-radius: 24px;
}

.home-ad-slide {
	position: absolute;
	inset: 0;
	z-index: 0;
	opacity: 0;
	visibility: hidden;
	background-color: transparent;
	background-repeat: no-repeat;
	background-position: center;
	background-size: 100% 100%;
	transition: opacity 0.45s ease, visibility 0.45s ease;
}

.home-ad-slide.is-active {
	z-index: 1;
	opacity: 1;
	visibility: visible;
}

/* ADPro 的橙条上沿在 29.7%、AD@2x 在 35.6%。把 promos 图纵向压到 91.6%
   并贴底，橙条的上下沿就与 refer/other 完全齐平，轮播切换时不会忽高忽低。 */
.home-ad-slide[data-ad-type="promos"] {
	background-image: url("/public/images/home/ADPro.png");
	background-position: center bottom;
	background-size: 100% 100%;
}

.home-ad-slide[data-ad-type="refer"],
.home-ad-slide[data-ad-type="other"] {
	background-image: url("/public/images/home/AD@2x.png");
}

/* 文案落在背景图自带的橙色条内（橙色条约占下方 70%），避开右侧曲线与插画。 */
.home-ad-copy {
	position: absolute;
	top: 66%;
	left: 50px;
	z-index: 2;
	width: 48%;
	color: #fff;
	transform: translateY(-50%);
}

.home-ad-title,
.home-ad-title * {
	margin: 0;
	color: #fff !important;
	font-size: clamp(22px, 2.35vw, 30px);
	font-weight: 600;
	line-height: 1.3;
}

/* 富文本标题最多两行，超出的用省略号，避免长文案把橙色条撑破。 */
.home-ad-title {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	overflow: hidden;
	overflow-wrap: anywhere;
	text-overflow: ellipsis;
}

/* 富文本里残留的块级标签（含运营写的 display 内联样式）会打断
   line-clamp 的行数计算，统一按行内渲染。 */
.home-ad-title * {
	display: inline !important;
}

.home-ad-content,
.home-ad-content * {
	color: #fff !important;
}

.home-ad-content {
	margin: 12px 0 0;
	font-size: 16px;
	font-weight: 400;
	line-height: 1.5;
	opacity: 0.95;
}

/* 优惠券的 Get it 是 button，refer/other 的 Learn more 是 a，两者共用这份外观。 */
.home-ad-cta {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: 26px;
	padding: 10px 20px;
	border: 0;
	border-radius: 999px;
	background: #fff;
	color: #ff7548;
	font-family: inherit;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	transition: transform 0.2s, box-shadow 0.2s;
}

/* 只放大箭头图标；button 内的文案 span 继承按钮字号。 */
.home-ad-cta span[aria-hidden="true"] {
	font-size: 16px;
	line-height: 1;
}

.home-ad-cta:not(:disabled):hover {
	color: #ff7548;
	transform: translateY(-1px);
	box-shadow: 0 6px 16px rgba(120, 40, 10, 0.18);
}

.home-ad-cta:disabled {
	opacity: 0.65;
	cursor: default;
}

.home-ad-nav {
	position: absolute;
	top: 30%;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 3;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0 12px;
	pointer-events: none;
}

.home-ad-nav button {
	padding: 0;
	border: 0;
	background: none;
	cursor: pointer;
	line-height: 0;
	pointer-events: auto;
}

.home-ad-nav img {
	display: block;
	width: 14px;
	height: 24px;
	object-fit: contain;
	opacity: 0.9;
}

.home-ad-nav button:hover img {
	opacity: 1;
}

.home-ad-dots {
	position: absolute;
	bottom: 9%;
	left: 50%;
	z-index: 3;
	display: flex;
	align-items: center;
	gap: 5px;
	transform: translateX(-50%);
}

.home-ad-dot {
	width: 5px;
	height: 5px;
	padding: 0;
	border: 0;
	border-radius: 3px;
	background: rgba(255, 255, 255, 0.55);
	cursor: pointer;
	transition: width 0.2s, background 0.2s;
}

.home-ad-dot.active {
	width: 16px;
	background: #fff;
}

.home-ad-cta:focus-visible,
.home-ad-nav button:focus-visible,
.home-ad-dot:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 3px;
}

@media (max-width: 900px) {
	.home-ad-copy {
		width: 54%;
	}

	.home-ad-title,
	.home-ad-title * {
		font-size: 22px;
	}

	.home-ad-content {
		font-size: 14px;
	}

	.home-ad-cta {
		margin-top: 18px;
	}
}

@media (max-width: 640px) {
	.home-ads-wrap {
		padding: 24px 0 0;
	}

	.home-ads-wrap+.home-destinations {
		padding-top: 38px;
	}

	/* 手机切图为整幅 690×480 橙色卡（左下插画、左上留白放文案）。 */
	.home-ad-carousel {
		width: calc(100% - 32px);
		aspect-ratio: 690 / 480;
		height: auto;
		border-radius: 18px;
	}

	.home-ad-slide {
		background-position: center;
		background-size: 100% 100%;
	}

	.home-ad-slide[data-ad-type="promos"] {
		background-image: url("/public/images/home/phone/ADPro.png");
	}

	.home-ad-slide[data-ad-type="refer"],
	.home-ad-slide[data-ad-type="other"] {
		background-image: url("/public/images/home/phone/AD@2x.png");
	}

	/* 文案容器拉伸到卡片底部，按钮才能相对卡片底边定位；标题和内容仍在顶部。 */
	.home-ad-copy {
		top: 10%;
		bottom: 0;
		left: 22px;
		width: 80%;
		display: flex;
		flex-direction: column;
		align-items: flex-start;
		transform: none;
	}

	.home-ad-title,
	.home-ad-title * {
		font-size: 21px;
		line-height: 1.25;
	}

	.home-ad-content {
		margin-top: 6px;
		font-size: 15px;
		line-height: 1.4;
		width: 60%;
	}

	.home-ad-cta {
		margin-top: auto;
		margin-bottom: 30px;
		padding: 7px 13px;
		font-size: 11px;
	}

	.home-ad-nav {
		padding: 0 6px;
	}

	.home-ad-nav img {
		width: 12px;
		height: 20px;
	}

	.home-ad-dots {
		bottom: 10px;
	}
}

/* 平板主图按设计稿的 2048×980 尺寸铺放，图片仍与桌面端共用同一组随机 webp。 */
@media (min-width: 641px) and (max-width: 1024px) {
	.home-hero {
		background-size: 2048px 980px;
	}
}

/* eSIM 排版修复严格限定在平板区间（与 max-width:900 的平板块对齐）。
   901px 及以上是桌面（对应 min-width:901 块），不能套用单列/隐藏 photo，
   否则窄窗口或缩放后的 PC 会被误判成平板，eSIM 变成平板布局造成污染。 */
@media (min-width: 641px) and (max-width: 900px) {

	/* 旅行者已在整幅背景图里，独占一格的 .esim-photo 是多余元素，
	   还会把文案挤到第二列、图片掉到第二行导致页面偏移。隐藏它并让背景图
	   脱离 grid，文案回到单列左对齐（与手机一致）。桌面/手机样式不动。 */
	.esim-content {
		grid-template-columns: 1fr;
	}

	.esim-content>picture {
		position: absolute;
		inset: 0;
		z-index: 0;
		width: 100%;
		height: 100%;
		pointer-events: none;
	}

	.esim-photo {
		display: none;
	}

	.esim-copy {
		max-width: 520px;
		margin: 0;
		text-align: left;
	}
}

@media (prefers-reduced-motion: reduce) {

	.home-ad-slide,
	.home-ad-dot,
	.home-ad-cta {
		transition: none;
	}
}