:root {
	--ink: #10213b;
	--muted: #68758b;
	--brand: #1677ff;
	--brand-dark: #0757c9;
	--surface: #fff;
	--soft: #f4f8ff;
	--line: #e4eaf2;
	--max: 1200px;
}

* {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

/* 静态英文文案要等 defer 脚本就绪后才会被替换；在替换完成前先隐藏，
   避免刷新时先闪一下英文。head 中的同步脚本负责移除 data-i18n-pending。 */
html[data-i18n-pending] [data-i18n],
html[data-i18n-pending] [data-payment-i18n],
html[data-i18n-pending] [data-checkout-i18n] {
	visibility: hidden;
}

html[data-i18n-pending] [data-i18n-placeholder]::placeholder {
	color: transparent;
}

/* 套餐详情、博客等页面的静态文案要等接口数据或页面脚本就绪后才替换。
   期间让文字透明但保留布局、图片与边框，避免英文长时间留在页面上。 */
html[data-static-pending] [data-i18n-static-scope],
html[data-static-pending] [data-i18n-static-scope] * {
	color: transparent !important;
}

html[data-static-pending] [data-i18n-static-scope] input::placeholder {
	color: transparent !important;
}

body {
	margin: 0;
	color: var(--ink);
	background: #fff;
	font-family: Inter, sans-serif;
	line-height: 1.5;
}

a {
	color: inherit;
	text-decoration: none;
}

button,
input,
select {
	font: inherit;
}

button {
	cursor: pointer;
}

img {
	max-width: 100%;
	display: block;
}

.site-header {
	position: sticky;
	top: 0;
	z-index: 10;
	background: #fff;
	border-bottom: 1px solid var(--line);
}

.header-inner {
	max-width: var(--max);
	height: 76px;
	margin: auto;
	display: flex;
	align-items: center;
	gap: 44px;
}

.brand {
	font-size: 30px;
	font-weight: 800;
	color: var(--brand);
	letter-spacing: -1px;
}

.desktop-nav {
	display: flex;
	gap: 30px;
	flex: 1;
	color: #44536b;
	font-size: 16px;
	font-weight: 400;
	font-family: Inter, sans-serif;
}

.desktop-nav a:hover,
.header-login:hover,
.text-link:hover {
	color: var(--brand);
}

.header-actions {
	display: flex;
	align-items: center;
	gap: 18px;
	font-size: 14px;
}

.header-actions select {
	border: 1px solid var(--line);
	border-radius: 7px;
	padding: 7px 8px;
	color: #44536b;
	background: #fff;
}

.header-link span {
	display: inline-flex;
	min-width: 20px;
	height: 20px;
	align-items: center;
	justify-content: center;
	background: var(--brand);
	color: #fff;
	border-radius: 10px;
	font-size: 11px;
}

.header-login {
	padding: 9px 18px;
	border: 1px solid var(--brand);
	border-radius: 6px;
	color: var(--brand);
}

.home-page,
.page {
	max-width: var(--max);
	margin: auto;
	padding: 0 24px 80px;
}

.hero {
	min-height: 510px;
	margin: 0 calc(50% - 50vw);
	padding: 80px max(24px, calc((100vw - var(--max)) / 2 + 24px));
	display: grid;
	grid-template-columns: 1.15fr 0.85fr;
	align-items: center;
	gap: 80px;
	background: linear-gradient(115deg, #eaf4ff, #fff 60%, #f5fbff);
}

.hero h1 {
	max-width: 620px;
	margin: 12px 0 22px;
	font-size: 56px;
	line-height: 1.08;
	letter-spacing: -2px;
}

.eyebrow {
	margin: 0;
	color: var(--brand);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.button {
	border: 0;
	border-radius: 7px;
	min-height: 44px;
	padding: 0 22px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
}

.button.primary {
	background: var(--brand);
	color: #fff;
}

.button.primary:hover {
	background: var(--brand-dark);
}

.hero-search {
	padding: 28px;
	background: #fff;
	border: 1px solid #dfe8f4;
	border-radius: 14px;
	box-shadow: 0 18px 55px rgba(30, 75, 130, 0.12);
}

.hero-search h2 {
	margin: 0 0 18px;
	font-size: 22px;
}

.hero-search form {
	display: grid;
	gap: 12px;
}

.hero-search label,
.auth-card label,
.checkout-card label {
	display: grid;
	gap: 6px;
	color: #56647b;
	font-size: 13px;
}

.hero-search input,
.toolbar input,
.auth-card input,
.checkout-card input {
	width: 100%;
	height: 44px;
	padding: 0 13px;
	border: 1px solid var(--line);
	border-radius: 6px;
	outline: 0;
}

.hero-search input:focus,
.toolbar input:focus,
.auth-card input:focus,
.checkout-card input:focus {
	border-color: var(--brand);
	box-shadow: 0 0 0 3px #1677ff1c;
}

.section {
	padding: 76px 0;
}

.section-heading {
	margin-bottom: 28px;
}

.section-heading h2,
.page-heading h1 {
	margin: 8px 0 0;
	font-size: 34px;
	line-height: 1.2;
}

.destination-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 20px;
}

.destination-grid.large {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.destination-card {
	display: block;
	overflow: hidden;
	border: 1px solid var(--line);
	border-radius: 10px;
	background: #fff;
	transition:
		transform 0.2s,
		box-shadow 0.2s;
}

.destination-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 12px 30px #15345d17;
}

.destination-card img {
	width: 100%;
	height: 150px;
	object-fit: cover;
}

.destination-card-body {
	padding: 16px;
}

.destination-card h3 {
	margin: 0 0 5px;
	font-size: 18px;
}

.destination-card p {
	margin: 0;
	color: var(--muted);
	font-size: 13px;
}

.destination-card strong {
	display: block;
	margin-top: 14px;
	color: var(--brand);
	font-size: 18px;
}

.text-link {
	display: inline-block;
	margin-top: 26px;
	color: var(--brand);
	font-weight: 700;
}

.steps {
	background: var(--soft);
	margin: 0 calc(50% - 50vw);
	padding-left: max(24px, calc((100vw - var(--max)) / 2 + 24px));
	padding-right: max(24px, calc((100vw - var(--max)) / 2 + 24px));
}

.step-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 22px;
}

.step-grid article {
	padding: 25px;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 10px;
}

.step-grid span {
	color: var(--brand);
	font-size: 14px;
	font-weight: 800;
}

.step-grid h3 {
	margin: 14px 0 7px;
}

.step-grid p {
	margin: 0;
	color: var(--muted);
	font-size: 14px;
}

.faq details {
	border-top: 1px solid var(--line);
	padding: 17px 0;
}

.faq details:last-child {
	border-bottom: 1px solid var(--line);
}

.faq summary {
	cursor: pointer;
	font-weight: 700;
}

.page {
	padding-top: 58px;
}

.page-heading {
	margin-bottom: 30px;
}

.page-heading p:not(.eyebrow) {
	color: var(--muted);
}

.toolbar {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 28px;
}

.store-toolbar {
	flex-wrap: wrap;
}

.store-toolbar input {
	flex: 1 1 280px;
}

.store-toolbar .button {
	min-height: 44px;
}

.store-type-filter {
	display: flex;
	align-items: center;
	gap: 8px;
	color: var(--muted);
	font-size: 13px;
}

.store-type-filter select {
	min-width: 175px;
}

.store-result-count {
	min-height: 20px;
	margin: -11px 0 18px;
	color: var(--muted);
	font-size: 13px;
}

.destination-kind {
	display: inline-block;
	margin-bottom: 8px;
	color: var(--brand);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.toolbar input {
	max-width: 360px;
}

.toolbar select {
	height: 44px;
	padding: 0 12px;
	border: 1px solid var(--line);
	border-radius: 6px;
	background: #fff;
}

.product-layout {
	min-height: 430px;
}

.product-layout,
.cart-layout,
.account-grid {
	display: grid;
	grid-template-columns: 1.5fr 1fr;
	gap: 30px;
}

.auth-card,
.checkout-card,
.summary-card {
	max-width: 620px;
	margin: 20px auto;
	padding: 30px;
	border: 1px solid var(--line);
	border-radius: 12px;
	background: #fff;
	box-shadow: 0 10px 35px #15345d0b;
}

.narrow {
	max-width: 720px;
}

.auth-card form,
.checkout-card {
	display: grid;
	gap: 17px;
}

.checkout-items {
	display: grid;
	gap: 10px;
}

.checkout-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 14px 16px;
	border: 1px solid var(--line);
	border-radius: 9px;
	background: #fbfcfe;
}

.checkout-item strong {
	color: var(--ink);
	font-size: 14px;
}

.checkout-item p {
	margin: 4px 0 0;
	color: var(--muted);
	font-size: 12px;
}

.checkout-item>b {
	color: var(--ink);
	font-size: 14px;
	white-space: nowrap;
}

.checkout-summary-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 12px 0;
	border-top: 1px solid var(--line);
	color: #5f6f86;
	font-size: 14px;
}

