/*--------------------------------------------------------------
# Announcement bar
--------------------------------------------------------------*/

.announcement {
	position: sticky;
	top: 0;
	z-index: var(--z-announcement);
	display: flex;
	overflow: hidden;
	height: var(--announcement-height);
	min-height: var(--announcement-height);
	padding: 7px 20px;
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.03em;
	background: var(--gradient-announcement);
}

.announcement__track {
	display: flex;
	width: max-content;
	will-change: transform;
	animation: nuowa-marquee 30s linear -6s infinite;
}

.announcement__message {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	min-width: max-content;
	min-height: var(--announcement-height);
	padding: 7px 44px 7px 20px;
}

.announcement__text {
	white-space: nowrap;
	min-width: max-content;
}

.announcement__badge {
	display: grid;
	place-items: center;
	flex: none;
	width: 18px;
	height: 18px;
	border: 1px solid rgba(255, 255, 255, 0.72);
	border-radius: 50%;
	font-size: 11px;
}

@keyframes nuowa-marquee {
	from {
		transform: translate(0);
	}

	to {
		transform: translate(-50%);
	}
}

/*--------------------------------------------------------------
# Site header
--------------------------------------------------------------*/

.site-header {
	position: sticky;
	top: var(--announcement-height);
	z-index: var(--z-header);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 28px;
	width: 100%;
	height: var(--header-height);
	padding: 6px clamp(22px, 5vw, 76px);
	background: var(--color-header-bg);
	border-bottom: 1px solid rgba(220, 232, 239, 0.8);
	-webkit-backdrop-filter: blur(16px);
	backdrop-filter: blur(16px);
}

.brand {
	position: relative;
	flex: none;
	width: 210px;
	height: 76px;
	overflow: hidden;
}

.brand a {
	position: relative;
	display: block;
	width: 100%;
	height: 100%;
}

.brand img,
.brand .custom-logo-link img {
	position: absolute;
	top: 50%;
	left: 50%;
	width: auto;
	height: auto;
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
	transform: translate(-50%, -50%);
}

.brand__fallback {
	display: flex;
	align-items: center;
	height: 100%;
	color: var(--color-navy);
	font-size: 22px;
	font-weight: 700;
}

.brand__text {
	align-items: center;
	letter-spacing: -.023em;
}

.brand__text-footer {
	height: auto;
	color: #fff;
	font-size: 28px;
}

.site-footer .brand__text-footer {
	color: #fff;
}

.desktop-nav {
	display: flex;
	flex: 1;
	align-items: center;
	justify-content: center;
}

.desktop-nav ul {
	display: flex;
	/* innmi 桌面端导航不换行：空间不足时项内折行，8 项始终保持一行 */
	flex-wrap: nowrap;
	align-items: center;
	justify-content: center;
	gap: clamp(20px, 3vw, 48px);
	margin: 0;
	padding: 0;
	list-style: none;
}

.desktop-nav a {
	position: relative;
	padding: 12px 0;
	color: var(--color-nav-link);
	font-size: 14px;
	font-weight: 500;
}

.desktop-nav a::after {
	content: "";
	position: absolute;
	left: 0;
	right: 100%;
	bottom: 3px;
	height: 2px;
	background: var(--color-teal);
	transition: right var(--transition-fast);
}

.desktop-nav a:hover::after,
.desktop-nav a:focus-visible::after {
	right: 0;
}

.header-actions {
	display: flex;
	align-items: center;
	gap: 16px;
}

/* Language switcher (translate.js custom UI). */
#translate {
	position: relative;
	display: inline-flex;
}

#translate select {
	display: none;
}

.lang-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 38px;
	padding: 0 13px;
	color: var(--color-navy);
	background: #fff;
	border: 1px solid #c9d8e2;
	border-radius: var(--radius-pill);
	font-size: 12px;
	font-weight: 750;
	letter-spacing: 0.03em;
	cursor: pointer;
	transition: border-color var(--transition-fast), background var(--transition-fast);
}

.lang-btn:hover {
	background: var(--color-ice);
	border-color: #9fbecd;
}

.lang-arrow {
	display: inline-block;
	width: 0;
	height: 0;
	border-top: 5px solid currentColor;
	border-right: 4px solid transparent;
	border-left: 4px solid transparent;
	transition: transform var(--transition-fast);
}

