/* stage3 设计令牌（elec 页专属，并入 styles.css :root） */
:root {
	--e-card:#ffffff; --e-line:#e8e8e8; --e-txt:#333333; --e-h3:#222222;
	--e-p:#555555; --e-dim:#666666; --e-acc:#2962ff; --e-acc-soft:#eef5ff;
	--e-ph:#f3f3f3; --e-cover:#222222; --e-tag:#1677ff; --e-ink:#ffffff;
}
html.dark {
	--e-card:#222222; --e-line:#333333; --e-txt:#eeeeee; --e-h3:#ffffff;
	--e-p:#bbbbbb; --e-dim:#aaaaaa; --e-acc:#2962ff; --e-acc-soft:#2a3a55;
	--e-ph:#1a1a1a; --e-cover:#222222; --e-tag:#1677ff; --e-ink:#ffffff;
}

/* ==============================================
   分院页面专用样式表
   功能范围：导航栏、入场动画、横幅、深色模式、响应式适配、卡片组件
   ============================================== */

/* --------------------------
   二级导航栏：固定顶部布局
   -------------------------- */
.sub-nav {
	display: flex;
	gap: 24px;
	margin: 0;
	padding: 12px 20px;
	background: rgba(255, 255, 255, 0.95);
	border-radius: 0;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
	position: fixed;
	top: 62px;
	left: 0;
	right: 0;
	z-index: 10001;
	transition: none;
}

/* 主体容器顶部内边距，避开固定导航栏遮挡 */
#contentContainer {
	padding-top: 140px;
}

/* 首页模块整体边距与居中样式 */
#contentContainer .home-page {
	padding: 20px 0;
	margin: 0;
	text-align: center;
}

/* 首页标题文字大小及外边距 */
#contentContainer .home-page h1 {
	margin: 10px 0 5px 0;
	font-size: 24px;
}

/* 首页描述文字颜色与边距 */
#contentContainer .home-page p {
	margin: 0;
	font-size: 14px;
	color: var(--e-dim);
}

/* --------------------------
   二级导航栏 深色模式适配
   -------------------------- */
/* 深色模式导航栏背景+阴影 */
html.dark .sub-nav {
	background: rgba(42, 42, 42, 0.95);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* 深色模式导航文字默认色 */
html.dark .sub-nav a {
	color: var(--e-txt);
}

/* 深色模式导航悬浮背景 */
html.dark .sub-nav a:hover {
	background: #334;
	color: var(--e-txt);
}

/* 深色模式导航激活项样式 */
html.dark .sub-nav a.active {
	background: var(--e-acc);
	color: var(--ink);
}

/* --------------------------
   导航链接 基础通用样式
   -------------------------- */
.sub-nav a {
	text-decoration: none;
	color: var(--e-txt);
	font-size: 15px;
	font-weight: 500;
	padding: 6px 12px;
	border-radius: 8px;
	transition: 0.2s;
}

/* 导航链接悬浮效果 */
.sub-nav a:hover {
	background: var(--e-acc-soft);
	color: var(--e-acc);
}

/* 导航当前选中激活态 */
.sub-nav a.active {
	background: var(--e-acc);
	color: var(--ink);
}

/* 新闻专用行：强制固定列，不和普通row冲突 */

/* 手机 1列 */
html.mobile .row-news {

		grid-template-columns: 1fr;
	
}
/* 平板 2列 */
@media (min-width: 769px) and (max-width: 1199px) {
	.row-news {
		grid-template-columns: repeat(2, 1fr);
	}
}
/* 电脑 4列 */
@media (min-width: 1200px) {
	.row-news {
		grid-template-columns: repeat(4, 1fr);
	}
}
/* --------------------------
   模块行 左右入场动画布局
   -------------------------- */
.row {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
	gap: 24px;
	margin-bottom: 24px;
	opacity: 0;
}
.row1 {
	animation: anim1 0.7s ease forwards;
}

@keyframes anim1 {
	from {
		transform: translateX(-100vw);
		opacity: 0;
	}
	to {
		transform: translateX(0);
		opacity: 1;
	}
}

@keyframes anim2 {
	from {
		transform: translateX(100vw);
		opacity: 0;
	}
	to {
		transform: translateX(0);
		opacity: 1;
	}
}
/* 容器开启逐个动画 */
.row-news {
	display: grid;
	gap: 24px;
	margin-bottom: 24px;
	opacity: 1;
}

/* 每个子卡片：默认初始状态 */
.row-news > .news-card,
.row-news > .item {
	opacity: 0;
	transform: translateX(60px); /* 从右侧60px位置飞入 */
	animation: itemFlyIn 0.6s ease forwards;
}
/* 逐个延迟，一个一个出来 */
.row-news > *:nth-child(1) {
	animation-delay: 0.05s;
}
.row-news > *:nth-child(2) {
	animation-delay: 0.15s;
}
.row-news > *:nth-child(3) {
	animation-delay: 0.25s;
}
.row-news > *:nth-child(4) {
	animation-delay: 0.35s;
}
.row-news > *:nth-child(5) {
	animation-delay: 0.45s;
}
.row-news > *:nth-child(6) {
	animation-delay: 0.55s;
}
.row-news > *:nth-child(7) {
	animation-delay: 0.65s;
}
.row-news > *:nth-child(8) {
	animation-delay: 0.75s;
}

/* 从右往左飞入关键帧 */
@keyframes itemFlyIn {
	to {
		opacity: 1;
		transform: translateX(0);
	}
}

/* --------------------------
   通栏横幅图片 样式
   -------------------------- */
.banner-image {
	width: 100%;
	margin-left: 0;
	height: auto;
	margin-top: 44px;
	padding: 0;
	position: relative;
	z-index: 9998;
}

/* 横幅图片自适应比例 */

/* 深色模式首页描述文字颜色 */
html.dark #contentContainer .home-page p {
	color: var(--e-dim);
}

