/**
 * 办公环境页 (/office/)
 */

.page-template-page-office-php .top-banner {
	display: none;
}

.page-template-page-office-php .ed-office-hero {
	position: relative;
	min-height: 560px;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	padding: 7rem 1rem 4rem;
	margin-top: 0;
}

@media (min-width: 768px) {
	.page-template-page-office-php .ed-office-hero {
		min-height: 620px;
		padding-top: 8rem;
		padding-bottom: 5rem;
	}
}

.page-template-page-office-php .ed-office-hero .ed-dyy-hero__canvas-wrap {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	z-index: 0;
}

.page-template-page-office-php #ed-office-hero-canvas {
	display: block;
	width: 100%;
	height: 100%;
	vertical-align: top;
}

.page-template-page-office-php .ed-office-hero .ed-dyy-hero__scrim {
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
	background: linear-gradient(
		180deg,
		rgba(14, 0, 24, 0.72) 0%,
		rgba(34, 0, 65, 0.35) 42%,
		rgba(14, 0, 24, 0.55) 100%
	);
}

.page-template-page-office-php .ed-office-hero .ed-dyy-hero__inner {
	position: relative;
	z-index: 2;
	text-align: center;
	max-width: 56rem;
	margin: 0 auto;
	padding: 0 1rem;
}

.page-template-page-office-php .ed-office-hero .ed-dyy-hero__badge {
	display: inline-block;
	margin-bottom: 1rem;
	padding: 0.375rem 1rem;
	border-radius: 999px;
	font-size: 0.875rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	color: #ede9fe;
	background: rgba(130, 0, 250, 0.25);
	border: 1px solid rgba(180, 94, 255, 0.5);
	box-shadow: 0 10px 15px -3px rgba(130, 0, 250, 0.2);
}

.page-template-page-office-php .ed-office-hero .ed-dyy-hero__title {
	margin: 0 0 1.5rem;
	font-size: 2.25rem;
	font-weight: 800;
	line-height: 1.25;
	letter-spacing: -0.02em;
	color: #fff;
	text-shadow: 0 4px 24px rgba(14, 0, 24, 0.45);
}

@media (min-width: 768px) {
	.page-template-page-office-php .ed-office-hero .ed-dyy-hero__title {
		font-size: 3rem;
	}
}

@media (min-width: 1024px) {
	.page-template-page-office-php .ed-office-hero .ed-dyy-hero__title {
		font-size: 3.75rem;
	}
}

.page-template-page-office-php .ed-office-hero .ed-dyy-hero__lead {
	margin: 0 auto;
	font-size: 1.125rem;
	line-height: 1.625;
	color: rgba(237, 233, 254, 0.95);
	max-width: 48rem;
	text-shadow: 0 2px 12px rgba(14, 0, 24, 0.35);
}

@media (min-width: 768px) {
	.page-template-page-office-php .ed-office-hero .ed-dyy-hero__lead {
		font-size: 1.25rem;
	}
}

@media (min-width: 1024px) {
	.page-template-page-office-php .ed-office-hero .ed-dyy-hero__lead {
		font-size: 1.5rem;
	}
}

/* 正文区 — 字阶与推广合作页 ed-coop-* 一致；覆盖主题 .main-content p (#666) */
.page-template-page-office-php #main-content.main-content.ed-office-page {
	padding: 2.5rem 0 3rem;
	max-width: 100%;
	box-sizing: border-box;
	background: linear-gradient(180deg, #faf8fc 0%, #fff 12rem);
}

.ed-office-page__inner {
	max-width: 1140px;
	margin: 0 auto;
}

.ed-office-intro {
	margin: 0 0 2.5rem;
	text-align: center;
}

.page-template-page-office-php #main-content.main-content.ed-office-page .ed-office-intro__title {
	margin: 0 0 1rem;
	font-size: 32px;
	font-weight: 700;
	line-height: 1.375;
	color: #1a0a2e;
}

.page-template-page-office-php #main-content.main-content.ed-office-page p.ed-office-intro__lead {
	margin: 0 auto;
	max-width: 52rem;
	font-size: 16px;
	font-weight: 400;
	line-height: 30px;
	color: #4a3d5c;
}

.ed-office-intro__link-wrap {
	margin: 1.5rem 0 0;
}

.page-template-page-office-php #main-content.main-content.ed-office-page a.ed-office-intro__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.5rem 1.25rem;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.5;
	color: #8200fa;
	text-decoration: none;
	background: rgba(130, 0, 250, 0.06);
	border: 1px solid rgba(130, 0, 250, 0.28);
	border-radius: 999px;
	transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.page-template-page-office-php #main-content.main-content.ed-office-page a.ed-office-intro__link:hover {
	color: #f024f6;
	border-color: rgba(240, 36, 246, 0.45);
	background: rgba(240, 36, 246, 0.08);
	text-decoration: none;
}

