/**
 * 关于我们：四入口 + 使命异象 / 相信 / 历史 / 同工板式
 */
.ccgc-about-links {
	margin-top: 40px;
}
.ccgc-about-links ul {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 24px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ccgc-about-board {
	padding-bottom: 50px;
}

.ccgc-about-board .service-box {
	height: 100%;
}

.ccgc-about-links a.service-box {
	display: block;
	text-decoration: none;
	color: inherit;
	cursor: pointer;
}

.ccgc-about-links a.service-box:focus-visible {
	outline: 2px solid #b78838;
	outline-offset: 2px;
}

.ccgc-about-links .service-box:hover .service-content h3,
.ccgc-about-links .service-box:hover .service-content p,
.ccgc-about-links .service-box:hover .service-icon i {
	color: #fff;
}

.ccgc-about-links .service-box:hover .service-content i {
	color: #ffc105;
}

.ccgc-about-links li.is-current .service-box,
.ccgc-about-links .service-box.is-current {
	box-shadow: 0 12px 28px rgba(138, 101, 40, 0.16);
	outline: 2px solid #b78838;
	outline-offset: 0;
}

.ccgc-about-links li.is-current .service-content h3,
.ccgc-about-links .service-box.is-current .service-content h3,
.ccgc-about-links li.is-current .service-content i,
.ccgc-about-links .service-box.is-current .service-content i {
	color: #8a6528;
}

.ccgc-about-links .service-content p,
.ccgc-about-links .service-content p[lang="en"] {
	margin-bottom: 0;
	font-size: 14px;
	line-height: 1.4;
	font-weight: 500;
}

.ccgc-about-board .service-content h3 {
	color: #1a1a1a;
}

/* 关于入口：自定义 PNG 图标（深金线稿；悬停转白以保证对比） */
.ccgc-about-links__icon {
	display: block;
	width: 100px;
	height: 100px;
	margin: 0 auto 4px;
	object-fit: contain;
	transition: filter 0.35s ease;
}

.ccgc-about-links .service-box:hover .ccgc-about-links__icon,
.ccgc-about-links .service-box:focus-visible .ccgc-about-links__icon {
	/* 悬停底色为金，图标改为纯白线稿 */
	filter: brightness(0) invert(1);
}

.ccgc-about-kicker {
	margin: 0;
	font-family: "Noto Sans", "Noto Sans SC", sans-serif;
	font-size: 24px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: #b78838;
}

.ccgc-about-kicker--en {
	margin-top: 4px;
	font-weight: 600;
	letter-spacing: 0.12em;
	font-size: 14px;
}

.ccgc-about-section__content {
	margin-top: 36px;
	padding: 32px 36px;
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.ccgc-about-section__empty {
	margin: 36px 0 0;
	color: #777;
	line-height: 1.7;
}

/* ---------- 底部互跳按钮：与 Give 同款 default-btn，水平排列 ---------- */
.ccgc-about-cross {
	display: flex;
	flex-wrap: wrap;
	flex-direction: row;
	justify-content: center;
	align-items: center;
	gap: 16px;
	margin-top: 48px;
}

.ccgc-about-cross__btn.default-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 180px;
	text-align: center;
	text-transform: none;
	text-decoration: none;
}

/* ---------- 使命与异象 ---------- */
.ccgc-about-mission {
	margin-top: 40px;
}

.ccgc-about-mission__who {
	max-width: 100%;
	margin: 0 auto 48px;
	padding: 36px 28px;
	text-align: center;
	background: #fff;
}

.ccgc-about-mission__who-body {
	margin-top: 20px;
	font-size: 16px;
	line-height: 1.85;
	color: #4a4843;
	text-align: center;
}

.ccgc-about-mission__who-body > *:first-child {
	margin-top: 0;
}

.ccgc-about-mission__who-body > *:last-child {
	margin-bottom: 0;
}

.ccgc-about-mission__split {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 24px;
}

.ccgc-about-mission__panel {
	padding: 28px 28px 32px;
	background: #fff;
}

.ccgc-about-mission__panel-body {
	margin-top: 18px;
	font-size: 16px;
	line-height: 1.75;
	color: #4a4843;
}

.ccgc-about-mission__panel-body > *:first-child {
	margin-top: 0;
}

.ccgc-about-mission__panel-body > *:last-child {
	margin-bottom: 0;
}

/* ---------- 我们相信 ---------- */
/* PC：文字左 + 竖图右；移动端：横图上 + 文字下（文字躲开图片） */
.ccgc-about-believe {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(200px, 32%);
	grid-template-areas: "list media";
	align-items: stretch;
	gap: 0;
	margin-top: 40px;
	margin-left: auto;
	margin-right: auto;
	background: #fff;
	overflow: hidden;
}

.ccgc-about-believe__media {
	grid-area: media;
	position: relative;
	margin: 0;
	min-height: 420px;
	background: #2a2a28;
}

.ccgc-about-believe__media picture {
	display: block;
	position: absolute;
	inset: 0;
}

.ccgc-about-believe__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center top;
}

