/**
 * 首页 SHEET 02：Hero+Featured overlay / 双栏 teasers
 */

/* ---------- ① Hero stage ---------- */
.ccgc-hero-stage {
	position: relative;
	min-height: 88vh;
	display: flex;
	align-items: center;
	overflow: hidden;
	color: #fff;
}

/* Hero 背景视频：有视频时不渲染 Banner 轮播 */
.ccgc-hero-video {
	position: absolute;
	inset: 0;
	z-index: 0;
	overflow: hidden;
	background: #0c1c30;
}

.ccgc-hero-video__media,
.ccgc-hero-video__iframe {
	position: absolute;
	top: 50%;
	left: 50%;
	min-width: 100%;
	min-height: 100%;
	width: auto;
	height: auto;
	transform: translate(-50%, -50%) scale(1.08);
	object-fit: cover;
	border: 0;
	pointer-events: none;
}

/* YouTube iframe：放大以裁掉黑边，铺满视口 */
.ccgc-hero-video__iframe {
	width: 100vw;
	height: 56.25vw; /* 16:9 */
	min-height: 100%;
	min-width: 177.78vh; /* 16:9 */
}

@media (prefers-reduced-motion: reduce) {
	.ccgc-hero-stage--video .ccgc-hero-video__media,
	.ccgc-hero-stage--video .ccgc-hero-video__iframe {
		display: none;
	}

	.ccgc-hero-stage--video .ccgc-hero-video {
		background-size: cover;
		background-position: center;
		background-repeat: no-repeat;
	}

	.ccgc-hero-stage .ccgc-hero .bg-img,
	.ccgc-hero-video__media,
	.ccgc-hero-video__iframe {
		filter: none;
	}
}

.ccgc-hero-stage .ccgc-hero {
	position: absolute;
	inset: 0;
	z-index: 0;
	height: 100%;
	margin: 0;
}

.ccgc-hero-stage .ccgc-hero .single-slide,
.ccgc-hero-stage .ccgc-hero .slick-list,
.ccgc-hero-stage .ccgc-hero .slick-track {
	height: 100%;
}

.ccgc-hero-stage .ccgc-hero .bg-img {
	position: absolute;
	inset: -4%;
	background-size: cover;
	background-position: center;
	/* 截图1：背景柔焦，突出精选列表 */
	filter: blur(10px);
	transform: scale(1.06);
}

/* 背景轮播控件弱化：文案在 overlay，不抢焦点 */
.ccgc-hero-stage .ccgc-hero .slick-arrow,
.ccgc-hero-stage .ccgc-hero .slick-dots {
	z-index: 3;
	opacity: 0.45;
}

.ccgc-hero-stage .ccgc-hero .slick-arrow:hover,
.ccgc-hero-stage .ccgc-hero .slick-arrow:focus {
	opacity: 0.9;
}

.ccgc-hero-stage .ccgc-hero .slick-dots {
	bottom: 18px;
}

/* 视频/背景 ~75% 遮罩感 */
.ccgc-hero-overlay {
	position: absolute;
	inset: 0;
	z-index: 1;
	background: rgba(12, 28, 48, 0.75);
	pointer-events: none;
}

.ccgc-hero-stage__content {
	position: relative;
	z-index: 2;
	width: 100%;
	padding: 72px 0 56px;
}

.ccgc-hero-worship {
	max-width: 720px;
	margin: 0 auto 48px;
}

.ccgc-hero-worship__title {
	margin: 0 0 12px;
	font-size: clamp(28px, 4.2vw, 48px);
	font-weight: 700;
	line-height: 1.25;
	color: #fff;
	letter-spacing: 0.02em;
}

.ccgc-hero-worship__time {
	margin: 0 0 16px;
	font-size: clamp(13px, 2vw, 18px);
	font-weight: 500;
	letter-spacing: 0.08em;
	color: rgba(255, 255, 255, 0.92);
}

.ccgc-hero-worship__lead {
	margin: 0 auto 28px;
	max-width: 36em;
	font-size: 16px;
	line-height: 1.7;
	color: rgba(255, 255, 255, 0.88);
}

