@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-contact,
body.page-template-page-contact #page,
body.page-template-page-contact #content,
body.page-template-page-contact .site-content,
body.page-template-page-contact .ast-container,
body.page-template-page-contact .content-area,
body.page-template-page-contact .site-main,
body.page-template-page-contact .entry-content,
body:has(#primary.phomi-contact),
body:has(#primary.phomi-contact) #page,
body:has(#primary.phomi-contact) #content,
body:has(#primary.phomi-contact) .site-content,
body:has(#primary.phomi-contact) .ast-container,
body:has(#primary.phomi-contact) .content-area,
body:has(#primary.phomi-contact) .site-main,
body:has(#primary.phomi-contact) .entry-content {
	margin: 0;
	max-width: none;
	padding: 0;
}

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

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

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

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

.phomi-contact 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 Contact — Figma 3:1541 · 1920 画布等比缩放
   ========================================================= */

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

.phomi-page {
	width: 1920px;
	min-height: 2180px;
	margin: 0;
	background: #fff;
	position: relative;
	transform-origin: top left;
}

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

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

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

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

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

.phomi-contact-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; */
	white-space: nowrap;
	z-index: 2;
}

/* ---------- Brand 800px · y 819 ---------- */
.phomi-contact-brand {
	position: relative;
	width: 1920px;
	height: 800px;
	background: #fff;
}

.phomi-contact-brand__accent {
	position: absolute;
	left: 338px;
	top: 110px;
	width: 138px;
	height: 580px;
	object-fit: cover;
}

.phomi-contact-brand__copy {
	position: absolute;
	left: 560px;
	top: 278px;
	width: 1015px;
}

.phomi-contact-brand__name {
	font-weight: 700;
	font-size: 80px;
	line-height: 80px;
	/* text-transform: capitalize; */
	color: var(--phomi-blue);
	white-space: nowrap;
}

.phomi-contact-brand__text {
	margin-top: 42px;
	width: 1015px;
	font-weight: 300;
	font-size: 18px;
	line-height: 28px;
	/* text-transform: capitalize; */
	color: #000;
}

.phomi-contact-brand__line {
	margin-top: 22px;
	width: 1015px;
	height: 1px;
	background: #000000;
}

/* ---------- Locations #f9f9f9 · 1460px ---------- */
.phomi-contact-locations {
	position: relative;
	width: 1920px;
	min-height: 1460px;
	background: #f9f9f9;
}

.phomi-contact-locations__title {
	position: absolute;
	left: 50%;
	top: 152px;
	transform: translate(-50%, -50%);
	font-weight: 400;
	font-size: 48px;
	line-height: 64px;
	text-align: center;
	/* text-transform: uppercase; */
	color: #000;
	white-space: nowrap;
}

.phomi-contact-locations__grid {
	position: absolute;
	left: 340px;
	top: 244px;
	width: 1240px;
	display: grid;
	grid-template-columns: 608px 608px;
	column-gap: 24px;
	row-gap: 30px;
}

.phomi-contact-loc-card {
	width: 608px;
	min-height: 528px;
	background: #fff;
	border-radius: 6px;
	box-shadow: 0 20px 80px rgba(0, 0, 0, 0.06);
	padding: 24px;
	box-sizing: border-box;
}

.phomi-contact-loc-card__media {
	height: 298px;
	overflow: hidden;
	width: 560px;
}

.phomi-contact-loc-card__img {
	display: block;
	height: 100%;
	object-fit: cover;
	transition: transform 0.45s ease;
	width: 100%;
}

.phomi-contact-loc-card:hover .phomi-contact-loc-card__img,
.phomi-contact-loc-card:focus-within .phomi-contact-loc-card__img {
	transform: scale(1.1);
}

.phomi-contact-loc-card__name {
	margin-top: 26px;
	font-weight: 400;
	font-size: 18px;
	line-height: 18px;
	/* text-transform: capitalize; */
	color: #000;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.phomi-contact-loc-card__addr {
	margin-top: 16px;
	width: 560px;
	font-weight: 300;
	font-size: 12px;
	line-height: 18px;
	/* text-transform: capitalize; */
	color: #666;
	height: 36px;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	text-overflow: ellipsis;
	word-break: break-word;  /* 可选：处理长单词换行 */
}

.phomi-contact-loc-card__btn {
	align-items: center;
	border: 1px solid #000;
	color: #000;
	display: flex;
	font-size: 16px;
	font-weight: 400;
	height: 50px;
	justify-content: center;
	line-height: 28px;
	margin-top: 36px;
	text-align: center;
	text-decoration: none;
	width: 100%;
}

/* ---------- Contact info 752px ---------- */
.phomi-contact-info {
	position: relative;
	width: 1920px;
	height: 752px;
	background: #fff;
}

.phomi-contact-info__title {
	position: absolute;
	left: 50%;
	top: 152px;
	transform: translate(-50%, -50%);
	font-weight: 400;
	font-size: 48px;
	line-height: 64px;
	text-align: center;
	/* text-transform: uppercase; */
	color: #000;
	white-space: nowrap;
}

.phomi-contact-info__sub {
	position: absolute;
	left: 50%;
	top: 226px;
	transform: translate(-50%, -50%);
	width: 658px;
	font-weight: 300;
	font-size: 16px;
	line-height: 26px;
	text-align: center;
	/* text-transform: capitalize; */
	color: #000;
}

.phomi-contact-info__grid {
	position: absolute;
	left: 340px;
	top: 312px;
	width: 1240px;
	display: flex;
	justify-content: space-between;
}

.phomi-contact-cinfo {
	width: 413px;
	height: 310px;
	border: 2px solid #f2f2f2;
	background: #fff;
	text-align: center;
	padding-top: 49px;
	box-sizing: border-box;
	transition: background-color 0.45s ease;
}

.phomi-contact-cinfo:hover,
.phomi-contact-cinfo:focus-within {
	background: #f9f9f9;
}

.phomi-contact-cinfo:nth-child(2) {
	width: 414px;
}

.phomi-contact-cinfo__icon {
	width: 70px;
	height: 70px;
	margin: 0 auto 13px;
	display: block;
}

.phomi-contact-cinfo h3 {
	font-weight: 400;
	font-size: 20px;
	line-height: 26px;
	/* text-transform: capitalize; */
	color: #000;
}

.phomi-contact-cinfo p {
	margin-top: 10px;
	font-weight: 400;
	font-size: 13px;
	line-height: 22px;
	/* text-transform: capitalize; */
	color: #666;
}

.phomi-contact-cinfo p + p {
	margin-top: 0;
}

/* ---------- Social 722px ---------- */
.phomi-contact-social {
	position: relative;
	width: 1920px;
	height: 722px;
	background: #F9F9F9;
}

.phomi-contact-social__title {
	position: absolute;
	left: 50%;
	top: 141px;
	transform: translate(-50%, -50%);
	font-weight: 400;
	font-size: 48px;
	line-height: 64px;
	text-align: center;
	/* text-transform: uppercase; */
	color: #000;
	white-space: nowrap;
}

.phomi-contact-social__sub {
	position: absolute;
	left: 50%;
	top: 189px;
	transform: translateX(-50%);
	font-weight: 300;
	font-size: 16px;
	line-height: 26px;
	text-align: center;
	/* text-transform: capitalize; */
	color: #000;
	white-space: nowrap;
}

.phomi-contact-social__grid {
	position: absolute;
	left: 340px;
	top: 275px;
	width: 1240px;
	display: flex;
	justify-content: space-between;
}

.phomi-contact-social-card {
	width: 310px;
	height: 310px;
	border: 2px solid #f2f2f2;
	background: #fff;
	text-align: center;
	padding-top: 59px;
	box-sizing: border-box;
	transition: background-color 0.45s ease;
}

.phomi-contact-social-card:hover,
.phomi-contact-social-card:focus-within {
	background: #f9f9f9;
}

a.phomi-contact-social-card,
a.phomi-contact-social-card:hover,
a.phomi-contact-social-card:focus {
	display: block;
	color: inherit;
	text-decoration: none;
}

.phomi-contact-social-card img {
	width: 50px;
	height: 50px;
	margin: 0 auto;
	display: block;
}

.phomi-contact-social-card h3 {
	margin-top: 26px;
	font-weight: 400;
	font-size: 20px;
	line-height: 26px;
	/* text-transform: capitalize; */
	color: #000;
}

.phomi-contact-social-card:last-child h3 {
	margin-top: 13px;
	width: 227px;
	max-width: 100%;
	margin-left: auto;
	margin-right: auto;
	line-height: 26px;
	white-space: normal;
	overflow-wrap: break-word;
	word-break: normal;
}

.phomi-contact-social-card p {
	margin-top: 23px;
	font-weight: 400;
	font-size: 13px;
	line-height: 22px;
	/* text-transform: capitalize; */
	color: #666;
}

/* ---------- Inquiry form (scaled canvas · Figma Group 582 y 1619) ----------
   栅格、间距和响应式断点统一由共用组件 assets/css/inquiry-form.css 负责，
   与首页保持一致。这里只保留联系页特有的桌面正文行高：
   曾经在这里重写 grid-template-columns，会盖掉共用组件的 ≤1200 / ≤767 断点，
   而输入框的 grid-column 又没有同步重排，导致半屏宽度下字段落进隐式列、
   文本域只占一列的错乱布局。 */
@media (min-width: 1201px) {
	.phomi-contact .phomi-inquiry > p:not(.phomi-form-notice) {
		line-height: 60px;
		white-space: nowrap;
	}
}

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

.phomi-contact-hero__title {
	animation: phomi-fade-in 1s 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;
}

.phomi-contact-cinfo.anim,
.phomi-contact-social-card.anim {
	transition: opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1), background-color 0.45s ease;
	transition-delay: var(--anim-delay, 0ms);
}
.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-footer a:hover,
.phomi-footer a:focus-visible {
	color: var(--phomi-blue);
}

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

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

@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;
	}
}

@media (max-width: 720px) {
	.phomi-footer {
		padding-left: 24px;
		padding-right: 24px;
	}
}