.ccgc-about-believe__list {
	grid-area: list;
	display: flex;
	flex-direction: column;
	gap: 36px;
	padding: 36px 40px;
	min-width: 0;
}

.ccgc-about-believe__title {
	margin: 0 0 12px;
	font-family: "Noto Sans", "Noto Sans SC", sans-serif;
	font-size: clamp(1rem, 2.2vw, 1.2rem);
	font-weight: 700;
	line-height: 1.3;
	color: #22211e;
}

.ccgc-about-believe__body {
	margin: 0;
	font-size: 16px;
	line-height: 1.8;
	color: #4a4843;
}

@media (max-width: 767px) {
	.ccgc-about-believe {
		grid-template-columns: 1fr;
		grid-template-areas:
			"media"
			"list";
	}

	.ccgc-about-believe__media {
		position: relative;
		min-height: 0;
		aspect-ratio: 1187 / 507;
		max-height: 240px;
	}

	.ccgc-about-believe__media picture {
		position: absolute;
		inset: 0;
	}

	.ccgc-about-believe__media img {
		object-position: center center;
	}
}

/* ---------- 教会历史 + 跑马灯 ---------- */
.ccgc-about-history {
	margin-top: 40px;
}

.ccgc-about-history__intro {
	margin: 0 auto 40px;
	padding: 32px 36px;
	background: #fff;
}

.ccgc-about-history__intro-body {
	margin-top: 18px;
	font-size: 16px;
	line-height: 1.85;
	color: #4a4843;
}

.ccgc-about-history__intro-body > *:first-child {
	margin-top: 0;
}

/*
 * 教会历史图片带：水平单行排列，超出隐藏（不自动滚）；
 * 移动端可手指横滑；悬停加宽 + 标题上移露出说明。
 */
.ccgc-about-marquee {
	--ccgc-marquee-gap: 10px;
	--ccgc-marquee-card-w: clamp(200px, 22vw, 280px);
	--ccgc-marquee-card-w-hover: clamp(280px, 32vw, 400px);
	--ccgc-marquee-card-h: 220px;
	position: relative;
	width: 100vw;
	max-width: 100vw;
	margin: 8px 0 56px;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	padding: 8px 0 12px;
	box-sizing: border-box;
}

.ccgc-about-marquee__viewport {
	overflow: hidden; /* 超出部分裁切隐藏 */
	width: 100%;
}

.ccgc-about-marquee__track {
	display: flex;
	align-items: stretch;
	flex-wrap: nowrap;
	width: max-content;
	max-width: none;
	gap: var(--ccgc-marquee-gap);
	padding: 0 2%;
}

.ccgc-about-marquee__item {
	position: relative;
	margin: 0;
	flex: 0 0 auto;
	width: var(--ccgc-marquee-card-w);
	height: var(--ccgc-marquee-card-h);
	overflow: hidden;
	background: #4a3f37;
	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.28);
	cursor: default;
	transition:
		width 0.5s ease,
		box-shadow 0.45s ease;
}

/* 顶部略暗，底部留给标题区；悬停时整体减淡以露出更多画面 */
.ccgc-about-marquee__item::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	background: rgba(26, 25, 23, 0.32);
	pointer-events: none;
	transition: opacity 0.45s ease;
}

.ccgc-about-marquee__item:hover,
.ccgc-about-marquee__item:focus-within {
	width: var(--ccgc-marquee-card-w-hover);
	box-shadow: 0 14px 32px rgba(0, 0, 0, 0.38);
	z-index: 2;
}