.checkout-summary-row strong {
	color: var(--ink);
	font-size: 20px;
}

.checkout-summary-note,
.checkout-empty {
	color: var(--muted);
	font-size: 12px;
}

.checkout-empty a {
	color: var(--brand);
	text-decoration: underline;
}

.cart-item-list {
	display: grid;
	align-content: start;
	gap: 14px;
}

.cart-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding: 20px;
	border: 1px solid var(--line);
	border-radius: 11px;
	background: #fff;
}

.cart-item-destination {
	margin: 0 0 5px;
	color: var(--brand);
	font-size: 12px;
	font-weight: 700;
}

.cart-item h2 {
	margin: 0;
	color: var(--ink);
	font-size: 18px;
}

.cart-item-plan,
.cart-summary-muted {
	margin: 5px 0 0;
	color: var(--muted);
	font-size: 13px;
}

.cart-item-actions {
	display: flex;
	align-items: center;
	gap: 17px;
}

.cart-item-actions>strong {
	min-width: 75px;
	color: var(--ink);
	text-align: right;
}

.cart-item-quantity {
	display: flex;
	align-items: center;
	gap: 9px;
	min-height: 34px;
	padding: 2px 7px;
	border: 1px solid var(--line);
	border-radius: 6px;
}

.cart-item-quantity button,
.cart-item-remove {
	border: 0;
	background: transparent;
	color: var(--brand);
	font-weight: 700;
}