.lang-btn[aria-expanded="true"] .lang-arrow {
	transform: rotate(180deg);
}

.lang-dropdown {
	position: absolute;
	top: calc(100% + 8px);
	right: 0;
	z-index: 60;
	min-width: 152px;
	padding: 6px 0;
	background: #fff;
	border: 1px solid var(--color-line);
	border-radius: var(--radius-input);
	box-shadow: 0 12px 36px -12px rgba(15, 41, 66, 0.25);
	opacity: 0;
	visibility: hidden;
	transform: translateY(-6px);
	transition: opacity var(--transition-fast), visibility var(--transition-fast), transform var(--transition-fast);
}

.lang-dropdown.open {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.lang-item {
	display: block;
	padding: 10px 16px;
	color: var(--color-navy);
	font-size: 12px;
	font-weight: 700;
	text-decoration: none;
	cursor: pointer;
	transition: background var(--transition-fast), color var(--transition-fast);
}

.lang-item:hover {
	color: var(--color-teal);
	background: var(--color-ice);
}

.menu-button {
	display: none;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 5px;
	width: 42px;
	height: 42px;
	padding: 0;
	background: #fff;
	border: 1px solid #bad0dc;
	border-radius: var(--radius-input);
	cursor: pointer;
}

.menu-button span:not(.screen-reader-text) {
	width: 20px;
	height: 2px;
	background: var(--color-navy);
}

/*--------------------------------------------------------------
# Buttons
--------------------------------------------------------------*/

.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	min-height: 48px;
	padding: 0 24px;
	border: 1px solid transparent;
	border-radius: var(--radius-button);
	font-size: 14px;
	font-weight: 800;
	cursor: pointer;
	transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
}

.button:hover {
	transform: translateY(-2px);
}

.button-small {
	min-height: 42px;
	padding-inline: 20px;
}

.button-gradient {
	color: #fff;
	background: var(--gradient-button);
	box-shadow: var(--shadow-button);
}

.button-outline {
	color: #fff;
	background: rgba(255, 255, 255, 0.08);
	border-color: rgba(255, 255, 255, 0.75);
}

.dark-outline {
	color: var(--color-navy);
	background: #fff;
	border-color: #aac6d8;
}

.text-link {
	color: var(--color-blue);
	font-size: 12px;
	font-weight: 800;
}

/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/

.site-footer {
	display: grid;
	grid-template-columns: 1.6fr 1fr 1fr 1.3fr;
	gap: 40px;
	padding: 64px max(28px, 50% - 590px) 30px;
	color: rgba(255, 255, 255, 0.66);
	background: var(--color-footer-bg);
}

.footer-brand img,
.footer-brand .custom-logo-link img {
	width: 190px;
	height: auto;
	padding: 8px;
	background: #fff;
	border-radius: 10px;
}

.footer-brand p {
	margin: 16px 0 0;
}

.footer-nav strong {
	display: block;
	margin-bottom: 12px;
	color: #fff;
}

.footer-nav a {
	display: block;
	padding: 5px 0;
}

.footer-nav a:hover,
.footer-nav a:focus-visible {
	color: #fff;
}

.footer-nav__notice {
	display: block;
	margin-top: 8px;
	font-size: 12px;
}

.footer-contact strong,
.footer-payment span {
	display: block;
	margin-bottom: 12px;
	color: #fff;
}

.footer-contact p {
	margin: 0 0 10px;
	line-height: 1.65;
}

.footer-contact a {
	color: inherit;
}

.footer-contact a:hover,
.footer-contact a:focus-visible {
	color: #fff;
}

.footer-payment {
	grid-column: 1 / -1;
}