.ccgc-about-marquee__item:hover::before,
.ccgc-about-marquee__item:focus-within::before {
	opacity: 0.12;
}

.ccgc-about-marquee__item img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	transition: transform 0.55s ease;
}

.ccgc-about-marquee__item:hover img,
.ccgc-about-marquee__item:focus-within img {
	transform: scale(1.04);
}

/* 底部标题 / 悬停展开说明（HeartCry country-name 同类动效） */
.ccgc-about-marquee__caption {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 2;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	align-items: center;
	gap: 0;
	min-height: 28%;
	padding: 28px 16px 18px;
	box-sizing: border-box;
	text-align: center;
	color: #fff;
	background: linear-gradient(
		180deg,
		rgba(0, 0, 0, 0) 0%,
		rgba(0, 0, 0, 0.45) 48%,
		rgba(0, 0, 0, 0.88) 100%
	);
	pointer-events: none;
}

.ccgc-about-marquee__title {
	display: block;
	margin: 0;
	font-size: clamp(0.95rem, 1.4vw, 1.1rem);
	font-weight: 700;
	letter-spacing: 0.06em;
	line-height: 1.35;
	text-transform: none;
	transition: transform 0.45s ease, margin 0.45s ease;
}

.ccgc-about-marquee__desc {
	display: block;
	max-width: 22em;
	margin: 0;
	padding: 0;
	font-size: 0.78rem;
	font-weight: 500;
	letter-spacing: 0.02em;
	line-height: 1.55;
	color: rgba(255, 255, 255, 0.92);
	opacity: 0;
	max-height: 0;
	overflow: hidden;
	transform: translateY(10px);
	border-top: 1px solid transparent;
	transition:
		opacity 0.45s ease,
		max-height 0.45s ease,
		transform 0.45s ease,
		margin 0.45s ease,
		padding 0.45s ease,
		border-color 0.45s ease;
}

.ccgc-about-marquee__item:hover .ccgc-about-marquee__title,
.ccgc-about-marquee__item:focus-within .ccgc-about-marquee__title {
	transform: translateY(-6px);
}

.ccgc-about-marquee__item.has-desc:hover .ccgc-about-marquee__desc,
.ccgc-about-marquee__item.has-desc:focus-within .ccgc-about-marquee__desc {
	opacity: 1;
	max-height: 5.5em;
	margin-top: 8px;
	padding-top: 8px;
	transform: translateY(0);
	border-top-color: rgba(255, 255, 255, 0.55);
}

/* 跑马灯下方富文本（兼容旧样式） */
.ccgc-about-history__below {
	margin: 0 auto 40px;
	padding: 32px 36px;
	background: #fff;
}

.ccgc-about-history__below-title {
	margin: 0 0 24px;
	font-size: clamp(1.4rem, 2.2vw, 1.8rem);
	font-weight: 700;
	line-height: 1.3;
	color: #22211e;
}

.ccgc-about-history__below-body {
	font-size: 16px;
	line-height: 1.85;
	color: #4a4843;
}

.ccgc-about-history__below-body > *:first-child {
	margin-top: 0;
}

.ccgc-about-history__below-body > *:last-child {
	margin-bottom: 0;
}

/* 大事记：宽度与上方「教会历史」介绍一致（不加 max-width） */
.ccgc-about-milestones {
	margin: 0 auto;
	padding: 32px 36px;
	background: #fff;
}

.ccgc-about-milestones__heading {
	margin: 0 0 28px;
	font-size: clamp(1.4rem, 2.2vw, 1.8rem);
	font-weight: 700;
	color: #22211e;
}

.ccgc-about-milestones__list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.ccgc-about-milestones__item {
	display: block;
	padding: 0 0 28px;
	margin: 0 0 28px;
	border-bottom: 1px solid #eeeae4;
}

.ccgc-about-milestones__item:last-child {
	margin-bottom: 0;
	padding-bottom: 0;
	border-bottom: 0;
}

/* PC：有图时文字左、图片右 */
.ccgc-about-milestones__item.has-media {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 240px;
	gap: 20px 28px;
	align-items: start;
}

.ccgc-about-milestones__main {
	min-width: 0;
}