.cart-item-quantity button {
	width: 22px;
	height: 26px;
	font-size: 17px;
}

.cart-item-quantity span {
	min-width: 14px;
	text-align: center;
	font-size: 13px;
}

.cart-item-remove {
	padding: 5px 0;
	color: #77869b;
	font-size: 12px;
}

.cart-summary-card h2 {
	margin: 0 0 18px;
	color: var(--ink);
	font-size: 19px;
}

.cart-summary-row {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	padding: 10px 0;
	color: #60718a;
	font-size: 14px;
}

.cart-summary-row strong {
	color: var(--ink);
}

.cart-summary-total {
	margin-top: 5px;
	padding-top: 15px;
	border-top: 1px solid var(--line);
	color: var(--ink);
	font-weight: 700;
}

.cart-checkout-button {
	display: flex;
	width: 100%;
	margin-top: 20px;
}

.cart-empty {
	padding: 48px 24px;
	border: 1px dashed #d9e2ef;
	border-radius: 11px;
	background: #fff;
	text-align: center;
}

.cart-empty p {
	margin: 0 0 17px;
	color: var(--muted);
}

.form-status {
	min-height: 22px;
	color: #cc3d3d;
}

.check {
	display: flex !important;
	grid-template-columns: auto 1fr !important;
	align-items: flex-start;
}

.check input {
	width: 16px !important;
	height: 16px !important;
}

.loading {
	color: var(--muted);
}

.site-footer {
	margin-top: auto;
	background: #10213b;
	color: #d8e4f4;
	padding: 44px 24px 18px;
}

.footer-inner {
	max-width: var(--max);
	margin: auto;
	display: grid;
	grid-template-columns: 2fr 1fr 1fr;
	gap: 30px;
}

.footer-inner strong {
	font-size: 25px;
	color: #fff;
}

.footer-inner h3 {
	margin: 0 0 10px;
	color: #fff;
	font-size: 14px;
}

.footer-inner a {
	display: block;
	margin: 6px 0;
	color: #b9c9dc;
	font-size: 13px;
}

.footer-inner p {
	color: #b9c9dc;
	font-size: 13px;
}

.footer-bottom {
	max-width: var(--max);
	margin: 34px auto 0;
	padding-top: 14px;
	border-top: 1px solid #31435d;
	color: #91a5be;
	font-size: 12px;
}

