/* ============================================================
   实验5 综合网页制作 - 外部样式表
   作者：谢智   站点：https://tobey.asia/
   说明：本文件为外链CSS，全站样式统一在此控制。
   ============================================================ */

/* ---------- 模块定位 ---------- */
#Layer1 {                 /* 顶部导航模块 */
  position:relative;      /* 由 absolute 改为 relative，随文档流排列 */
  text-align:center;
  width:100%;
  background-color:#FFFFFF;
  margin:0 auto;
  z-index:10;
}
#Layer2 {                 /* 中部三栏模块 */
  position:relative;      /* 由 absolute 改为 relative */
  text-align:center;
  width:100%;
  background-color:#FFFFFF;
  margin:0 auto;
  z-index:9;
}
#Layer4 {                 /* 底部版权模块：已上移，紧贴内容 */
  position:relative;      /* 由 absolute(top:780px) 改为 relative，紧跟中部，消除大片空白 */
  text-align:center;
  width:100%;
  background-color:#ffffff;
  margin:0 auto;
  padding:18px 0 28px;
  font-size:12px;
  font-family:"微软雅黑";
  color:#666666;
  line-height:22px;
  border-top:1px solid #EBEBEB;
}

/* ---------- 导航 ---------- */
nav {
  margin:0 auto;
  line-height:46px;
  font-size:14px;
}
#Layer1 ul {
  margin:0;
  padding:0;
  list-style:none;
}
#Layer1 ul li {
  float:left;
  position:relative;
  background-color:#2c3e50;   /* 修改①：一级导航背景色 由 #ffffff 改为 #2c3e50（深蓝灰） */
  cursor:pointer;
  border-radius:4px;          /* 修改③：新增圆角样式 */
  margin-left:6px;
}
#Layer1 ul li:hover {
  background-color:#1abc9c;   /* 修改②：鼠标覆盖色 由 #0000FF 改为 #1abc9c（青绿，简洁美观） */
}
#Layer1 ul a {
  text-decoration:none;
  display:block;
  color:#ffffff;              /* 修改④：菜单文字颜色 由 #2F2F2F 改为 #ffffff（白色，与深色底形成对比） */
  padding:6px 18px;
  text-align:center;
  font-family:"微软雅黑", sans-serif;
  letter-spacing:1px;         /* 修改④附：字间距，提升可读性 */
}
#Layer1 ul li a:hover {
  background-color:#1abc9c;   /* 与 li:hover 保持一致 */
  color:#ffffff;
  border-radius:4px;
}
#Layer1 ul li:hover > ul {
  opacity:1;
  top:100%;
  visibility:visible;
}
#Layer1 ul ul {
  opacity:0;
  position:absolute;
  top:160%;
  visibility:hidden;
  transition:all .3s ease;
  -webkit-transition:all .3s ease;
  z-index:20;
}
#Layer1 ul ul li {
  float:none;
  min-width:120px;
}
#Layer1 ul ul li:hover > ul {
  top:0%;
  left:100%;
  opacity:1;
  visibility:visible;
}
#Layer1 ul ul ul {
  top:0%;
  left:100%;
}
#Layer1 ul ul ul ul {
  top:0%;
  left:100%;
}

/* ---------- 中部三栏布局 ---------- */
.cols {
  width:1100px;
  margin:24px auto 10px;
  overflow:hidden;
}
.col {
  float:left;
  width:348px;
  margin:0 14px;
  background-color:#f7f8fa;
  border:1px solid #EBEBEB;
  border-radius:6px;
  padding:12px;
  text-align:left;
}
.col img {
  width:100%;
  height:150px;
  object-fit:cover;
  border-radius:4px;
}
.col-title {
  margin:12px 0 8px;
  font-size:16px;
  color:#2c3e50;
  border-left:4px solid #1abc9c;
  padding-left:8px;
}
.news {
  margin:0;
  padding:0;
  list-style:none;
}
.news li {
  padding:7px 2px;
  border-bottom:1px dashed #ddd;
  font-size:14px;
}
.news a {
  color:#333333;
  text-decoration:none;
}
.news a:hover {
  color:#e74c3c;
}
