@charset "utf-8";
/* ============================================================
   实验5 综合网页制作 —— 修改版样式表（外链 CSS，编码统一为 UTF-8）
   主要改动：
   1. 取消各模块的绝对定位，改为文档流布局（删除友情链接后无大片空白）
   2. 导航背景颜色 / 鼠标覆盖颜色 / 文字颜色 / 圆角过渡 修改
   3. 中间 Layer2 改为三栏"图片 + 新闻列表"卡片布局
   ============================================================ */

*{ margin:0; padding:0; }
body{
	font-family:"Microsoft YaHei","微软雅黑",Arial,sans-serif;/*全局字体*/
	background-color:#F2F4F7;/*页面底色，浅灰蓝*/
	color:#333333;
}

/* ---------- 顶部导航模块层（原绝对定位改为文档流） ---------- */
#Layer1{
	position:relative;/*相对定位，随文档流排列*/
	text-align:center;
	width:100%;/*全屏*/
	background-color:#FFFFFF;/*顶部条背景颜色*/
	margin:0 auto;
	z-index:10;/*堆叠顺序，10层在9层上面显示*/
	box-shadow:0 1px 6px rgba(0,0,0,.08);/*底部投影，增强层次*/
}
#Layer1 table{ margin:0 auto; }

nav /*导航属性*/
{
	margin:0px auto;/*设置导航与外围的边距*/
	line-height:50px;/*设置导航的行高*/
	font-size:15px;/*设置导航字体大小*/
}
#Layer1 ul /*Layer1层中菜单属性*/
{
	margin:0;
	padding:0;/*边距*/
	list-style:none;/*列表符号*/
}
#Layer1 ul li /*一级菜单列表项：背景改为深蓝灰*/
{
	float:left;
	position:relative;
	background-color:#1F2D3D;/*【修改1】导航背景颜色：#FFFFFF → #1F2D3D*/
	cursor:pointer;
}
#Layer1 ul li:hover /*菜单列表鼠标覆盖：改为主题蓝*/
{
	background-color:#2F6BE4;/*【修改2】鼠标覆盖颜色：#0000FF → #2F6BE4*/
}
#Layer1 ul a /*菜单中链接的属性*/
{
	text-decoration:none;/*没有下划线*/
	display:block;
	color:#FFFFFF;/*【修改3】导航文字颜色：#2F2F2F → #FFFFFF（深色底配白字）*/
	padding:5px 18px;/*列表上下边距为5，左右边距加大为18*/
	width:88px;/*【修改4】列表宽度：70px → 88px，并增加圆角与过渡*/
	text-align:center;
	font-family:'Open Sans','Microsoft YaHei','微软雅黑',sans-serif;
	border-radius:4px;/*新增：圆角*/
	transition:all .25s ease;/*过渡时间 .4s → .25s，手感更利落*/
}
#Layer1 ul li a:hover /*链接鼠标覆盖*/
{
	background-color:#2F6BE4;
	color:#FFFFFF;
}
#Layer1 ul li:hover > ul /*鼠标覆盖一级菜单时显示内嵌子菜单*/
{
	opacity:1;
	top:100%;
	visibility:visible;
}
#Layer1 ul ul /*菜单中嵌套菜单：改为白底卡片式下拉*/
{
	opacity:0;
	position:absolute;
	top:160%;
	left:0;
	visibility:hidden;
	transition:all .25s ease;
	background-color:#FFFFFF;
	box-shadow:0 4px 16px rgba(0,0,0,.15);
	border-radius:4px;
	min-width:150px;
	z-index:20;
}
#Layer1 ul ul li /*子菜单列表项：白底，悬停浅蓝*/
{
	float:none;
	background-color:#FFFFFF;
}
#Layer1 ul ul a /*子菜单链接：左对齐、深灰字*/
{
	color:#333333;
	width:auto;
	min-width:130px;
	line-height:40px;
	padding:0 16px;
	text-align:left;
	border-radius:0;
}
#Layer1 ul ul li:hover /*子菜单项鼠标覆盖：浅蓝底 + 主题色文字*/
{
	background-color:#EAF2FD;
}
#Layer1 ul ul li:hover a{ color:#1F4FA8; }
#Layer1 ul ul li:hover > ul /*鼠标覆盖嵌套菜单时，下一级菜单向右展开*/
{
	top:0%;
	left:100%;
	opacity:1;
	visibility:visible;
}
#Layer1 ul ul ul /*再下一级菜单*/
{
	top:0%;
	left:100%;
}

/* ---------- 中间内容模块层：三栏"图片 + 新闻列表"卡片 ---------- */
#Layer2{
	position:relative;/*改为文档流，紧接导航*/
	text-align:center;
	width:100%;
	background-color:#F2F4F7;
	margin:0 auto;
	padding:26px 0 14px;
}
#Layer2 table{ margin:0 auto; }
td.card{ width:352px; padding:0 12px; vertical-align:top; }
.card-box{
	background-color:#FFFFFF;
	border-radius:8px;
	box-shadow:0 2px 10px rgba(20,40,80,.10);
	overflow:hidden;
	transition:all .25s ease;
}
.card-box:hover{ transform:translateY(-4px); box-shadow:0 8px 20px rgba(20,40,80,.16); }
.card-img{ width:100%; height:170px; display:block; border:0; object-fit:cover; }
.card-body{ padding:14px 18px 16px; text-align:left; }
.card-title{
	font-size:17px;
	color:#1F2D3D;
	border-left:4px solid #2F6BE4;
	padding-left:10px;
	margin-bottom:10px;
	line-height:24px;
	font-weight:bold;
}
.card-list{ list-style:none; }
.card-list li{ line-height:30px; border-bottom:1px dashed #E5E9EF; font-size:14px; }
.card-list li:last-child{ border-bottom:0; }

/* ---------- 中间新闻链接样式 ---------- */
tr.style1{
	background-color:#FFFFFF;
	text-align:left;
	vertical-align:top;
}
a.a1{
	color:#333333;
	font-size:14px;
	font-family:"幼圆","微软雅黑",sans-serif;
	text-decoration:none;
	transition:color .2s ease;
}
a.a1:hover{
	color:#DB0000;
	text-decoration:none;
}

/* ---------- 底部版权声明（上移：取消 top:780px，随内容自然排列） ---------- */
#Layer4{
	position:relative;/*改为文档流，紧跟 Layer2，不再留白*/
	text-align:center;
	width:100%;
	background-color:#ffffff;
	margin:0 auto;
	padding:18px 0;
	border-top:1px solid #E5E9EF;
	font-size:12px;
	font-family:"新宋体";
	color:#666666;
	line-height:20px;
}
