/**
 * Header：Logo + 站名；语言切换 + Give CTA（SHEET 01）
 */

/* Logo 区：左图 + 右两行文字（右对齐）；高度贴合 primary-header（约 80px） */
.primary-header .header-logo {
	max-width: none;
	flex: 0 1 auto;
	min-width: 0;
    height: 64px;
    margin: 8px 0;
    display: flex;
}

.header-logo__link {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	max-width: 100%;
	text-decoration: none;
	line-height: 1;
}

.header-logo__img {
	display: block;
	flex: 0 0 auto;
	width: auto;
	height: 56px;
	max-height: 56px;
	max-width: none;
	object-fit: contain;
}

.header-logo__text {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	justify-content: center;
	gap: 2px;
	min-width: 0;
	text-align: right;
}

.header-logo__zh {
	display: block;
	font-size: 20px;
	font-weight: 700;
	line-height: 1.15;
	color: #222;
	letter-spacing: 0.02em;
	white-space: nowrap;
}

.header-logo__en {
	display: block;
	font-size: 11px;
	font-weight: 500;
	line-height: 1.2;
	color: #666;
	letter-spacing: 0.01em;
	white-space: nowrap;
}

.header-logo__link:hover .header-logo__zh,
.header-logo__link:focus .header-logo__zh {
	color: #f6b21a;
}

.header-logo__link:hover .header-logo__en,
.header-logo__link:focus .header-logo__en {
	color: #888;
}

.header-logo__link:focus {
	outline: none;
}

.header-logo__link:focus-visible {
	outline: 2px solid #f6b21a;
	outline-offset: 3px;
}

@media (max-width: 991px) {
	.header-logo__img {
		height: 48px;
		max-height: 48px;
	}

	.header-logo__zh {
		font-size: 17px;
	}

	.header-logo__en {
		font-size: 10px;
	}
}

@media (max-width: 767px) {
	.header-logo__link {
		gap: 8px;
	}

	.header-logo__img {
		height: 42px;
		max-height: 42px;
	}

	.header-logo__zh {
		font-size: 15px;
	}

	.header-logo__en {
		font-size: 9px;
		max-width: 11em;
		white-space: normal;
		text-align: right;
	}
}

/* ---------- 主导航下拉（截图：白底 + 顶金线 + 悬停浅金底） ---------- */
@media (min-width: 992px) {
	.header-menu-wrap > ul > li > a {
		transition: color 0.2s ease;
	}

	.header-menu-wrap > ul > li:hover > a,
	.header-menu-wrap > ul > li.focus > a,
	.header-menu-wrap > ul > li.current-menu-item > a,
	.header-menu-wrap > ul > li.current-menu-ancestor > a {
		color: #8a6528;
	}

	.header-menu-wrap > ul > li > ul {
		left: 0;
		top: 100%;
		width: 220px;
		padding: 10px 0;
		background: #fff;
		border-top: 2px solid #b78838;
		border-radius: 0;
		box-shadow: 0 14px 36px -12px rgba(26, 25, 23, 0.28);
		opacity: 0;
		visibility: hidden;
		transform: translateY(6px);
		transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
	}

	.header-menu-wrap > ul > li:hover > ul,
	.header-menu-wrap > ul > li.focus > ul {
		opacity: 1;
		visibility: visible;
		transform: translateY(0);
		z-index: 100;
	}

	.header-menu-wrap > ul > li > ul > li {
		display: block;
		margin: 0;
		padding: 0;
		text-align: left;
	}

	.header-menu-wrap > ul > li > ul > li > a {
		display: block;
		height: auto;
		padding: 11px 22px;
		font-size: 15px;
		font-weight: 500;
		line-height: 1.4;
		color: #22211e;
		background: transparent;
		transition: color 0.15s ease, background-color 0.15s ease;
	}

	.header-menu-wrap > ul > li > ul > li > a:hover,
	.header-menu-wrap > ul > li > ul > li > a:focus,
	.header-menu-wrap > ul > li > ul > li.current-menu-item > a {
		color: #8a6528;
		background-color: #f6f0e5;
		outline: none;
	}
}

.ccgc-lang-switch {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	margin-right: 12px;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.02em;
	line-height: 1;
	white-space: nowrap;
}

.ccgc-lang-switch__item {
	color: #555;
	text-decoration: none;
}

.ccgc-lang-switch a.ccgc-lang-switch__item:hover,
.ccgc-lang-switch a.ccgc-lang-switch__item:focus {
	color: #f6b21a;
}

.ccgc-lang-switch__item.is-active {
	color: #222;
}

.ccgc-lang-switch__sep {
	color: #bbb;
	font-weight: 400;
}

.header-right .ccgc-give-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-left: 0;
	margin-right: 0;
	padding: 0 15px;
	line-height: 1.2;
}

/* 窄屏：优先保留 Give，语言切换可略压缩 */
@media (max-width: 991px) {
	.ccgc-lang-switch {
		margin-right: 8px;
		font-size: 12px;
	}

	.header-right .ccgc-give-btn {
		margin-right: 8px;
		height: 36px;
		padding: 0 14px;
		font-size: 12px;
		line-height: 1.2;
	}
}

@media (max-width: 767px) {
	/* 模板在小屏会隐藏部分 header 按钮；仍显示语言与 Give */
	.header-1 .header-right .ccgc-give-btn,
	.header-one .header-right .ccgc-give-btn {
		display: inline-flex;
	}

	.ccgc-lang-switch {
		order: -1;
	}
}