/* --------------------------
   移动端 768px 专属适配
   -------------------------- */
html.mobile .container {

		padding: 0 12px 78px;
	
}
html.mobile .sub-nav {

		gap: 12px;
		flex-wrap: wrap;
		justify-content: center;
		top: 48px;
	
}

/* --------------------------
   全局防横向滚动 强制限制
   -------------------------- */
html,
body {
	overflow-x: hidden;
}
.container {
	max-width: 1400px;
	margin: auto;
	padding: 0 20px 78px;
	overflow-x: hidden;
}
.banner-image img {
	width: 100%;
	height: auto;
	object-fit: contain;
	display: block;
	aspect-ratio: 4 / 1;
	max-width: 100%;
}

/* --------------------------
   视频/图片封面卡片 基础样式
   -------------------------- */

/* 卡片外层容器尺寸与溢出隐藏 */

/* 封面图片铺满容器 */

/* --------------------------
   封面悬浮简介弹窗
   -------------------------- */
.item .intro {
	position: absolute;
	left: 0;
	right: 0;
	bottom: -100%;
	background: rgba(0, 0, 0, 0.65);
	color: var(--ink);
	padding: 14px 10px;
	font-size: 15px;
	text-align: center;
	border-radius: 0 0 12px 12px;
	transition: bottom 0.3s ease;
	z-index: 2;
}

/* 悬浮时简介从底部滑入 */
.item:hover .intro {
	bottom: 0;
}

/* 隐藏多余段落标签 */
.item p {
	display: none;
}

/* --------------------------
   新闻卡片 通用样式
   -------------------------- */
.news-card {
	background: var(--e-card);
	overflow: hidden;
	cursor: pointer;
	transition: transform 0.25s ease,
		box-shadow 0.25s ease;
	display: flex;
	flex-direction: column;
	border: 1px solid var(--e-line);
}

/* 新闻卡片悬浮上浮+阴影效果 */
.news-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

/* 新闻图片容器 自适应高度 */
.news-image {
	width: 100%;
	height: clamp(180px, 22vw, 260px);
	overflow: hidden;
	background: var(--e-ph);
}

/* 新闻图片铺满容器 */
.news-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.35s ease;
}

/* 悬浮图片轻微放大 */
.news-card:hover .news-image img {
	transform: scale(1.03);
}