.toast {
	position: fixed;
	top: 16px;
	left: 50%;
	z-index: 1000;
	display: flex;
	align-items: center;
	gap: 12px;
	width: max-content;
	max-width: calc(100vw - 32px);
	min-height: 56px;
	padding: 12px 18px;
	border-radius: 4px;
	background: #2fc76b;
	color: #fff;
	box-shadow: 0 5px 18px rgba(16, 33, 59, 0.2);
	font-size: 15px;
	font-weight: 700;
	opacity: 0;
	transform: translate(-50%, -10px);
	transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast[hidden] {
	display: none;
}

.toast.is-fail {
	background: #e34b4b;
}

.toast.is-warning {
	background: #b86e00;
}

.toast-icon {
	display: inline-flex;
	flex: 0 0 20px;
	width: 20px;
	height: 20px;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: #fff;
	color: #2fc76b;
	font-size: 14px;
	line-height: 1;
}

.toast [data-toast-message] {
	overflow-wrap: anywhere;
	line-height: 1.35;
}

.toast.is-fail .toast-icon {
	color: #e34b4b;
}

.toast.is-warning .toast-icon {
	color: #b86e00;
}

.toast.show {
	opacity: 1;
	transform: translate(-50%, 0);
}

@media (prefers-reduced-motion: reduce) {
	.toast {
		transition: none;
	}
}

@media (max-width: 900px) {
	.header-inner {
		gap: 18px;
	}

	.desktop-nav {
		gap: 14px;
	}

	.hero {
		grid-template-columns: 1fr;
		gap: 28px;
	}

	.hero h1 {
		font-size: 44px;
	}

	.destination-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.product-layout,
	.cart-layout,
	.account-grid {
		grid-template-columns: 1fr;
	}

	.cart-item {
		align-items: flex-start;
		flex-direction: column;
	}

	.cart-item-actions {
		flex-wrap: wrap;
		width: 100%;
	}
}

@media (max-width: 640px) {
	.header-inner {
		height: auto;
		min-height: 68px;
		flex-wrap: wrap;
		padding: 12px 16px;
	}

	.desktop-nav {
		order: 3;
		flex-basis: 100%;
		overflow: auto;
		padding-bottom: 4px;
	}

	.header-actions {
		margin-left: auto;
		gap: 8px;
	}

	.header-actions select {
		max-width: 100px;
	}

	.hero {
		padding-top: 55px;
		padding-bottom: 55px;
	}

	.hero h1 {
		font-size: 38px;
	}

	.home-page,
	.page {
		padding-left: 16px;
		padding-right: 16px;
	}

	.destination-grid,
	.destination-grid.large,
	.step-grid {
		grid-template-columns: 1fr;
	}

	.store-toolbar {
		align-items: stretch;
	}

	.store-toolbar input,
	.store-type-filter,
	.store-type-filter select {
		max-width: none;
		width: 100%;
	}

	.store-type-filter {
		justify-content: space-between;
	}

	.footer-inner {
		grid-template-columns: 1fr 1fr;
	}

	.footer-inner>div:first-child {
		grid-column: 1/-1;
	}
}

/* 名称过长时左右来回滚动显示完整内容（首页/结算页等共用）。 */
.name-marquee {
	display: inline-block;
	padding-right: 24px;
	animation: name-marquee-scroll 6s ease-in-out infinite alternate;
}

@keyframes name-marquee-scroll {
	from {
		transform: translateX(0);
	}

	to {
		transform: translateX(var(--name-shift, -30%));
	}
}

@media (prefers-reduced-motion: reduce) {
	.name-marquee {
		animation: none;
	}
}

/* 搜索框模糊匹配下拉建议（白底，鼠标悬停高亮，点击直接选择）。
   挂在 body 下用 fixed 定位，避免被 overflow 祖先裁剪或弹窗遮挡。 */
.search-suggest {
	position: fixed;
	z-index: 999;
	max-height: 320px;
	overflow-y: auto;
	padding: 6px;
	border: 1px solid #e7ecf4;
	border-radius: 14px;
	background: #fff;
	box-shadow: 0 14px 34px #365a8a1f;
}

.search-suggest[hidden] {
	display: none;
}

.search-suggest-item {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 9px 10px;
	border-radius: 9px;
	color: #111c2d;
	font-size: 15px;
	text-decoration: none;
	cursor: pointer;
}

.search-suggest-item:hover,
.search-suggest-item.is-active {
	background: #f2f7ff;
	color: #167fdf;
}

.search-suggest-icon {
	display: grid;
	flex: 0 0 30px;
	width: 30px;
	height: 30px;
	place-items: center;
	overflow: hidden;
	border-radius: 6px;
	background: #f2f4f8;
	font-size: 18px;
}

.search-suggest-icon img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.search-suggest-empty {
	margin: 0;
	padding: 10px;
	color: #7c8aa0;
	font-size: 14px;
}

/* ===== 优惠券票券标题超长左右滚动（store / account 共用） =====
   JS 实测溢出后才加 .is-overflow，并把需要平移的像素写进自定义属性。 */
[data-promo-marquee] {
	overflow: hidden;
	white-space: nowrap;
}

.promo-marquee-inner {
	display: inline-block;
	white-space: nowrap;
	vertical-align: top;
}

[data-promo-marquee].is-overflow .promo-marquee-inner {
	animation: promo-marquee-shift var(--promo-marquee-duration, 8s) ease-in-out .8s infinite alternate;
}

[data-promo-marquee].is-overflow:hover .promo-marquee-inner {
	animation-play-state: paused;
}

@keyframes promo-marquee-shift {

	0%,
	15% {
		transform: translateX(0);
	}

	85%,
	100% {
		transform: translateX(var(--promo-marquee-shift, -100%));
	}
}

@media (prefers-reduced-motion: reduce) {

	[data-promo-marquee].is-overflow .promo-marquee-inner {
		animation: none;
	}
}