@charset "utf-8";
/* ============================================================
   实验5 综合网页制作 · 外部样式表 style2.css
   配色：墨绿 + 米白，简洁商务风
   ============================================================ */

* { margin:0; padding:0; box-sizing:border-box; }

body{
  font-family:"Microsoft YaHei","PingFang SC",sans-serif;
  background:#F5F7F4;
  color:#2B3A31;
  font-size:14px;
  line-height:1.7;
}

a{ text-decoration:none; color:inherit; }
ul{ list-style:none; }

/* ---------- Layer1：顶部 + 导航 ---------- */
#Layer1{
  position:relative;
  width:100%;
  background:#FFFFFF;
  box-shadow:0 2px 12px rgba(60,90,70,.08);
  z-index:10;
}
.topbar{
  width:1100px; margin:0 auto;
  display:flex; align-items:center; gap:36px;
  height:78px;
}
.logo{
  flex:0 0 auto;
  display:flex; align-items:center; gap:10px;
  font-size:19px; font-weight:700; color:#2F6B4F; letter-spacing:1px;
}
.logo .mark{
  width:38px; height:38px; border-radius:9px;
  background:linear-gradient(135deg,#2F6B4F,#5FA37E);
  color:#fff; font-size:17px; font-weight:700;
  display:flex; align-items:center; justify-content:center;
}
.topsearch{
  margin-left:auto;
  display:flex; align-items:center;
  border:1px solid #DCE6DF; border-radius:20px; overflow:hidden;
  background:#F8FBF9;
}
.topsearch input{
  border:0; outline:none; background:transparent;
  padding:7px 14px; width:170px; font-size:13px; color:#2B3A31;
}
.topsearch button{
  border:0; background:#2F6B4F; color:#fff;
  padding:7px 16px; font-size:13px; cursor:pointer;
}

/* 导航容器 */
nav{
  width:1100px; margin:0 auto;
  font-size:15px;
}
nav > ul{
  display:flex; align-items:stretch;
  border-top:1px solid #EDF2EE;
}
nav > ul > li{
  position:relative;
  background:#FFFFFF;
}
nav > ul > li > a{
  display:block;
  padding:13px 30px;
  color:#33463B;
  font-weight:700;
  letter-spacing:.5px;
  transition:background-color .25s ease, color .25s ease;
}
/* 导航背景颜色 + 鼠标覆盖颜色（要求③） */
nav > ul > li:hover > a{
  background-color:#2F6B4F;
  color:#FFFFFF;
}

/* ---------- 二级 / 三级 / 四级子菜单 ---------- */
nav ul ul{
  position:absolute;
  top:100%; left:0;
  min-width:180px;
  background:#FFFFFF;
  border:1px solid #E4EDE7;
  border-top:3px solid #2F6B4F;
  border-radius:0 0 8px 8px;
  box-shadow:0 12px 26px rgba(47,107,79,.14);
  opacity:0;
  visibility:hidden;
  transform:translateY(6px);
  transition:all .28s ease;
  z-index:20;
}
nav ul li:hover > ul{
  opacity:1;
  visibility:visible;
  transform:translateY(0);
}
nav ul ul li{
  position:relative;
}
nav ul ul li > a{
  display:block;
  padding:10px 18px;
  font-size:14px;
  font-weight:400;
  color:#3E5147;
  white-space:nowrap;
  transition:background-color .2s ease, color .2s ease, padding-left .2s ease;
}
nav ul ul li > a:hover{
  background-color:#EAF4EE;
  color:#2F6B4F;
  padding-left:24px;
}
/* 三、四级菜单向右展开 */
nav ul ul ul{
  top:-1px; left:100%;
  border-top:3px solid #5FA37E;
  border-radius:0 8px 8px 8px;
}

/* ---------- Layer2：主视觉 + 资讯列表（要求②重新布局） ---------- */
#Layer2{
  width:1100px;
  margin:28px auto 24px;
  display:flex;
  gap:22px;
  align-items:stretch;
}
.hero{
  flex:1 1 720px;
  min-height:380px;
  border-radius:16px;
  padding:46px 44px;
  color:#fff;
  background:
    radial-gradient(circle at 82% 18%, rgba(255,255,255,.22), transparent 42%),
    linear-gradient(135deg,#2F6B4F 0%,#3F8461 52%,#6BAF88 100%);
  display:flex; flex-direction:column; justify-content:center;
  position:relative; overflow:hidden;
}
.hero::after{
  content:"";
  position:absolute; right:-60px; bottom:-80px;
  width:260px; height:260px; border-radius:50%;
  border:34px solid rgba(255,255,255,.10);
}
.hero .kicker{
  font-size:13px; letter-spacing:3px; opacity:.88; margin-bottom:14px;
}
.hero h1{
  font-size:36px; line-height:1.4; letter-spacing:2px; font-weight:700;
}
.hero p{
  margin-top:16px; font-size:14.5px; line-height:1.9;
  color:#E7F3EC; max-width:430px;
}
.hero .btns{ margin-top:28px; display:flex; gap:14px; }
.hero .btn{
  display:inline-block; padding:10px 26px; border-radius:24px;
  font-size:14px; letter-spacing:1px;
  background:#FFFFFF; color:#2F6B4F; font-weight:700;
  transition:transform .2s ease, box-shadow .2s ease;
}
.hero .btn.ghost{
  background:transparent; color:#fff; border:1px solid rgba(255,255,255,.7);
}
.hero .btn:hover{ transform:translateY(-2px); box-shadow:0 8px 20px rgba(0,0,0,.16); }

/* 右侧资讯列表 */
.news{
  flex:0 0 330px;
  background:#FFFFFF;
  border:1px solid #E4EDE7;
  border-radius:16px;
  padding:22px 22px 12px;
  display:flex; flex-direction:column;
}
.news h2{
  font-size:16px; color:#2F6B4F; letter-spacing:1px;
  padding-bottom:12px; margin-bottom:6px;
  border-bottom:1px solid #EAF2EC;
  display:flex; justify-content:space-between; align-items:baseline;
}
.news h2 span{ font-size:12px; color:#93A79C; font-weight:400; }
.news ul{ flex:1; }
.news li{
  border-bottom:1px dashed #EDF3EF;
}
.news li:last-child{ border-bottom:0; }
a.a1{
  display:flex; align-items:center; gap:8px;
  padding:13px 2px;
  color:#3E5147; font-size:14px;
  transition:color .2s ease, padding-left .2s ease;
}
a.a1::before{
  content:""; width:5px; height:5px; border-radius:50%;
  background:#9CC9AF; flex:0 0 auto;
}
a.a1:hover{
  color:#DB0000;
  padding-left:8px;
}
.a1-date{
  margin-left:auto; font-size:12px; color:#A9BCB1; white-space:nowrap;
}

/* ---------- Layer3：服务卡片（替代原友情链接区域） ---------- */
#Layer3{
  width:1100px;
  margin:0 auto 30px;
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:18px;
}
.svc{
  background:#FFFFFF;
  border:1px solid #E4EDE7;
  border-radius:14px;
  padding:22px 20px;
  transition:transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.svc:hover{
  transform:translateY(-4px);
  border-color:#C6DFD2;
  box-shadow:0 12px 28px rgba(47,107,79,.12);
}
.svc .ico{
  width:42px; height:42px; border-radius:11px;
  background:#EAF4EE; color:#2F6B4F;
  display:flex; align-items:center; justify-content:center;
  font-size:18px; font-weight:700; margin-bottom:12px;
}
.svc h3{ font-size:15px; margin-bottom:6px; color:#2B3A31; }
.svc p{ font-size:12.8px; color:#7C8F84; line-height:1.8; }

/* ---------- Layer4：版权声明（要求①上移） ---------- */
#Layer4{
  width:100%;
  background:#22382C;
  color:#B9CCC1;
  font-size:12px;
  line-height:22px;
  text-align:center;
  padding:22px 16px;
  margin-top:0;
}
#Layer4 p + p{ margin-top:2px; }

/* ---------- 响应式 ---------- */
@media (max-width:1140px){
  .topbar, nav, #Layer2, #Layer3{ width:100%; padding-left:18px; padding-right:18px; }
  #Layer2{ flex-direction:column; }
  .news{ flex:1 1 auto; }
  #Layer3{ grid-template-columns:repeat(2,1fr); }
  nav > ul{ flex-wrap:wrap; }
  nav > ul > li > a{ padding:12px 18px; }
}
@media (max-width:640px){
  .hero{ padding:32px 24px; min-height:auto; }
  .hero h1{ font-size:26px; }
  #Layer3{ grid-template-columns:1fr; }
  .topsearch{ display:none; }
}
