@font-face {
	font-display: swap;
	font-family: "GTF Adieu TRIAL";
	font-style: normal;
	font-weight: 400;
	src: url("../fonts/GTFAdieuTRIAL-Regular.otf") format("opentype");
}

@font-face {
	font-display: swap;
	font-family: "GTF Adieu TRIAL";
	font-style: normal;
	font-weight: 700;
	src: url("../fonts/GTFAdieuTRIAL-Bold.otf") format("opentype");
}

@font-face {
	font-display: swap;
	font-family: "Source Han Sans CN";
	font-style: normal;
	font-weight: 400;
	src: url("../fonts/SourceHanSansCN-Regular.otf") format("opentype");
}

:root {
	--phomi-blue: #70c7d1;
	--phomi-font: "GTF Adieu TRIAL";
}

html,
body {
	margin: 0;
	overflow-x: hidden;
}

body.page-template-page-installation-video,
body.page-template-page-installation-video #page,
body.page-template-page-installation-video #content,
body.page-template-page-installation-video .site-content,
body.page-template-page-installation-video .ast-container,
body.page-template-page-installation-video .content-area,
body.page-template-page-installation-video .site-main,
body.page-template-page-installation-video .entry-content,
body:has(#primary.phomi-installation),
body:has(#primary.phomi-installation) #page,
body:has(#primary.phomi-installation) #content,
body:has(#primary.phomi-installation) .site-content,
body:has(#primary.phomi-installation) .ast-container,
body:has(#primary.phomi-installation) .content-area,
body:has(#primary.phomi-installation) .site-main,
body:has(#primary.phomi-installation) .entry-content {
	margin: 0;
	max-width: none;
	padding: 0;
}

html:has(body.page-template-page-installation-video),
html:has(#primary.phomi-installation) {
	margin-top: 0 !important;
}

body.page-template-page-installation-video .site-header,
body.page-template-page-installation-video .site-footer,
body.page-template-page-installation-video #wpadminbar,
body:has(#primary.phomi-installation) .site-header,
body:has(#primary.phomi-installation) .site-footer,
body:has(#primary.phomi-installation) #wpadminbar {
	display: none;
}

.ast-plain-container.ast-no-sidebar #primary.phomi-installation,
#primary.phomi-installation,
.phomi-installation {
	background: #fff;
	color: #000;
	font-family: var(--phomi-font);
	margin: 0;
	min-height: 100vh;
	padding: 0;
}

.phomi-installation *,
.phomi-installation *::before,
.phomi-installation *::after {
	box-sizing: border-box;
}

.phomi-installation img {
	display: block;
	max-width: 100%;
}

.phomi-header {
	height: 4.6875vw;
	left: 0;
	position: absolute;
	top: 0;
	width: 100%;
	z-index: 40;
}

.phomi-header__inner {
	height: 100%;
	margin: 0 auto;
	max-width: 1920px;
	position: relative;
}

.phomi-logo {
	aspect-ratio: 2269 / 875;
	display: block;
	left: 15.104167vw;
	line-height: 0;
	position: absolute;
	top: 0.572917vw;
	width: 8.333333vw;
}

.phomi-logo img {
	height: 100%;
	object-fit: contain;
	width: 100%;
}

.phomi-nav {
	left: 26.822917vw;
	position: absolute;
	top: 1.822917vw;
	white-space: nowrap;
}

.phomi-nav ul {
	align-items: flex-start;
	display: flex;
	gap: 2.1875vw;
	list-style: none;
	margin: 0;
	padding: 0;
}

.phomi-nav li {
	line-height: 1;
	position: relative;
}

.phomi-nav a {
	align-items: center;
	color: #fff;
	display: inline-flex;
	font-size: 0.729167vw;
	font-weight: 400;
	line-height: 1.041667vw;
	text-decoration: none;
	transition: color 0.28s ease, opacity 0.28s ease, transform 0.28s ease;
}

.phomi-nav > ul > li:nth-child(-n+6) > a,
.phomi-nav > ul > li:last-child > a {
	/* text-transform: uppercase; */
}

.phomi-nav .has-menu > a::after {
	border-bottom: 1px solid currentColor;
	border-right: 1px solid currentColor;
	content: "";
	height: 0.260417vw;
	margin-left: 0.416667vw;
	position: relative;
	top: -0.026042vw;
	transform: rotate(45deg);
	transition: transform 0.24s ease;
	width: 0.260417vw;
}

.phomi-nav > ul > li > a:hover,
.phomi-nav > ul > li > a:focus-visible {
	color: #fff;
	opacity: 1;
	transform: translateY(-1px) scale(1.08);
}

.phomi-nav .has-menu:hover > a::after,
.phomi-nav .has-menu:focus-within > a::after {
	transform: rotate(225deg);
}

.phomi-mega-menu {
	background: #fff;
	height: 346px;
	left: 0;
	opacity: 0;
	pointer-events: none;
	position: fixed;
	top: 90px;
	transform: translateY(-8px);
	transition: opacity 0.24s ease, transform 0.24s ease, visibility 0.24s ease;
	visibility: hidden;
	width: 100vw;
	z-index: 30;
}

.phomi-mega-menu::before {
	pointer-events: none;
	content: "";
	height: 90px;
	left: 0;
	position: absolute;
	top: -90px;
	width: 100%;
}

.phomi-mega-menu__panel {
	background: #1a1a1a;
	height: 320px;
	position: relative;
	width: 100%;
}

.phomi-menu-scrim {
	background: rgba(0, 0, 0, 0.5);
	bottom: 0;
	left: 0;
	opacity: 0;
	pointer-events: none;
	position: fixed;
	right: 0;
	top: 436px;
	transition: opacity 0.24s ease, visibility 0.24s ease;
	visibility: hidden;
	z-index: 15;
}

.phomi-header:has(.has-mega-menu:hover) ~ .phomi-menu-scrim,
.phomi-header:has(.has-mega-menu:focus-within) ~ .phomi-menu-scrim {
	opacity: 0;
	visibility: hidden;
}

.phomi-nav .phomi-mega-card {
	color: #fff;
	display: block !important;
	left: 455px;
	position: absolute;
	text-decoration: none;
	top: 50px;
	transition: filter 0.28s ease, transform 0.28s ease;
	width: 310px;
}

.phomi-nav .phomi-mega-card img {
	height: 186px;
	object-fit: cover;
	width: 310px;
}

.phomi-nav .phomi-mega-card span {
	color: #fff;
	display: block;
	font-size: 14px;
	font-weight: 400;
	line-height: 28px;
	margin-top: 8px;
	text-align: left;
	/* text-transform: capitalize; */
}

.phomi-nav .phomi-mega-card:nth-child(2) {
	left: 805px;
}

.phomi-nav .phomi-mega-card:nth-child(3) {
	left: 1155px;
}

.phomi-nav .has-mega-menu--about .phomi-mega-card:nth-child(1) {
	left: 295px;
}

.phomi-nav .has-mega-menu--about .phomi-mega-card:nth-child(2) {
	left: 635px;
}

.phomi-nav .has-mega-menu--about .phomi-mega-card:nth-child(3) {
	left: 975px;
}

.phomi-nav .has-mega-menu--about .phomi-mega-card:nth-child(4) {
	left: 1315px;
}

.phomi-nav .has-mega-menu--case .phomi-mega-menu {
	height: 596px;
}

.phomi-nav .has-mega-menu--case .phomi-mega-menu__panel {
	height: 570px;
}

.phomi-nav .has-mega-menu--application .phomi-mega-card:nth-child(1),
.phomi-nav .has-mega-menu--case .phomi-mega-card:nth-child(1) {
	left: 295px;
	top: 50px;
}

.phomi-nav .has-mega-menu--application .phomi-mega-card:nth-child(2),
.phomi-nav .has-mega-menu--case .phomi-mega-card:nth-child(2) {
	left: 635px;
	top: 50px;
}

.phomi-nav .has-mega-menu--application .phomi-mega-card:nth-child(3),
.phomi-nav .has-mega-menu--case .phomi-mega-card:nth-child(3) {
	left: 975px;
	top: 50px;
}

.phomi-nav .has-mega-menu--application .phomi-mega-card:nth-child(4),
.phomi-nav .has-mega-menu--case .phomi-mega-card:nth-child(4) {
	left: 1315px;
	top: 50px;
}

.phomi-nav .has-mega-menu--application .phomi-mega-card:nth-child(5),
.phomi-nav .has-mega-menu--case .phomi-mega-card:nth-child(5) {
	left: 295px;
	top: 304px;
}

.phomi-nav .has-mega-menu--application .phomi-mega-card:nth-child(6) {
	left: 635px;
	top: 304px;
}

.phomi-header.is-mega-active {
	background: #fff;
}

.phomi-header.is-mega-active .phomi-nav > ul > li > a {
	color: #000;
}

.has-mega-menu.is-mega-open > a {
	color: var(--phomi-blue) !important;
}

.has-mega-menu.is-mega-open .phomi-mega-menu {
	opacity: 1 !important;
	pointer-events: auto !important;
	transform: translateY(0) !important;
	visibility: visible !important;
}

.phomi-nav .phomi-mega-card:hover,
.phomi-nav .phomi-mega-card:focus-visible {
	filter: brightness(1.08);
	outline: none;
	transform: translateY(-4px);
}


/* =========================================================
   PHOMI Installation Video — Figma 3:1475 · 1920 画布等比缩放
   ========================================================= */

.phomi-stage {
	width: 100%;
	overflow: hidden;
	background: #fff;
}

.phomi-page {
	width: 1920px;
	min-height: 1488px;
	/* 分页 + 卡片自然高度溢出原 Figma 1488px 画布，预留底部空间避免 stage 裁切 */
	padding-bottom: 160px;
	margin: 0;
	background: #fff;
	position: relative;
	transform-origin: top left;
}

/* ---------- Hero ---------- */
.phomi-videos-hero {
	background: none;
	color: #fff;
	display: block;
	height: auto;
	min-height: 0;
	overflow: hidden;
	position: relative;
	width: 100%;
}

.phomi-videos-hero__media {
	line-height: 0;
	position: relative;
	width: 100%;
}

.phomi-videos-hero__media::after {
	background: rgba(0, 0, 0, 0.15);
	content: "";
	inset: 0;
	pointer-events: none;
	position: absolute;
}

.phomi-videos-hero__media img {
	display: block;
	height: auto;
	width: 100%;
}

.phomi-videos-hero .phomi-header,
.phomi-videos-hero .phomi-menu-scrim {
	left: 0;
	position: absolute;
	top: 0;
	width: 100%;
	z-index: 2;
}

.phomi-videos-hero__title {
	bottom: clamp(32px, 3.645833vw, 70px);
	color: #fff;
	font-size: clamp(44px, 3.645833vw, 70px);
	font-weight: 700;
	left: clamp(22px, 3.645833vw, 70px);
	line-height: 1;
	margin: 0;
	max-width: min(1216px, calc(100% - 7.291666vw));
	position: absolute;
	text-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
	/* text-transform: uppercase; */
	z-index: 2;
}

/* ---------- Classify 1488px ---------- */
.phomi-classify {
	position: relative;
	width: 1920px;
	min-height: 1488px;
	background: #fff;
}

.phomi-classify__title {
	position: absolute;
	left: 50%;
	top: 142px;
	transform: translate(-50%, -50%);
	font-weight: 300;
	font-size: 60px;
	line-height: 44px;
	text-align: center;
	/* text-transform: uppercase; */
	color: #000;
	white-space: nowrap;
	margin: 0;
}

.phomi-classify__tabs {
	position: absolute;
	left: 0;
	top: 244px;
	width: 1920px;
	height: 80px;
}

.phomi-classify__tab {
	align-items: center;
	appearance: none;
	background: transparent;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	cursor: pointer;
	display: flex;
	font-family: "GTF Adieu TRIAL";
	font-weight: 400;
	font-size: 18px;
	height: 100%;
	justify-content: center;
	line-height: 24px;
	padding: 0;
	position: absolute;
	text-align: center;
	/* text-transform: capitalize; */
	top: 0;
	width: 960px;
	color: #000;
}

.phomi-classify__tab:hover,
.phomi-classify__tab:focus,
.phomi-classify__tab:active,
.phomi-classify__tab:focus-visible {
	background: transparent !important;
	box-shadow: none;
	color: #000 !important;
	outline: none;
}

.phomi-classify__tab.is-active {
	background: #f9f9f9 !important;
	color: #000;
}

.phomi-classify__tab.is-active:hover,
.phomi-classify__tab.is-active:focus,
.phomi-classify__tab.is-active:active,
.phomi-classify__tab.is-active:focus-visible {
	background: #f9f9f9 !important;
	color: #000 !important;
}

.phomi-classify__tab:first-of-type {
	left: 0;
}

.phomi-classify__tab:nth-of-type(2) {
	left: 960px;
}

.phomi-classify__tab:not(.is-active) {
	color: rgba(0, 0, 0, 0.45);
}

.phomi-classify__tab-line {
	position: absolute;
	left: 0;
	height: 2px;
	pointer-events: none;
}

.phomi-classify__tab-line--top {
	top: 0;
	width: 1920px;
	background: #e5e5e5;
}

.phomi-classify__tab-line--base {
	bottom: 0;
	width: 1920px;
	background: #e5e5e5;
}

.phomi-classify__tab-line--active {
	bottom: 0;
	width: 960px;
	height: 3px;
	background: #000;
	transition: left 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.phomi-classify__tabs[data-active="scenario"] .phomi-classify__tab-line--active {
	left: 960px;
}

.phomi-classify__tabs[data-active="method"] .phomi-classify__tab-line--active,
.phomi-classify__tabs:not([data-active]) .phomi-classify__tab-line--active {
	left: 0;
}

.phomi-classify__panels {
	position: absolute;
	left: 340px;
	top: 413px;
	width: 1240px;
}

.phomi-classify__panel[hidden] {
	display: none;
}

.phomi-video-grid {
	display: grid;
	grid-template-columns: repeat(3, 394px);
	grid-template-rows: repeat(2, auto);
	column-gap: 29px;
	row-gap: 40px;
}

.phomi-video-grid__page {
	display: contents;
}

.phomi-video-grid__page[hidden] {
	display: none;
}

/* 1920 画布：分页固定 px，随 phomi-stage scale 与 esolar Texture selection 视觉一致 */
.phomi-installation .phomi-esolar-pagination {
	gap: 12px;
	margin-top: 60px;
}

.phomi-installation .phomi-esolar-pagination button {
	border-width: 2px;
	font-size: 18px;
	height: 60px;
	line-height: 28px;
}

.phomi-installation .phomi-esolar-pagination__page {
	min-width: 60px;
	padding: 0;
	width: 60px;
}

.phomi-installation .phomi-esolar-pagination__prev,
.phomi-installation .phomi-esolar-pagination__next {
	min-width: 60px;
	padding-inline: 17px;
}

.phomi-vcard {
	width: 394px;
	min-height: 454px;
	background: #fff;
	border-radius: 6px;
	box-shadow: 0 20px 80px rgba(0, 0, 0, 0.06);
	padding: 24px 24px 28px;
	box-sizing: border-box;
}

.phomi-vcard__media {
	width: 346px;
	height: 184px;
	overflow: hidden;
}

.phomi-vcard__media > img {
	display: block;
	height: 100%;
	object-fit: cover;
	transition: transform 0.45s ease;
	width: 100%;
}

.phomi-vcard:hover .phomi-vcard__media > img,
.phomi-vcard:focus-within .phomi-vcard__media > img {
	transform: scale(1.1);
}

.phomi-vcard__play {
	display: block;
	width: 44px;
	height: 44px;
	margin-top: 16px;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	color: inherit;
	cursor: pointer;
	line-height: 0;
	outline: none;
	text-decoration: none;
	transform: scale(1);
	transition: transform 0.28s ease;
}

.phomi-vcard__play:disabled {
	cursor: default;
	opacity: 0.45;
	transform: none;
}

.phomi-vcard__play img {
	width: 44px;
	height: 44px;
	display: block;
	pointer-events: none;
}

.phomi-vcard__play:hover,
.phomi-vcard__play:focus,
.phomi-vcard__play:focus-visible,
.phomi-vcard__play:active {
	background: transparent !important;
	border: 0 !important;
	box-shadow: none !important;
	color: inherit !important;
	outline: none !important;
	transform: scale(1.2);
}

.phomi-vcard__play:disabled:hover,
.phomi-vcard__play:disabled:focus,
.phomi-vcard__play:disabled:active {
	transform: none;
}

/* ---------- Video modal ---------- */
.phomi-video-modal {
	align-items: center;
	display: flex;
	inset: 0;
	justify-content: center;
	position: fixed;
	z-index: 100000;
}

.phomi-video-modal[hidden] {
	display: none;
}

.phomi-video-modal__backdrop {
	background: rgba(0, 0, 0, 0.86);
	inset: 0;
	position: absolute;
}

.phomi-video-modal__close {
	align-items: center;
	appearance: none;
	background: none;
	/* border: 0; */
	color: #fff;
	cursor: pointer;
	display: inline-flex;
	height: 40px;
	justify-content: center;
	padding: 0;
	position: absolute;
	right: clamp(20px, 3vw, 48px);
	top: clamp(20px, 3vw, 48px);
	width: 40px;
	z-index: 2;
	border: 1px solid #fff;
	border-radius: 50%;
}
button.phomi-video-modal__close{
	background: none;
	border: 1px solid #fff;
}

.phomi-video-modal__close:hover,
.phomi-video-modal__close:focus-visible {
	color: var(--phomi-blue, #70c7d1);
	outline: none;
}

.phomi-video-modal__close svg {
	display: block;
	height: 24px;
	width: 24px;
}

.phomi-video-modal__dialog {
	height: 50vh;
	position: relative;
	width: 50vw;
	z-index: 1;
}

.phomi-video-modal__player {
	background: #000;
	display: block;
	height: 100%;
	object-fit: contain;
	width: 100%;
}

body.phomi-video-modal-open {
	overflow: hidden;
}

.phomi-vcard h3 {
	margin-top: 16px;
	font-weight: 700;
	font-size: 18px;
	line-height: 24px;
	/* text-transform: capitalize; */
	color: #000;
	white-space: nowrap;
}

.phomi-vcard__desc {
	margin-top: 8px;
	width: 342px;
	font-weight: 300;
	font-size: 12px;
	line-height: 18px;
	/* text-transform: capitalize; */
	color: #000;
}

.phomi-vcard__bar {
	display: block;
	margin-top: 24px;
	width: 29px;
	height: 3px;
	background: #000;
}

.phomi-vcard__meta {
	margin-top: 22px;
	width: 342px;
	font-weight: 300;
	font-size: 12px;
	line-height: 18px;
	/* text-transform: capitalize; */
	color: #666;
}

/* ---------- Motion: opacity only ---------- */
@keyframes phomi-fade-in {
	from { opacity: 0; }
	to { opacity: 1; }
}

.phomi-videos-hero__title {
	animation: phomi-fade-in 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.2s both;
}

.anim {
	opacity: 0;
	transition: opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1);
	transition-delay: var(--anim-delay, 0ms);
}

.anim.is-in {
	opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
	.phomi-videos-hero__title,
	.anim {
		animation: none !important;
		transition: none !important;
		opacity: 1 !important;
	}
}

.phomi-footer {
	background: #000;
	color: #d1d5db;
	display: grid;
	gap: 70px;
	grid-template-columns: repeat(6, 1fr);
	padding: 100px 70px 140px;
}

.phomi-footer strong {
	color: var(--phomi-blue);
	display: block;
	font-size: 20px;
	font-weight: 400;
	line-height: 28px;
	margin-bottom: 40px;
}

.phomi-footer a {
	color: #d1d5db;
	display: block;
	font-size: 14px;
	line-height: 30px;
	text-decoration: none;
}

.phomi-nav > ul > li > a, .phomi-video-card, .phomi-video-card img, .phomi-video-card__play, .phomi-footer a {
	transition: background-color 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease, color 0.28s ease, filter 0.45s ease, opacity 0.28s ease, transform 0.28s ease;
}

.phomi-video-card:hover {
	transform: translateY(-6px);
}

.phomi-video-card:hover img {
	filter: brightness(0.88);
}

.phomi-video-card__play:hover,
.phomi-video-card__play:focus-visible {
	background: var(--phomi-blue);
	color: #fff;
	outline: none;
	transform: translateY(-2px);
}

.phomi-footer a:hover,
.phomi-footer a:focus-visible {
	color: var(--phomi-blue);
}

@media (prefers-reduced-motion: reduce) {
	.phomi-installation *,
	.phomi-installation *::before,
	.phomi-installation *::after {
		transition-duration: 0.01ms !important;
	}
}

@media (max-width: 1440px) {
	.phomi-installation-grid {
		grid-template-columns: repeat(3, minmax(280px, 394px));
	}
}

@media (max-width: 1180px) {
	.phomi-header {
		background: rgba(0, 0, 0, 0.5);
		height: auto;
	}

	.phomi-header__inner {
		align-items: center;
		display: flex;
		gap: 24px;
		justify-content: space-between;
		padding: 18px 28px;
	}

	.phomi-logo,
	.phomi-nav {
		left: auto;
		position: relative;
		top: auto;
	}

	.phomi-logo {
		width: 140px;
	}

	.phomi-nav {
		overflow-x: auto;
	}

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

	.phomi-nav a {
		font-size: 12px;
		line-height: 16px;
	}

	.phomi-nav .has-menu > a::after,
	.phomi-mega-menu,
	.phomi-menu-scrim {
		display: none;
	}

	.phomi-installation-grid,
	.phomi-footer {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

}

@media (max-width: 720px) {
	.phomi-installation-hero {
		height: 580px;
		min-height: 580px;
	}

	.phomi-installation-hero__content {
		bottom: 56px;
		left: 24px;
		right: 24px;
	}

	.phomi-installation-hero h1 {
		font-size: 40px;
		line-height: 1.05;
	}

	.phomi-installation-grid, .phomi-installation-tabs, .phomi-footer {
		grid-template-columns: 1fr;
	}

	.phomi-installation-library {
		padding: 72px 24px;
	}

	.phomi-installation-library h2 {
		font-size: 34px;
		line-height: 1.1;
		margin-bottom: 46px;
	}

	.phomi-installation-tabs {
		margin-left: -24px;
		margin-right: -24px;
	}

	.phomi-installation-grid {
		gap: 28px;
		margin-top: 48px;
	}

	.phomi-video-card {
		min-height: 0;
	}

	.phomi-footer {
		padding-left: 24px;
		padding-right: 24px;
	}

}

/* ≤1024：画布取消缩放后，固定 394px 卡片会撑破视口 */
@media (max-width: 1024px) {
	.phomi-installation .phomi-page,
	.phomi-installation .phomi-classify {
		min-height: 0;
		padding-bottom: 0;
		width: 100%;
	}

	.phomi-installation .phomi-video-grid {
		grid-template-columns: minmax(0, 1fr);
		width: 100%;
	}

	.phomi-installation .phomi-vcard {
		max-width: 100%;
		min-height: 0;
		width: 100%;
	}

	.phomi-installation .phomi-vcard__media,
	.phomi-installation .phomi-vcard__media > img {
		height: auto;
		max-width: 100%;
		width: 100%;
	}

	.phomi-installation .phomi-vcard__media {
		aspect-ratio: 346 / 184;
	}

	.phomi-installation .phomi-vcard__media > img {
		height: 100%;
		object-fit: cover;
	}

	/* 询盘表单的窄屏布局由共用组件 assets/css/inquiry-form.css 统一负责，
	   这里不要再重写 grid-template-columns：只改列数而不同步重排输入框的
	   grid-column，会让 Country / Phone 掉进隐式列，布局错乱。 */
}