.ccgc-about-milestones__line {
	margin: 0 0 10px;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.45;
	color: #22211e;
}

.ccgc-about-milestones__when {
	color: #8a6528;
}

.ccgc-about-milestones__sep {
	margin: 0 0.15em;
	color: #8a6528;
	font-weight: 700;
}

.ccgc-about-milestones__title {
	color: #22211e;
}

.ccgc-about-milestones__text {
	margin: 0;
	font-size: 16px;
	line-height: 1.85;
	color: #4a4843;
}

.ccgc-about-milestones__media {
	margin: 0;
	width: 240px;
	max-width: 100%;
	overflow: hidden;
	border-radius: 4px;
}

.ccgc-about-milestones__media img {
	display: block;
	width: 240px;
	max-width: 100%;
	height: auto;
	border-radius: 4px;
	object-fit: cover;
	filter: brightness(0.82);
	transform: scale(1);
	transform-origin: center center;
	transition: filter 0.35s ease, transform 0.35s ease;
}

.ccgc-about-milestones__media:hover img,
.ccgc-about-milestones__media:focus-within img,
.ccgc-about-milestones__item:hover .ccgc-about-milestones__media img {
	filter: brightness(1);
	transform: scale(1.04);
}

@media (prefers-reduced-motion: reduce) {
	.ccgc-about-milestones__media img {
		transition: none;
	}

	.ccgc-about-milestones__media:hover img,
	.ccgc-about-milestones__media:focus-within img,
	.ccgc-about-milestones__item:hover .ccgc-about-milestones__media img {
		transform: none;
	}
}

/* 移动端：年份/标题 → 图片 → 正文 */
@media (max-width: 767px) {
	.ccgc-about-milestones__item.has-media {
		display: flex;
		flex-direction: column;
		gap: 14px;
	}

	.ccgc-about-milestones__main {
		display: contents;
	}

	.ccgc-about-milestones__line {
		order: 1;
		margin-bottom: 0;
	}

	.ccgc-about-milestones__media {
		order: 2;
		width: 100%;
	}

	.ccgc-about-milestones__media img {
		width: 100%;
	}

	.ccgc-about-milestones__text {
		order: 3;
	}
}

/* ---------- 教会同工 ---------- */
.ccgc-about-staff {
	display: grid;
	gap: 28px;
}

.ccgc-about-staff__team,
.ccgc-about-staff__departments,
.ccgc-about-staff__contact {
	padding: 32px 36px;
	background: #fff;
}

/* 事工部门 3×3 表格 */
.ccgc-about-staff__dept-table {
	width: 100%;
	border-collapse: collapse;
	table-layout: fixed;
	font-size: 16px;
	line-height: 1.5;
	color: #22211e;
	text-align: center;
}

.ccgc-about-staff__dept-table td {
	padding: 18px 12px;
	border: 1px solid #eeeae4;
	font-weight: 600;
	vertical-align: middle;
}

.ccgc-about-staff__dept-table tr:first-child td {
	border-top-color: #e4dfd6;
}

.ccgc-about-staff__dept-table tr:last-child td {
	border-bottom-color: #e4dfd6;
}

.ccgc-about-staff__dept-table td:first-child {
	border-left-color: #e4dfd6;
}

.ccgc-about-staff__dept-table td:last-child {
	border-right-color: #e4dfd6;
}

.ccgc-about-staff__heading {
	margin: 0 0 24px;
	font-size: clamp(1.35rem, 2vw, 1.7rem);
	font-weight: 700;
}

.ccgc-about-staff__list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.ccgc-about-staff__person + .ccgc-about-staff__person {
	margin-top: 22px;
	padding-top: 22px;
	border-top: 1px solid #eeeae4;
}

.ccgc-about-staff__role {
	margin: 0;
	font-size: 16px;
	font-weight: 700;
	color: #22211e;
	line-height: 1.5;
}

.ccgc-about-staff__name {
	font-weight: 600;
	color: #8a6528;
}

.ccgc-about-staff__name::before {
	content: "：";
	color: #22211e;
	font-weight: 700;
}

.ccgc-about-staff__bio {
	margin-top: 10px;
	font-size: 15px;
	line-height: 1.75;
	color: #4a4843;
}