.footer-payment ul {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.footer-payment li {
	min-width: 88px;
	padding: 8px 10px;
	text-align: center;
	background: rgba(255, 255, 255, .08);
	border: 1px solid rgba(255, 255, 255, .16);
	border-radius: 6px;
	font-size: 11px;
	font-weight: 750;
}

.footer-bottom {
	grid-column: 1 / -1;
	padding-top: 28px;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	font-size: 11px;
}

/*--------------------------------------------------------------
# Floating support dock (WhatsApp only)
--------------------------------------------------------------*/

.floating-support-spacer {
	height: calc(86px + env(safe-area-inset-bottom));
}

.floating-support-dock {
	position: fixed;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: var(--z-dock);
	padding: 10px 18px calc(10px + env(safe-area-inset-bottom));
	background: rgba(255, 255, 255, 0.96);
	border-top: 1px solid rgba(3, 45, 79, 0.09);
	box-shadow: 0 -10px 30px rgba(3, 34, 64, 0.12);
	-webkit-backdrop-filter: blur(14px);
	backdrop-filter: blur(14px);
}

.floating-support-dock__inner {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
	width: min(100%, 620px);
	margin: 0 auto;
}

.support-whatsapp-button,
.support-chat-button {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	gap: 11px;
	min-height: 68px;
	padding: 8px 18px;
	color: #fff;
	font-weight: 900;
	text-align: left;
	background: linear-gradient(100deg, var(--color-blue), var(--color-teal));
	border-radius: var(--radius-field);
	box-shadow: 0 10px 24px rgba(0, 113, 173, 0.23);
}

.support-chat-button {
	border: 0;
	font-family: inherit;
	cursor: pointer;
}

.support-whatsapp-icon,
.support-chat-icon {
	display: grid;
	place-items: center;
	flex: none;
	width: 30px;
	height: 30px;
	color: #fff;
	background: rgba(255, 255, 255, 0.12);
	border: 1px solid rgba(255, 255, 255, 0.48);
	border-radius: 50%;
	font-size: 10px;
	font-weight: 950;
	letter-spacing: -0.04em;
}

.support-whatsapp-button strong,
.support-chat-button strong {
	display: block;
	font-size: 14px;
}

.support-whatsapp-button small,
.support-chat-button small {
	font-size: 11px;
	font-weight: 700;
	opacity: 0.85;
}

@media (max-width: 700px) {
	.support-whatsapp-button,
	.support-chat-button {
		gap: 8px;
		padding: 8px 12px;
	}

	.support-whatsapp-button strong,
	.support-chat-button strong {
		font-size: 12.5px;
	}

	.support-whatsapp-button small,
	.support-chat-button small {
		font-size: 10px;
	}
}

/* Customer-service card (side support widget style) */
.support-card {
	width: min(100%, 320px);
	margin: 0 auto;
	background: #fff;
	border: 1px solid var(--color-line);
	border-radius: var(--radius-card);
	box-shadow: 0 14px 34px rgba(2, 45, 84, 0.14);
	overflow: hidden;
}

.support-card__toggle {
	display: flex;
	align-items: center;
	gap: 11px;
	width: 100%;
	padding: 11px 14px;
	background: linear-gradient(100deg, var(--color-blue), var(--color-teal));
	border: 0;
	color: #fff;
	cursor: pointer;
	text-align: left;
}

.support-card__badge {
	display: grid;
	place-items: center;
	flex: none;
	width: 30px;
	height: 30px;
	color: #fff;
	background: rgba(255, 255, 255, 0.12);
	border: 1px solid rgba(255, 255, 255, 0.48);
	border-radius: 50%;
	font-size: 10px;
	font-weight: 950;
	letter-spacing: -0.04em;
}

.support-card__title {
	display: grid;
	flex: 1;
	gap: 2px;
}

.support-card__title strong {
	font-size: 14px;
}

.support-card__title small {
	font-size: 11px;
	font-weight: 700;
	opacity: 0.85;
}

.support-card__chevron {
	flex: none;
	transition: transform 0.2s;
}

.support-card:not(.is-open) .support-card__chevron {
	transform: rotate(180deg);
}

.support-card__panel {
	display: grid;
	gap: 4px;
	padding: 8px 10px 10px;
}

.support-card:not(.is-open) .support-card__panel {
	display: none;
}

.support-channel {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 9px 10px;
	border-radius: 12px;
	transition: background 0.2s;
}

.support-channel:hover {
	background: var(--color-ice);
}

.support-channel__icon {
	display: grid;
	place-items: center;
	flex: none;
	width: 34px;
	height: 34px;
	color: #fff;
	background: linear-gradient(100deg, var(--color-blue), var(--color-teal));
	border-radius: 50%;
}

.support-channel__text {
	display: grid;
	gap: 2px;
	min-width: 0;
}

.support-channel__text strong {
	color: var(--color-navy);
	font-size: 13px;
}

.support-channel__text small {
	color: var(--color-muted);
	font-size: 11px;
	overflow-wrap: anywhere;
}

/*--------------------------------------------------------------
# Archive fallback
--------------------------------------------------------------*/

.archive-wrap {
	width: min(var(--container-max), 100% - var(--container-inset));
	margin: 0 auto;
	padding: var(--space-11) 0;
}

.archive-title {
	font-size: var(--fs-section-title);
	color: var(--color-navy-deep);
}

.archive-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 22px;
	margin-top: var(--space-7);
}