/* 新闻文字内容区域内边距 */
.news-content {
	padding: 18px;
	display: flex;
	flex-direction: column;
	flex: 1;
}

/* 新闻标题样式 */
.news-content h3 {
	margin: 0 0 14px;
	font-size: 18px;
	line-height: 1.6;
	color: var(--e-h3);
}

/* 新闻正文文字样式+多行省略隐藏 */
.news-content p {
	margin: 0;
	font-size: 14px;
	line-height: 1.9;
	color: var(--e-p);
	text-align: justify;

	display: -webkit-box;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* --------------------------
   新闻卡片 深色模式适配
   -------------------------- */
html.dark .news-card {
	background: var(--e-card);
	border-color: var(--e-line);
}
html.dark .news-content h3 {
	color: var(--ink);
}
html.dark .news-content p {
	color: var(--e-p);
}

/* --------------------------
   新闻卡片 移动端适配
   -------------------------- */
html.mobile .news-content {

		padding: 14px;
	
}
html.mobile .news-content h3 {

		font-size: 16px;
	
}
html.mobile .news-content p {

		font-size: 13px;
		line-height: 1.8;
	
}

/* 卡片布局 */
.row2 {
	animation: anim2 0.7s ease forwards;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
	gap: 24px;
	padding: 20px 0 40px;
}

.item {
	position: relative;
	cursor: pointer;
	overflow: hidden;
	background: var(--e-card);
	border-radius: 18px;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
	transition: transform 0.3s ease,
		box-shadow 0.3s ease;
	display: flex;
	flex-direction: column;
}

.item:hover {
	transform: translateY(-12px);
	box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

/* 标签 */
.tag {
	background: var(--e-tag);
	color: var(--ink);
	padding: 12px;
	font-size: 18px;
	font-weight: bold;
	text-align: center;
}

/* 图片 */
.box {
	width: 100%;
	height: 240px;
	border-radius: 0;
	overflow: hidden;
	background: var(--e-cover);
	position: relative;
}

.box img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
	display: block;
}

.item:hover .box img {
	transform: scale(1.05);
}

/* 移动端 */
html.mobile .banner-image img {

		height: 200px;
	
}
html.mobile .home-page h1 {

		font-size: 28px;
	
}
html.mobile .tag {

		font-size: 16px;
	
}
html.mobile .intro {

		font-size: 14px;
		line-height: 1.8;
	
}
.row-news a {
	text-decoration: none;
	color: inherit;
	display: block;
}

/* ==============================================
   轮播图 (overview 分院概况 专属)
   ============================================== */
.carousel {
	position: relative;
	width: 100%;
	max-width: 3000px;
	height: 450px;
	margin: 0px auto;
	overflow: hidden;
	border-radius: 10px;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.carousel-images {
	display: flex;
	height: 100%;
	transition: transform 0.5s ease;
}

.carousel-images img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	flex-shrink: 0;
}

.carousel-btn {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 45px;
	height: 45px;
	background: rgba(255, 255, 255, 0.7);
	border: none;
	border-radius: 50%;
	font-size: 20px;
	cursor: pointer;
	z-index: 10;
	transition: 0.3s;
}

.carousel-btn:hover {
	background: white;
}

#prevBtn {
	left: 20px;
}

#nextBtn {
	right: 20px;
}

/* 底部指示器 */
.carousel-dots {
	position: absolute;
	bottom: 20px;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	gap: 10px;
}

.dot {
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.5);
	cursor: pointer;
}

.dot.active {
	background: white;
}

/* ========== 轮播 + 顶部导航 手机端适配 ========== */
html.mobile .carousel {

		height: 220px;
		border-radius: 6px;
	
}
html.mobile .carousel-btn {

		width: 32px;
		height: 32px;
		font-size: 16px;
	
}
html.mobile #prevBtn {

		left: 10px;
	
}
html.mobile #nextBtn {

		right: 10px;
	
}
html.mobile .dot {

		width: 8px;
		height: 8px;
	
}
html.mobile .nav,
html.mobile .sub-nav {

		flex-wrap: wrap;
		justify-content: center;
	
}