.ccgc-about-staff__bio > *:first-child {
	margin-top: 0;
}

.ccgc-about-staff__bio > *:last-child {
	margin-bottom: 0;
}

.ccgc-about-staff__contact-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.ccgc-about-staff__contact-list li {
	display: grid;
	grid-template-columns: 72px minmax(0, 1fr);
	gap: 12px;
	padding: 10px 0;
	font-size: 15px;
	line-height: 1.6;
	border-top: 1px solid #eeeae4;
}

.ccgc-about-staff__contact-list li:first-child {
	border-top: 0;
	padding-top: 0;
}

.ccgc-about-staff__label {
	font-weight: 700;
	color: #22211e;
}

.ccgc-about-staff__contact-list a {
	color: #8a6528;
	text-decoration: none;
}

.ccgc-about-staff__contact-list a:hover,
.ccgc-about-staff__contact-list a:focus {
	text-decoration: underline;
}

@media (max-width: 991px) {
	.ccgc-about-links ul,
	.ccgc-about-mission__split {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 575px) {
	.ccgc-about-links ul,
	.ccgc-about-mission__split {
		grid-template-columns: 1fr;
	}

	.ccgc-about-believe .ccgc-about-believe__list,
	.ccgc-about-history__intro,
	.ccgc-about-history__below,
	.ccgc-about-milestones,
	.ccgc-about-staff__team,
	.ccgc-about-staff__departments,
	.ccgc-about-staff__contact {
		padding: 24px 20px;
	}

	.ccgc-about-staff__dept-table {
		font-size: 14px;
	}

	.ccgc-about-staff__dept-table td {
		padding: 14px 8px;
	}

	.ccgc-about-cross__btn.default-btn {
		min-width: 0;
		flex: 1 1 calc(50% - 8px);
		padding: 0 18px;
	}

	.ccgc-about-staff__contact-list li {
		grid-template-columns: 1fr;
		gap: 4px;
	}
}

@media (max-width: 767px) {
	/* 移动端：仍水平排列；可手指拖动，隐藏滚动条 */
	.ccgc-about-marquee {
		--ccgc-marquee-card-w: min(68vw, 240px);
		--ccgc-marquee-card-w-hover: min(68vw, 240px);
		--ccgc-marquee-card-h: 220px;
		--ccgc-marquee-gap: 8px;
		margin-bottom: 40px;
	}

	.ccgc-about-marquee__viewport {
		overflow-x: auto;
		overflow-y: hidden;
		-webkit-overflow-scrolling: touch;
		touch-action: pan-x;
		overscroll-behavior-x: contain;
		scrollbar-width: none;
	}

	.ccgc-about-marquee__viewport::-webkit-scrollbar {
		display: none;
	}

	.ccgc-about-marquee__track {
		padding: 0 15px;
	}

	.ccgc-about-marquee__caption {
		padding: 22px 12px 14px;
	}

	/* 触控无悬停：有说明时直接露出；不拉宽以免影响拖动 */
	.ccgc-about-marquee__item:hover,
	.ccgc-about-marquee__item:focus-within {
		width: var(--ccgc-marquee-card-w);
	}

	.ccgc-about-marquee__item.has-desc .ccgc-about-marquee__desc {
		opacity: 1;
		max-height: 5.5em;
		margin-top: 8px;
		padding-top: 8px;
		transform: none;
		border-top-color: rgba(255, 255, 255, 0.55);
	}

	.ccgc-about-marquee__item.has-desc .ccgc-about-marquee__title {
		transform: translateY(-6px);
	}
}

@media (prefers-reduced-motion: reduce) {
	.ccgc-about-board .service-box,
	.ccgc-about-board .service-box span,
	.ccgc-about-cross__btn.default-btn,
	.ccgc-about-cross__btn.default-btn span {
		transition: none;
	}

	.ccgc-about-marquee__item img {
		transform: none !important;
	}

	.ccgc-about-marquee__item::before {
		opacity: 0.2;
	}

	.ccgc-about-marquee__item.has-desc .ccgc-about-marquee__desc {
		opacity: 1;
		max-height: 5.5em;
		margin-top: 8px;
		padding-top: 8px;
		transform: none;
		border-top-color: rgba(255, 255, 255, 0.55);
	}
}