.page-template-page-office-php #main-content.main-content.ed-office-page .ed-office-section-title {
	margin: 0 0 1.5rem;
	font-size: 32px;
	font-weight: 700;
	line-height: 1.375;
	text-align: center;
	color: #1a0a2e;
}

.ed-office-highlights {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1.5rem;
	margin-bottom: 3rem;
}

.ed-office-highlight {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 1.75rem 1.25rem;
	text-align: center;
	background: #fff;
	border: 1px solid rgba(130, 0, 250, 0.12);
	border-radius: 16px;
	box-shadow: 0 12px 40px rgba(14, 0, 24, 0.06);
	transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.ed-office-highlight:hover {
	transform: translateY(-4px);
	box-shadow: 0 16px 48px rgba(130, 0, 250, 0.12);
}

.ed-office-highlight__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 8rem;
	height: 8rem;
	margin-bottom: 1rem;
	font-size: 1.75rem;
	color: #fff;
	background: linear-gradient(135deg, #8200fa 0%, #f024f6 100%);
	border-radius: 50%;
	box-shadow: 0 8px 24px rgba(176, 45, 233, 0.35);
}

.page-template-page-office-php #main-content.main-content.ed-office-page .ed-office-highlight__title {
	margin: 0 0 20px;
	font-size: 25px;
	font-weight: 700;
	line-height: 1.4;
	color: #1a0a2e;
}

.page-template-page-office-php #main-content.main-content.ed-office-page p.ed-office-highlight__desc {
	margin: 0;
	font-size: 16px;
	font-weight: 400;
	line-height: 30px;
	color: #4a3d5c;
	text-align: left;
}

.ed-office-locations {
	margin-bottom: 3rem;
}

.ed-office-location-cards {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1.5rem;
}

.ed-office-location-card {
	padding: 1.75rem 1.5rem;
	background: #fff;
	border: 1px solid rgba(130, 0, 250, 0.14);
	border-radius: 16px;
	box-shadow: 0 12px 40px rgba(14, 0, 24, 0.06);
}

.ed-office-location-card__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	margin-bottom: 1rem;
}

.page-template-page-office-php #main-content.main-content.ed-office-page .ed-office-location-card__city {
	font-size: 25px;
	font-weight: 700;
	line-height: 1.4;
	color: #1a0a2e;
}

.ed-office-location-card__badge {
	padding: 0.35rem 0.85rem;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.4;
	color: #ede9fe;
	background: linear-gradient(135deg, #8200fa, #f024f6);
	border-radius: 999px;
}

.page-template-page-office-php #main-content.main-content.ed-office-page .ed-office-location-card__address {
	margin: 0 0 0.75rem;
	font-style: normal;
	font-size: 16px;
	font-weight: 400;
	line-height: 30px;
	color: #4a3d5c;
}

.page-template-page-office-php #main-content.main-content.ed-office-page .ed-office-location-card__address-en {
	margin: 0 0 1rem;
	font-size: 16px;
	font-weight: 400;
	line-height: 30px;
	color: #4a3d5c;
}

.ed-office-location-card__meta {
	margin: 0 0 1rem;
	padding: 0;
	list-style: none;
}

.ed-office-location-card__meta li {
	display: flex;
	align-items: flex-start;
	gap: 0.5rem;
	margin-bottom: 0.5rem;
	font-size: 16px;
	line-height: 30px;
	color: #4a3d5c;
}

.page-template-page-office-php #main-content.main-content.ed-office-page .ed-office-location-card__meta a {
	font-size: 16px;
	font-weight: 600;
	line-height: 30px;
	color: #8200fa;
	text-decoration: none;
}

.ed-office-location-card__meta a:hover {
	color: #f024f6;
	text-decoration: underline;
}

.ed-office-location-card__meta .fa {
	margin-top: 0.2rem;
	color: #b45eff;
}

.page-template-page-office-php #main-content.main-content.ed-office-page a.ed-office-location-card__map {
	display: inline-flex;
	align-items: center;
	font-size: 16px;
	font-weight: 600;
	line-height: 30px;
	color: #8200fa;
	text-decoration: none;
}

.ed-office-location-card__map:hover {
	color: #f024f6;
}

.ed-office-gallery {
	margin-bottom: 3rem;
}

