/**
 * 全站 Sitemap 页脚（Charitian 底色 + GC 导航结构）
 */

section.ccgc-sitemap {
	/* 十字架光影图：主体在右侧，左侧留黑便于文字对比 */
	background-color: #050505;
	background-image: url('../images/footer-map2.png');
	background-size: contain;
	background-position: right center;
	background-repeat: no-repeat;
}

.ccgc-sitemap .ccgc-sitemap-quick {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 10px;
	padding-bottom: 28px;
	margin-bottom: 10px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
	font-size: 16px;
	line-height: 1.4;
}

.ccgc-sitemap-quick__brand {
	color: #fff;
	font-weight: 700;
	font-size: 16px;
	text-decoration: none;
}

.ccgc-sitemap-quick__brand:hover,
.ccgc-sitemap-quick__brand:focus {
	color: #B78838;
}

.ccgc-sitemap-quick__slogan {
	font-size: 16px;
	color: var(--ccgc-gold-2);
}

.ccgc-sitemap-quick__sep {
	color: rgba(255, 255, 255, 0.35);
}

.ccgc-sitemap-quick__list {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	list-style: none;
	margin: 0;
	padding: 0;
	gap: 0;
}

.ccgc-sitemap-quick__list > li {
	display: inline-flex;
	align-items: center;
	margin: 0;
}

.ccgc-sitemap-quick__list > li:not(:last-child)::after {
	content: "/";
	margin: 0 10px;
	color: rgba(255, 255, 255, 0.35);
}

.ccgc-sitemap-quick__list a {
	color: #ddd;
	text-decoration: none;
}

.ccgc-sitemap-quick__list a:hover,
.ccgc-sitemap-quick__list a:focus {
	color: #ffc105;
}

.ccgc-sitemap .widget-item li {
	margin-bottom: 10px;
}

/* 底部快捷菜单：一组菜单一列；一级加粗标题，二级普通链接 */
.ccgc-footer-shortcuts {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
	gap: 28px 24px;
	align-items: start;
	width: 100%;
}

.ccgc-footer-shortcuts__col {
	min-width: 0;
}

/* 末列短内容上下堆叠（关怀与奉献 + 社交媒体） */
.ccgc-footer-shortcuts__stack {
	display: flex;
	flex-direction: column;
	gap: 28px;
	min-width: 0;
}

.ccgc-footer-shortcuts__stack .ccgc-footer-shortcuts__col {
	width: 100%;
}

.ccgc-footer-shortcuts__heading-link {
	color: inherit;
	text-decoration: none;
	font-weight: inherit;
}

.ccgc-footer-shortcuts__heading-link:hover,
.ccgc-footer-shortcuts__heading-link:focus {
	color: #c9a15c;
	outline: none;
}

.ccgc-footer-shortcuts .widget-title h3 {
	font-weight: 700;
}

.ccgc-footer-shortcuts .widget-item a {
	position: relative;
	display: block;
	font-weight: 400;
	text-decoration: none;
	padding-right: 0;
	/* 为箭头滑入预留空间，默认不占宽；悬停再展开 */
	transition:
		color 0.3s ease,
		padding-right 0.35s ease;
}

/* 下划线：自左向右展开 */
.ccgc-footer-shortcuts .widget-item a::before {
	content: '';
	position: absolute;
	left: 0;
	bottom: -2px;
	width: 100%;
	height: 1px;
	background: currentColor;
	transform: scaleX(0);
	transform-origin: left center;
	transition: transform 0.35s ease;
	pointer-events: none;
}

/* 箭头：自左侧淡入并向右滑入 */
.ccgc-footer-shortcuts .widget-item a::after {
	content: '\2192'; /* → */
	position: absolute;
	top: 50%;
	right: 0;
	margin-top: -0.55em;
	line-height: 1;
	opacity: 0;
	transform: translateX(-10px);
	transition:
		opacity 0.35s ease,
		transform 0.35s ease;
	pointer-events: none;
}

.ccgc-footer-shortcuts .widget-item a:hover,
.ccgc-footer-shortcuts .widget-item a:focus {
	padding-right: 1.15em;
	outline: none;
	text-decoration: none;
}

.ccgc-footer-shortcuts .widget-item a:hover::before,
.ccgc-footer-shortcuts .widget-item a:focus::before {
	transform: scaleX(1);
}

.ccgc-footer-shortcuts .widget-item a:hover::after,
.ccgc-footer-shortcuts .widget-item a:focus::after {
	opacity: 1;
	transform: translateX(0);
}

@media (prefers-reduced-motion: reduce) {
	.ccgc-footer-shortcuts .widget-item a,
	.ccgc-footer-shortcuts .widget-item a::before,
	.ccgc-footer-shortcuts .widget-item a::after {
		transition: none;
	}

	.ccgc-footer-shortcuts .widget-item a:hover,
	.ccgc-footer-shortcuts .widget-item a:focus {
		padding-right: 1.15em;
	}

	.ccgc-footer-shortcuts .widget-item a:hover::before,
	.ccgc-footer-shortcuts .widget-item a:focus::before {
		transform: scaleX(1);
	}

	.ccgc-footer-shortcuts .widget-item a:hover::after,
	.ccgc-footer-shortcuts .widget-item a:focus::after {
		opacity: 1;
		transform: translateX(0);
	}
}

@media (max-width: 767px) {
	/* 移动端：十字架背景图靠右下角，PC 仍为 right center */
	section.ccgc-sitemap {
		background-position: right bottom;
	}

	.ccgc-footer-shortcuts {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 24px 16px;
	}

	/* 移动端：关怀/社交媒体参与两列网格，水平排列，不再上下堆叠 */
	.ccgc-footer-shortcuts__stack {
		display: contents;
	}
}

.widget-wrap.ccgc-sitemap-grid .widget-box .widget-title h3 {
	font-size: 14px;
}

.ccgc-sitemap .widget-contact a {
	color: #ddd;
}

.ccgc-sitemap .widget-contact a:hover,
.ccgc-sitemap .widget-contact a:focus {
	color: #ffc105;
}

/* 底部版权栏（GC：左版权 / 右回到顶部） */
.ccgc-footer-bar {
	padding: 18px 0;
}

.ccgc-footer-bar__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.ccgc-footer-bar__copy {
	margin: 0;
	color: #bbb;
	font-size: 14px;
	text-align: left;
}

.ccgc-footer-bar__top {
	color: #ddd;
	font-size: 14px;
	text-decoration: none;
	white-space: nowrap;
}

.ccgc-footer-bar__top:hover,
.ccgc-footer-bar__top:focus {
	color: #ffc105;
}

.ccgc-footer-bar.text-center {
	text-align: left;
}

@media (max-width: 767px) {
	.ccgc-sitemap-quick {
		flex-direction: column;
		align-items: flex-start;
	}

	.ccgc-sitemap-quick__sep {
		display: none;
	}

	.ccgc-footer-bar__inner {
		flex-direction: column;
		align-items: flex-start;
	}
}
