/* ESG Blocks 前台样式（颜色用 CSS 变量，随主题适配；带品牌默认值） */

.esg-reps,
.esg-nc {
	--esg-primary: var( --esg-theme-primary, #2E434E );
	--esg-accent: var( --esg-theme-accent, #C8F758 );
}

/* 轮播里所有链接（含 hover/focus）去掉 twentyseventeen 的深色下划线投影 */
.esg-nc a,
.esg-nc a:hover,
.esg-nc a:focus {
	box-shadow: none !important;
}

/* 报告卡片本身是 a，用 !important 保留柔和阴影、压过主题的链接投影 */
.esg-reps .esg-rep-card {
	box-shadow: 0 1px 4px rgba( 0, 0, 0, 0.05 ) !important;
}

.esg-reps .esg-rep-card:hover {
	box-shadow: 0 10px 26px rgba( 0, 0, 0, 0.09 ) !important;
}

/* ============ 报告下载：卡片形式（文档图标 + 信息 + 下载胶囊），轻量翻页钮 ============ */
.esg-reps__nav {
	text-align: right;
}

.esg-reps__nav--top {
	margin-bottom: 14px;
}

.esg-reps__nav--bottom {
	margin-top: 14px;
}

.esg-reps__up,
.esg-reps__down {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	width: 36px;
	height: 36px;
	min-width: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var( --esg-primary ); /* Oxide 背景 */
	color: #fff; /* 白色文字 */
	cursor: pointer;
	box-shadow: 0 4px 14px rgba( 0, 0, 0, 0.25 );
	transition: background 0.2s ease, transform 0.2s ease;
}

.esg-reps__up:hover,
.esg-reps__down:hover {
	background: #C8F758 !important; /* Signal 绿色 */
	color: #1B1B1C !important; /* Carbon 黑色 */
	transform: scale( 1.08 );
}

/* 去掉 focus 样式 */
.esg-reps__up:focus,
.esg-reps__down:focus {
	box-shadow: 0 4px 14px rgba( 0, 0, 0, 0.25 );
	outline: none;
}

.esg-reps__viewport {
	overflow: hidden;
}

.esg-reps__list {
	display: flex;
	flex-direction: column;
	row-gap: 14px;
	transition: transform 0.4s ease;
}

.esg-rep-card {
	display: grid;
	grid-template-columns: 92px 1fr auto;
	align-items: stretch;
	min-height: 80px;
	background: #fff;
	border: 1px solid #eaefec;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 1px 4px rgba( 0, 0, 0, 0.05 );
	text-decoration: none;
	color: inherit;
	transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.esg-rep-card:hover {
	box-shadow: 0 10px 26px rgba( 0, 0, 0, 0.09 );
	/* 不用 translateY 位移：卡片上移会让鼠标脱离→复位→再进入，造成抖动 */
}

/* 主体链接透明参与网格（年份 + 标题两格仍按 92px 1fr 排布） */
.esg-rep-card__open {
	display: contents;
	color: inherit;
	text-decoration: none;
}

.esg-rep-card__dl {
	text-decoration: none;
}

/* 无文件时占住第三格，保持网格对齐 */
.esg-rep-card__dl--empty {
	background: transparent;
	padding: 0;
}

/* 左侧大年份色块 */
.esg-rep-card__year {
	display: flex;
	align-items: center;
	justify-content: center;
	background: var( --esg-accent ); /* 主题绿色 */
	color: #1B1B1C; /* Carbon 黑色文字 */
	font-size: 21px;
	font-weight: 700;
	letter-spacing: 0.01em;
}

.esg-rep-card__main {
	display: flex;
	align-items: center;
	padding: 0 24px;
	min-width: 0;
}

.esg-rep-card__name {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-size: 16.5px;
	font-weight: 600;
	color: #28332e;
}

.esg-rep-card:hover .esg-rep-card__name {
	color: var( --esg-primary );
}

.esg-rep-card__dl {
	align-self: center;
	margin-right: 18px;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 9px 18px;
	border: 1.5px solid #1B1B1C; /* Carbon 边框 */
	border-radius: 999px;
	font-size: 13.5px;
	font-weight: 600;
	color: #1B1B1C; /* Carbon 文字 */
	background: transparent; /* 镂空 */
	white-space: nowrap;
	box-shadow: none !important; /* 去掉阴影 */
	transition: background 0.2s ease, color 0.2s ease;
}

.esg-rep-card__dl svg {
	width: 15px;
	height: 15px;
}

/* 鼠标移入下载按钮：背景变绿色，文字变黑色 */
.esg-reps .esg-rep-card__dl:hover,
.esg-reps .esg-rep-card__dl:focus {
	background: var( --esg-accent ) !important; /* Signal 绿色 */
	color: #1B1B1C !important; /* Carbon 黑色 */
	border-color: var( --esg-accent ) !important; /* Signal 绿色边框 */
	box-shadow: none !important; /* 去掉阴影 */
}

/* 标题链接悬停也不要父主题的黑色投影 */
.esg-reps .esg-rep-card__open:hover,
.esg-reps .esg-rep-card__open:focus {
	box-shadow: none;
}

/* 移动端：年份块收窄 */
@media ( max-width: 768px ) {
	.esg-rep-card {
		grid-template-columns: 64px 1fr auto;
	}
	.esg-rep-card__year {
		font-size: 16px;
	}
	.esg-rep-card__main {
		padding: 14px 14px;
	}
	.esg-rep-card__dl {
		margin-right: 12px;
		padding: 8px 12px;
	}
}

/* ============ 最新动态：一屏一条，右键循环（不过宽 + 柔和阴影） ============ */
.esg-nc {
	position: relative;
	max-width: 920px;
}

.esg-nc__viewport {
	overflow: hidden;
	border-radius: 16px;
	box-shadow: 0 18px 50px rgba( 0, 0, 0, 0.13 );
}

.esg-nc__track {
	display: flex;
	transition: transform 0.5s ease;
}

.esg-nc__slide {
	flex: 0 0 100%;
	min-width: 100%;
}

.esg-nc__link {
	display: grid;
	grid-template-columns: 1fr 1fr;
	min-height: 320px;
	background: #fff;
	text-decoration: none;
	color: inherit;
}

.esg-nc__media {
	position: relative;
}

.esg-nc__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.esg-nc__ph {
	position: absolute;
	inset: 0;
	background: linear-gradient( 135deg, var( --esg-primary ) 0%, #0a6e8c 100% );
}

.esg-nc__body {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 12px;
	padding: 32px 76px 32px 36px;
}

.esg-nc__date {
	font-size: 14px;
	font-weight: 600;
	color: #1B1B1C; /* Carbon，避免 Signal 亮绿用于文字 */
}

.esg-nc__title {
	margin: 0;
	font-size: 22px;
	line-height: 1.35;
	color: var( --esg-primary );
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.esg-nc__excerpt {
	margin: 0;
	font-size: 14.5px;
	line-height: 1.75;
	color: #5b6770;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.esg-nc__readmore {
	margin-top: 4px;
	display: inline-flex;
	align-items: center;
	gap: 5px;
	font-size: 14px;
	font-weight: 600;
	color: #2E434E; /* Oxide，避免 Signal 亮绿用于文字 */
	transition: gap 0.2s ease;
}

.esg-nc__link:hover .esg-nc__readmore {
	gap: 9px;
}

.esg-nc__next {
	position: absolute;
	top: 50%;
	right: 16px;
	transform: translateY( -50% );
	z-index: 3;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	width: 46px;
	height: 46px;
	min-width: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var( --esg-primary );
	color: #fff;
	cursor: pointer;
	box-shadow: 0 4px 14px rgba( 0, 0, 0, 0.25 );
	transition: background 0.2s ease, transform 0.2s ease;
}

.esg-nc__next:hover {
	background: #C8F758 !important; /* Signal 绿色，压过父主题按钮 hover */
	color: #1B1B1C !important; /* Carbon 黑色文字 */
	transform: translateY( -50% ) scale( 1.08 );
}

.esg-nc__footer {
	margin-top: 16px;
	max-width: 920px;
	text-align: right;
}

.esg-nc__more {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-weight: 600;
	color: var( --esg-primary );
	text-decoration: none;
	transition: gap 0.2s ease, color 0.2s ease;
}

.esg-nc__more:hover {
	color: #2E434E; /* Oxide，避免 Signal 亮绿用于文字 */
	gap: 10px;
}

.esg-empty {
	text-align: center;
	color: #5b6770;
}

/* ============ 响应式 ============ */
@media ( max-width: 768px ) {
	/* 移动端隐藏上下按钮（卡片自然展开全部） */
	.esg-reps__nav {
		display: none;
	}

	.esg-nc__link {
		grid-template-columns: 1fr;
		min-height: 0;
	}
	.esg-nc__media {
		aspect-ratio: 16 / 9;
	}
	.esg-nc__body {
		padding: 22px 22px 26px;
	}
	.esg-nc__title {
		font-size: 19px;
	}
}