.ed-office-gallery__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	grid-auto-rows: 200px;
	gap: 1rem;
}

.ed-office-gallery__item {
	margin: 0;
	overflow: hidden;
	border-radius: 12px;
	background: #f0ebf5;
	box-shadow: 0 8px 28px rgba(14, 0, 24, 0.08);
}

.ed-office-gallery__item--featured {
	grid-column: span 2;
	grid-row: span 2;
}

.ed-office-gallery__item img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.45s ease;
}

.ed-office-gallery__item:hover img {
	transform: scale(1.04);
}

.page-template-page-office-php #main-content.main-content.ed-office-page .ed-office-wp-content {
	margin-bottom: 2rem;
	padding: 1.5rem;
	font-size: 16px;
	line-height: 30px;
	color: #4a3d5c;
	background: #fff;
	border-radius: 12px;
	border: 1px solid rgba(130, 0, 250, 0.1);
}

.page-template-page-office-php #main-content.main-content.ed-office-page .ed-office-wp-content p {
	font-size: 16px;
	line-height: 30px;
	color: #4a3d5c;
}

.ed-office-wp-content img {
	max-width: 100%;
	height: auto;
	border-radius: 8px;
}

.ed-office-cta {
	margin-top: 1rem;
}

.ed-office-cta__inner {
	padding: 2.5rem 2rem;
	text-align: center;
	border-radius: 20px;
	background: linear-gradient(135deg, #0e0018 0%, #220041 45%, #2b0052 100%);
	box-shadow: 0 20px 50px rgba(130, 0, 250, 0.2);
}

.page-template-page-office-php #main-content.main-content.ed-office-page .ed-office-cta__title {
	margin: 0 0 1rem;
	font-size: 32px;
	font-weight: 700;
	line-height: 1.375;
	color: #ffffff;
	text-shadow: 0 2px 16px rgba(14, 0, 24, 0.35);
}

.page-template-page-office-php #main-content.main-content.ed-office-page .ed-office-cta__inner p.ed-office-cta__lead {
	margin: 0 auto 1.5rem;
	max-width: 40rem;
	padding: 0;
	font-size: 18px;
	font-weight: 400;
	line-height: 1.75;
	color: rgba(255, 255, 255, 0.95);
	background: none;
	border: none;
	border-radius: 0;
	box-shadow: none;
}

@media (min-width: 768px) {
	.page-template-page-office-php #main-content.main-content.ed-office-page .ed-office-cta__inner p.ed-office-cta__lead {
		font-size: 20px;
		line-height: 1.8;
	}
}

.ed-office-cta__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	justify-content: center;
}

.page-template-page-office-php #main-content.main-content.ed-office-page .ed-office-cta__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 10rem;
	padding: 0.75rem 1.5rem;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.5;
	text-decoration: none;
	border-radius: 999px;
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.ed-office-cta__btn--primary {
	color: #fff;
	background: linear-gradient(135deg, #8200fa, #f024f6);
	box-shadow: 0 8px 24px rgba(176, 45, 233, 0.4);
}

.ed-office-cta__btn--primary:hover {
	transform: translateY(-2px);
	box-shadow: 0 12px 32px rgba(176, 45, 233, 0.5);
	color: #fff;
}

.ed-office-cta__btn--ghost {
	color: #ede9fe;
	border: 1px solid rgba(180, 94, 255, 0.55);
	background: rgba(130, 0, 250, 0.15);
}

.ed-office-cta__btn--ghost:hover {
	color: #fff;
	border-color: rgba(240, 36, 246, 0.6);
	background: rgba(240, 36, 246, 0.2);
}

@media (max-width: 991px) {
	.ed-office-highlights,
	.ed-office-location-cards {
		grid-template-columns: 1fr;
		max-width: 28rem;
		margin-left: auto;
		margin-right: auto;
	}

	.ed-office-gallery__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		grid-auto-rows: 180px;
	}

	.ed-office-gallery__item--featured {
		grid-column: span 2;
		grid-row: span 1;
	}
}

@media (max-width: 575px) {
	.ed-office-gallery__grid {
		grid-template-columns: 1fr;
		grid-auto-rows: auto;
	}

	.ed-office-gallery__item--featured {
		grid-column: span 1;
	}

	.ed-office-gallery__item img {
		height: auto;
		aspect-ratio: 16 / 10;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ed-office-highlight,
	.ed-office-gallery__item img,
	.ed-office-cta__btn {
		transition: none;
	}

	.ed-office-highlight:hover {
		transform: none;
	}

	.ed-office-gallery__item:hover img {
		transform: none;
	}
}