/* 说明文字内嵌关键词链接（主日敬拜 / 小组团契） */
.ccgc-hero-worship__lead a.ccgc-hero-worship__inline-link {
	color: inherit;
	text-decoration: underline;
	text-decoration-color: rgba(201, 161, 92, 0.9);
	text-underline-offset: 0.22em;
	text-decoration-thickness: 1px;
	transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.ccgc-hero-worship__lead a.ccgc-hero-worship__inline-link:hover,
.ccgc-hero-worship__lead a.ccgc-hero-worship__inline-link:focus-visible {
	color: #c9a15c;
	text-decoration-color: #c9a15c;
}

.ccgc-hero-worship__cta {
	display: inline-block;
}

/* 精选列表：中/英各占 48% 宽，中间留缝 */
.ccgc-hero-featured {
	max-width: 520px;
	margin: 0 auto;
	text-align: center;
}

.ccgc-hero-featured__label {
	margin: 0 0 20px;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: #c9a15c;
}

.ccgc-hero-featured__dot {
	margin: 0 8px;
	opacity: 0.85;
}

.ccgc-hero-featured__list {
	list-style: none;
	margin: 0;
	padding: 0;
	border-top: 1px solid rgba(255, 255, 255, 0.22);
}

.ccgc-hero-featured__item {
	border-bottom: 1px solid rgba(255, 255, 255, 0.22);
}

.ccgc-hero-featured__item a {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 4%;
	padding: 18px 0;
	color: #fff;
	text-decoration: none;
	transition: color 0.2s ease, opacity 0.2s ease;
}

.ccgc-hero-featured__item a:hover,
.ccgc-hero-featured__item a:focus {
	color: #c9a15c;
	outline: none;
}

.ccgc-hero-featured__title,
.ccgc-hero-featured__sub {
	flex: 0 0 48%;
	width: 48%;
	max-width: 48%;
	box-sizing: border-box;
	line-height: 1.35;
}

.ccgc-hero-featured__title {
	font-size: clamp(15px, 1.6vw, 17px);
	font-weight: 500;
	text-align: right; /* 中文靠右，贴近中间 */
}

.ccgc-hero-featured__sub {
	font-size: clamp(13px, 1.3vw, 15px);
	font-weight: 400;
	color: rgba(255, 255, 255, 0.58);
	text-align: left; /* 英文靠左，贴近中间 */
}

.ccgc-hero-featured__item a:hover .ccgc-hero-featured__sub,
.ccgc-hero-featured__item a:focus .ccgc-hero-featured__sub {
	color: rgba(201, 161, 92, 0.85);
}

/* New to CCGC：星标叠在中间缝隙，不挤占中英 48% 列宽 */
.ccgc-hero-featured__item.is-fixed .ccgc-hero-featured__title {
	letter-spacing: 0.02em;
}

.ccgc-hero-featured__star {
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	font-size: 14px;
	line-height: 1;
	color: #c9a15c;
	pointer-events: none;
}

/* 精选下方：居中向下箭头，提示继续浏览（金黄、较原尺寸放大一倍） */
.ccgc-hero-scroll {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	margin: 28px auto 0;
	color: var(--ccgc-gold-2, #c9a15c);
	text-decoration: none;
}

.ccgc-hero-scroll:hover,
.ccgc-hero-scroll:focus-visible {
	color: var(--ccgc-gold, #b78838);
	outline: none;
}

.ccgc-hero-scroll__arrow {
	display: block;
	width: 28px;
	height: 28px;
	border-right: 3px solid currentColor;
	border-bottom: 3px solid currentColor;
	transform: rotate(45deg);
}

@media (prefers-reduced-motion: no-preference) {
	.ccgc-hero-scroll__arrow {
		animation: ccgc-hero-scroll-bounce 2.4s ease-in-out infinite;
	}
}

@keyframes ccgc-hero-scroll-bounce {
	0%,
	100% {
		transform: rotate(45deg) translate(0, 0);
		opacity: 0.7;
	}
	50% {
		transform: rotate(45deg) translate(6px, 6px);
		opacity: 1;
	}
}

/* ---------- ② Teasers（截图2：近期活动） ---------- */
.ccgc-home-teasers {
	background: #f2f1ee;
	scroll-margin-top: 96px;
}

.ccgc-teaser-panel {
	height: 100%;
	padding: 32px 32px 28px;
	background: #faf9f7;
	border: 1px solid #e6e3de;
}

.ccgc-teaser-panel__head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 8px;
	padding-bottom: 0;
	border-bottom: 1px solid #e6e3de;
}

.ccgc-teaser-panel__title {
	position: relative;
	margin: 0;
	padding-bottom: 14px;
	font-size: 22px;
	font-weight: 700;
	color: #22211e;
	line-height: 1.25;
}

/* 标题下金色短线（压在分隔线上） */
.ccgc-teaser-panel--events .ccgc-teaser-panel__title::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: -1px;
	width: 1em;
	height: 2px;
	background: #c9a15c;
}

.ccgc-teaser-panel__title span[lang="en"] {
	display: block;
	margin-top: 4px;
	font-size: 13px;
	font-weight: 500;
	letter-spacing: 0.04em;
	color: #6e6a63;
}

.ccgc-teaser-panel__more {
	flex-shrink: 0;
	margin-bottom: 14px;
	font-size: 14px;
	color: #6e6a63;
	text-decoration: none;
	white-space: nowrap;
}

.ccgc-teaser-panel__more:hover,
.ccgc-teaser-panel__more:focus {
	color: #8a6528;
	outline: none;
}

.ccgc-teaser-panel__empty {
	margin: 16px 0 0;
	color: #6e6a63;
	line-height: 1.6;
}

/* 活动列表行 */
.ccgc-teaser-events {
	list-style: none;
	margin: 0;
	padding: 0;
}

.ccgc-teaser-events__item + .ccgc-teaser-events__item {
	border-top: 1px solid #e6e3de;
}

.ccgc-teaser-events__item a {
	display: flex;
	align-items: center;
	gap: 18px;
	padding: 18px 0;
	color: inherit;
	text-decoration: none;
}

.ccgc-teaser-events__item a:hover .ccgc-teaser-events__title,
.ccgc-teaser-events__item a:focus .ccgc-teaser-events__title {
	color: #8a6528;
}

.ccgc-teaser-events__date {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	min-width: 56px;
	width: auto;
	min-height: 56px;
	padding: 8px 6px;
	background: #f6f0e5;
	box-shadow: inset 0 2px 0 #c9a15c;
	line-height: 1.05;
	border-top-left-radius: 2px;
	border-top-right-radius: 2px;
}

.ccgc-teaser-events__date strong {
	font-size: 22px;
	font-weight: 400;
	line-height: 1.1;
	color: #22211e;
	white-space: nowrap;
	font-variant-numeric: tabular-nums;
}

/* 同月跨日徽章（如 25–27）略缩小字号 */
.ccgc-teaser-events__date--range {
	padding-left: 8px;
	padding-right: 8px;
}

.ccgc-teaser-events__date--range strong {
	font-size: 15px;
	letter-spacing: -0.02em;
}

/* 跨月 / 手动时段（如 11–12 / 月，或「时段」） */
.ccgc-teaser-events__date--period {
	padding-left: 8px;
	padding-right: 8px;
	min-width: 56px;
}

.ccgc-teaser-events__date--period strong {
	font-size: 14px;
	letter-spacing: -0.02em;
}

.ccgc-teaser-events__date em {
	margin-top: 3px;
	font-style: normal;
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: #b78838;
}

.ccgc-teaser-events__date--period em {
	text-transform: none;
	letter-spacing: 0.04em;
}

.ccgc-teaser-events__body {
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-width: 0;
}

.ccgc-teaser-events__title {
	font-size: 17px;
	font-weight: 700;
	color: #22211e;
	transition: color 0.2s ease;
}

.ccgc-teaser-events__meta {
	font-size: 14px;
	line-height: 1.45;
	color: #6e6a63;
}

/* 近期讲道（首页两篇） */
.ccgc-teaser-sermons {
	display: flex;
	flex-direction: column;
	gap: 0;
	margin: 16px 0 0;
}

.ccgc-teaser-sermon {
	display: flex;
	gap: 20px;
	align-items: flex-start;
	padding: 16px 0;
}

.ccgc-teaser-sermon + .ccgc-teaser-sermon {
	border-top: 1px solid #e6e3de;
}

.ccgc-teaser-sermons + .ccgc-teaser-sermon__link {
	margin-top: 8px;
}

.ccgc-teaser-sermon__media {
	flex: 0 0 112px;
	width: 112px;
	height: 112px;
	overflow: hidden;
	background: #eee;
}

.ccgc-teaser-sermon__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ccgc-teaser-sermon__body {
	flex: 1;
	min-width: 0;
}

.ccgc-teaser-sermon__title {
	margin: 0 0 8px;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.35;
}

.ccgc-teaser-sermon__title a {
	color: #222;
	text-decoration: none;
}

.ccgc-teaser-sermon__title a:hover,
.ccgc-teaser-sermon__title a:focus {
	color: #f6b21a;
}

.ccgc-teaser-sermon__meta {
	margin: 0 0 4px;
	font-size: 14px;
	line-height: 1.5;
	color: #666;
}

.ccgc-teaser-sermon__meta--en {
	margin-bottom: 16px;
	font-size: 12px;
	color: #999;
}

.ccgc-teaser-sermon__link {
	display: inline-flex;
	flex-wrap: wrap;
	gap: 6px;
	align-items: center;
	font-size: 14px;
	font-weight: 600;
	color: #333;
	text-decoration: none;
}

.ccgc-teaser-sermon__link span {
	font-weight: 500;
	color: #888;
}

.ccgc-teaser-sermon__link:hover,
.ccgc-teaser-sermon__link:focus {
	color: #f6b21a;
}

/* ---------- 动效（克制） ---------- */
@media (prefers-reduced-motion: no-preference) {
	.ccgc-hero-worship__title,
	.ccgc-hero-worship__time,
	.ccgc-hero-worship__lead,
	.ccgc-hero-worship__cta,
	.ccgc-hero-featured {
		animation: ccgc-hero-rise 0.7s ease both;
	}

	.ccgc-hero-worship__time {
		animation-delay: 0.08s;
	}

	.ccgc-hero-worship__lead {
		animation-delay: 0.16s;
	}

	.ccgc-hero-worship__cta {
		animation-delay: 0.24s;
	}

	.ccgc-hero-featured {
		animation-delay: 0.32s;
	}

	.ccgc-teaser-panel {
		animation: ccgc-teaser-in 0.55s ease both;
	}

	.ccgc-home-teasers .col-lg-6:nth-child(2) .ccgc-teaser-panel {
		animation-delay: 0.1s;
	}
}

@keyframes ccgc-hero-rise {
	from {
		opacity: 0;
		transform: translateY(14px);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

@keyframes ccgc-teaser-in {
	from {
		opacity: 0;
		transform: translateY(10px);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ccgc-hero-stage .kenburns-top-right {
		animation: none !important;
	}

	.ccgc-hero-worship__title,
	.ccgc-hero-worship__time,
	.ccgc-hero-worship__lead,
	.ccgc-hero-worship__cta,
	.ccgc-hero-featured,
	.ccgc-hero-scroll__arrow,
	.ccgc-teaser-panel {
		animation: none !important;
	}
}

/* ---------- ③ 事工分类水平轮播 ---------- */
.ccgc-home-ministries {
	background: #f2f1ee;
	padding-top: 40px;
}

.ccgc-home-ministries__head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 20px;
	padding-bottom: 0;
	border-bottom: 1px solid #e6e3de;
}

.ccgc-home-ministries__title {
	position: relative;
	margin: 0;
	padding-bottom: 14px;
	font-size: 22px;
	font-weight: 700;
	color: #22211e;
	line-height: 1.25;
}

.ccgc-home-ministries__title::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: -1px;
	width: 1em;
	height: 2px;
	background: var(--ccgc-gold-2, #c9a15c);
}

.ccgc-home-ministries__title span[lang="en"] {
	display: block;
	margin-top: 4px;
	font-size: 13px;
	font-weight: 500;
	letter-spacing: 0.04em;
	color: #6e6a63;
}

.ccgc-home-ministries__more {
	flex-shrink: 0;
	margin-bottom: 14px;
	font-size: 14px;
	color: #6e6a63;
	text-decoration: none;
	white-space: nowrap;
}

.ccgc-home-ministries__more:hover,
.ccgc-home-ministries__more:focus {
	color: var(--ccgc-gold-ink, #8a6528);
	outline: none;
}

.ccgc-home-ministries__carousel {
	position: relative;
	display: flex;
	align-items: center;
	gap: 8px;
}

.ccgc-home-ministries__viewport {
	flex: 1;
	min-width: 0;
	overflow: hidden;
	padding: 8px 2px 16px;
}

.ccgc-home-ministries__track {
	display: flex;
	align-items: stretch;
	gap: 24px;
	width: max-content;
	will-change: transform;
}

.ccgc-home-ministries__slide {
	flex: 0 0 clamp(260px, 32vw, 360px);
	width: clamp(260px, 32vw, 360px);
}

.ccgc-home-ministries__slide .ccgc-ministry-card,
.ccgc-home-ministries__slide .ccgc-ministry-card__inner {
	min-height: 300px;
	height: 100%;
}

/* 左右箭头：主题暗黄 */
.ccgc-home-ministries__arrow {
	appearance: none;
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: var(--ccgc-gold, #b78838);
	font-size: 42px;
	line-height: 1;
	cursor: pointer;
	transition: color 0.2s ease, opacity 0.2s ease;
}

.ccgc-home-ministries__arrow:hover,
.ccgc-home-ministries__arrow:focus-visible {
	color: var(--ccgc-gold-ink, #8a6528);
	outline: none;
}

.ccgc-home-ministries__arrow:focus-visible {
	outline: 2px solid var(--ccgc-gold, #b78838);
	outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
	.ccgc-home-ministries__track {
		will-change: auto;
	}
}

@media (max-width: 991px) {
	.ccgc-hero-stage {
		min-height: 78vh;
	}

	.ccgc-teaser-sermon {
		flex-direction: column;
	}

	.ccgc-teaser-sermon__media {
		width: 100%;
		height: 180px;
		flex-basis: auto;
	}

	.ccgc-home-ministries__slide {
		flex-basis: clamp(240px, 70vw, 320px);
		width: clamp(240px, 70vw, 320px);
	}

	.ccgc-home-ministries__arrow {
		width: 36px;
		height: 36px;
		font-size: 34px;
	}
}

@media (max-width: 767px) {
	.ccgc-hero-stage__content {
		padding: 56px 0 40px;
	}

	.ccgc-hero-worship {
		margin-bottom: 36px;
	}

	/* 精选列表：移动端仍保持中/英各 48% */
	.ccgc-hero-featured {
		max-width: 100%;
		padding: 0 4px;
	}

	.ccgc-hero-featured__item a {
		align-items: flex-start;
		gap: 4%;
		padding: 14px 0;
	}

	.ccgc-hero-featured__title {
		font-size: 15px;
	}

	.ccgc-hero-featured__sub {
		font-size: 13px;
	}

	.ccgc-hero-featured__item.is-fixed a {
		align-items: center;
	}

	.ccgc-teaser-panel {
		padding: 22px 18px;
	}

	.ccgc-home-ministries__head {
		flex-wrap: wrap;
	}

	.ccgc-home-ministries__carousel {
		gap: 4px;
	}
}

.ccgc-hero-worship__inline-link {
	color: #fff;
	text-decoration: underline;
}