.archive-card {
	border: 1px solid var(--color-line);
	background: #fff;
	border-radius: var(--radius-card);
	overflow: hidden;
	box-shadow: var(--shadow-card);
}

.archive-card__media img {
	width: 100%;
	aspect-ratio: 1;
	object-fit: cover;
}

.archive-card__body {
	padding: var(--space-6);
}

.archive-card__title {
	font-size: 20px;
	color: var(--color-navy);
}

.archive-card__excerpt {
	margin: 10px 0 16px;
	color: var(--color-muted);
	font-size: var(--fs-body);
	line-height: 1.7;
}

.empty-state {
	padding: 48px 24px;
	color: var(--color-muted);
	text-align: center;
	border: 1px dashed #cbdde5;
	border-radius: 18px;
}

.archive-wrap .pagination,
.archive-wrap .page-numbers {
	margin-top: var(--space-8);
	text-align: center;
}

.pagination .page-numbers {
	display: inline-block;
	min-width: 42px;
	padding: 10px 14px;
	border: 1px solid var(--color-line);
	border-radius: var(--radius-input);
	color: var(--color-navy);
	font-weight: 800;
}

.page-numbers .page-numbers.current {
	background: var(--color-navy);
	border-color: var(--color-navy);
	color: #fff;
}

/*--------------------------------------------------------------
# Responsive
--------------------------------------------------------------*/

@media (max-width: 1050px) {

	.site-header {
		gap: 16px;
		padding: 6px 22px;
	}

	.header-actions {
		gap: 10px;
	}

	.lang-btn {
		min-height: 34px;
		padding: 0 10px;
		font-size: 11px;
	}

	.desktop-nav {
		gap: 18px;
	}

	.desktop-nav ul {
		gap: 18px;
	}
}

@media (max-width: 820px) {

	.site-header {
		height: 72px;
		padding: 6px 18px;
	}

	.brand {
		width: 172px;
		height: 60px;
	}

	.brand img,
	.brand .custom-logo-link img {
		/* 方形徽章 logo 必须完整落在 brand 盒内，避免超出导航栏被裁切 */
		max-width: 100%;
		max-height: 100%;
	}

	.desktop-nav {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		padding: 12px 20px 24px;
		background: #fff;
		border-bottom: 1px solid var(--color-line);
		box-shadow: 0 20px 30px rgba(4, 43, 81, 0.12);
	}

	.desktop-nav ul {
		flex-direction: column;
		align-items: stretch;
		gap: 0;
	}

	.desktop-nav.is-open {
		display: flex;
	}

	.desktop-nav a {
		padding: 14px 4px;
		border-bottom: 1px solid #edf2f5;
	}

	.desktop-nav a::after {
		display: none;
	}

	.header-actions .button {
		display: none;
	}

	.menu-button {
		display: flex;
	}

	.site-footer {
		grid-template-columns: 1fr 1fr;
		padding: 54px 24px 30px;
	}

	.footer-contact {
		grid-column: 1 / -1;
	}

	.archive-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 14px;
	}
}

@media (max-width: 480px) {

	.announcement {
		font-size: 10px;
	}

	.site-header {
		gap: 8px;
		height: 64px;
		padding: 6px 12px;
	}

	.brand {
		width: 132px;
		height: 52px;
	}

	.brand img,
	.brand .custom-logo-link img {
		max-width: 100%;
		max-height: 100%;
	}

	.brand__text {
		font-size: 20px;
	}

	.header-actions {
		gap: 8px;
	}

	.lang-btn {
		min-height: 32px;
		padding: 0 9px;
		font-size: 11px;
	}

	.lang-dropdown {
		min-width: 136px;
	}

	.menu-button {
		width: 38px;
		height: 38px;
	}

	.archive-grid {
		grid-template-columns: 1fr 1fr;
		gap: 10px;
	}
}
