@import url('https://fonts.googleapis.com/css?family=Poppins:300,400,500,600,700,800,900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins',sans-serif;
}

body{
    min-height: 100vh;
    /* 让渐变背景填充整个网页 */
    background: linear-gradient(#fff,#004a23);
    /* 设置背景渐变填充色 */
    scroll-behavior: smooth;
    overflow-x: hidden;
}
/* 所有 section 内容容器统一居中、内边距 */
.section-container {
  max-width: 1480px; /* 和五个窗体并列宽度保持一致 */
  margin: 0 auto;
  padding: 60px 20px;  /* 可根据视觉舒适度微调 */
}

/* 每个 section 高度至少一整屏 */
section {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}


html{
/* 实现平滑滚动 */
    scroll-behavior: smooth;
}

/* 以下是导航栏的样式布局 */
header{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 30px 100px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10000;
}

header .logo{
    color: #004a23;
    font-weight: 700;
    /* font-weight是给字体加粗 */
    font-size: 1.75em;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-decoration: none;
}

header ul{
    display: flex;
    justify-content: center;
    align-items: center;
}

header ul li{
    list-style: none;
    margin-left: 20px;
}

header ul li a{
    text-decoration: none;
    padding: 6px 15px;
    color: #004a23;
    /* 设置右侧导航栏基础显示样式 */
    border-radius: 20px;
    /* 将右侧导航栏框为圆角矩形 */
}

header ul li a:hover ,
header ul li .active 
/* .active能够一直高亮显示HOME */
{
    background: #004a23;
    color:#fff;
    /* 这一部分主要作用是给导航栏在鼠标悬浮时右侧栏目添加白色背景以及在白框内显示紫色字体 */
}

/* 这是home部分的整体样式 */
.home{
    position: relative;
    width: 100%;
    height: 100vh;
    padding: 100px;
    /* 设置图片占位 */
    display: flex;
    justify-content: center;
    align-items: center;
    /* 调节jiayanhaoyu的位置位于正中心 */
    overflow: hidden;
}

.home::before{
    content: '';
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(to top,#00481d,transparent);
    z-index: 1000;
    /* 这一部分实现Home部分跟background部分的颜色连接过度 */
}

.home img{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* 设置图片格式 */
    pointer-events: none;
}

.home img#mountains_front
{
    z-index: 5;
}

#text
{
  /* 调节中心文本样式 */
    position: absolute;
    right: -430px;
    color: #fff;
    white-space: nowrap;
    font-size: 7.5vw;
    z-index: 1;
}

#btn{
    text-decoration: none;
    display: inline-block;
    padding: 8px 30px;
    border-radius: 40px;
    background: #fff;
    color: #00481d;
    font-size: 1.5em;
    z-index: 9;
    transform: translateY(100px);
}

#btn:hover {
  background: #004a23;
  color: #fff;
  transition: 0.3s;
}

/* 这里是介绍部分的样式 */
.introduction h2{
    color: #fff;
    text-align: center;
    font-size: 3.5em;
    margin-bottom: 10px;
    padding:50px;
}

.introduction {
  padding: 40px;
  background-color: #004a23;
  text-align: center;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.info-card {
  position: relative;
  width: 18.5%;
  height: 360px;
  border-radius: 12px;
  background-color: #fff;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  cursor: pointer;
}

.info-card h3{
    color: #004a23;
    font-size:30px;
}
.info-card p{
    color: #004a23;
    font-size: 20px;
}

/* 图片区域占 85% */
.card-image-wrapper {
  height: 85%;
  width: 100%;
  overflow: hidden;
  transition: all 0.5s ease;
  display: flex;
  justify-content: center;
  align-items: center;
}

.card-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  transition: all 0.5s ease;
}

/* 标题区域占 15% */
.card-title {
  margin: 0;
  padding: 10px;
  text-align: center;
  font-size: 1rem;
  color: #333;
  height: 15%;
  transition: transform 0.5s ease, opacity 0.5s ease;
}

/* 描述文字，初始隐藏 */
.card-description {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  max-height: 0;
  padding: 0 15px;
  background-color: #fff;
  color: #555;
  font-size: 0.95rem;
  line-height: 1.4;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.5s ease, opacity 0.5s ease, padding 0.5s ease;
  z-index: 2;
}

.info-card:hover .card-image-wrapper {
  height: 120px;
}

.info-card:hover .card-image-wrapper img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
}

.info-card:hover .card-title {
  transform: translateY(-20px);
  opacity: 0;
}

.info-card:hover .card-description {
  max-height: 200px; /* 足够展示全部文字，可再调大 */
  opacity: 1;
  padding: 15px;
}

/* 这里是研究方案部分的样式*/
.programe {
  background-color: #004a23;
  padding: 50px 20px;
  position: relative;
}

/* 大背景玻璃框 */
.glass-bg {
  width: 100%;         /* 撑满 section-container */
  box-sizing: border-box;
  padding: 40px;       /* 仍然保留内部内容的空间 */
  background: rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

/* 小圆角矩形容器，深绿底 */
.inner-box {
  background-color: #004a23;
  border-radius: 16px;
  padding: 30px 40px;
  margin-bottom: 40px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.inner-box:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.3);
}

/* 保留你的标题与段落样式（不用改） */
.programe h2 {
  color: #fff;
  text-align: center;
  font-size: 3.5em;
  margin-bottom: 10px;
  padding: 50px;
}

.programe h3 {
  font-size: 2em;
  color: #fff;
  padding-bottom: 20px;
  font-weight: 500;
}

.programe p {
  font-size: 1.5em;
  color: #fff;
  font-weight: 500;
}


/* 这是研究成果部分的样式 */
.result{
    text-align: center;
}
.result a{
  display: inline-block; /* 必须是 inline-block 才能被 text-align 控制 */
  font-size: 3.5em;
  margin-bottom: 10px;
  color: #fff;
  padding: 50px 20px;
  border-radius: 12px;
  text-decoration: underline;
}

.result {
    display: flex;
    justify-content: center;
    padding: 40px 0;
    overflow-x: hidden;
    background-color: #004a23;
}

.result .shell {
  width: 100%;              /* 撑满 glass-bg */
  height: 80vh;
  max-height: 700px;
  min-height: 400px;
  display: flex;
  justify-content: center;  /* 水平居中 */
  align-items: center;      /* 垂直居中 */
  gap: 20px;
}

.result .box {
    flex: 1;
    overflow: hidden;
    transition: 0.5s;
    box-shadow: 10px 10px 20px rgba(0, 0, 0, 0.5);
    border-radius: 20px;
    border: 10px solid #fff;
    background-color: #fff;
    display: flex;
    flex-direction: column;
    position: relative;
}

.result .box > img {
    width: 100%;
    height: 100%;
    flex: 1;
    object-fit: cover;
    transition: 0.5s ease;
    display: block;
}

.result .box > span {
    font: 200 1.8em 'YouSheBiaoTiHei', sans-serif;
    text-align: center;
    height: 15%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #fff;
    z-index: 2;
    position: relative;
}

/* 悬停效果 */
.result .box:hover {
    flex-basis: 40%;
}

.result .box:hover > img {
    height: 100%;
    width: 100%;
}

.result .shell2 {
  width: 100%;              /* 撑满 glass-bg */
  height: 80vh;
  max-height: 700px;
  min-height: 400px;
  display: flex;
  justify-content: center;  /* 水平居中 */
  align-items: center;      /* 垂直居中 */
  gap: 20px;
}

.result .box2 {
    flex: 1;
    overflow: hidden;
    transition: 0.5s;
    box-shadow: 10px 10px 20px rgba(0, 0, 0, 0.5);
    border-radius: 20px;
    border: 10px solid #fff;
    background-color: #fff;
    display: flex;
    flex-direction: column;
    position: relative;
}

.result .box2 > img {
    width: 100%;
    height: 100%;
    flex: 1;
    object-fit: cover;
    transition: 0.5s ease;
    display: block;
}

.result .box2 > span {
    font: 200 1.8em 'YouSheBiaoTiHei', sans-serif;
    text-align: center;
    height: 15%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #fff;
    z-index: 2;
    position: relative;
}

/* 悬停效果 */
.result .box2:hover {
    flex-basis: 40%;
}

.result .box2:hover > img {
    height: 100%;
    width: 100%;
}


/* 这里是宣传部分的样式 */
.promotion{
    background-color: #004a23;
}
.promotion h2{
  font-size: 3.5em;
  margin-bottom: 10px;
  color: #fff;
  text-align: center;
  padding: 50px 20px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 三列 */
  gap: 20px;
  margin-top: 20px;
}

.gallery-grid img {
  width: 100%;
  height: 270px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  transition: transform 0.3s ease;
}

.gallery-grid img:hover {
  transform: scale(1.05);
}

.promotion{
    text-align: center;
}
.promotion a{
  display: inline-block; /* 必须是 inline-block 才能被 text-align 控制 */
  font-size: 1.5em;
  margin-bottom: 10px;
  color: #fff;
  padding: 10px 20px;
  border-radius: 12px;
  text-decoration: underline;
  transition: transform 0.3s ease; /* 添加过渡效果，时间和缓动函数可调整 */
}

.promotion a:hover{
  transform: scale(1.25);
}


/* 这里是成员介绍部分 */
.contact {
      grid-template-columns: repeat(3, 1fr);
      gap: 20px;
      margin: 0 auto;
      padding: 20px;
    }

    .card {
      flex-shrink: 0;
      flex-grow: 0;
      position: relative;
      width: 100%;
      height: 450px;
      overflow: hidden;
      background-color: var(--border-color);
      border-radius: 20px;
      display: flex;
      justify-content: flex-start;
      align-items: center;
      flex-direction: column;
      box-shadow: 0 0 30px #1b6b4a;
      color: var(--font_color);
    }

    .photo {
      position: absolute;
      width: 100%;
      height: 100%;
      top: 0px;
      border-radius: 0%;
      overflow: hidden;
      transition: 0.5s;
      border-top: 0;
      border-bottom: 0;
      padding: 0;
    }
    .card{
        padding: 0;
    }
  

    .photo::before {
      position: absolute;
      content: '';
      width: 100%;
      height: 100%;
      background-image: linear-gradient(to top, #333, transparent);
    }

    .card:hover .photo::before {
      display: none;
    }

    .photo img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    .card:hover .photo {
      width: 120px;
      height: 120px;
      top: 30px;
      border-radius: 50%;
      box-shadow: 0 0 20px #111;
    }

    .contact h1 {
      position: absolute;
      top: 380px;
      transition: 0.5s;
    }

    .card:hover h1 {
      top: 170px;
    }

    .contact h2 {
      margin-top: 220px;
      width: 80%;
      font-weight: normal;
      text-align: center;
      margin-bottom: 20px;
      padding-bottom: 20px;
      border-bottom: 1px solid var(--h2_border_color);
    }

    .contact p{
      width: 90%;
      text-indent: 2em;
      font-size: 16px;
      margin-bottom: 10px;
      line-height: 30px;
      text-align: left;
    }

    .contact a {
      color: var(--font_color);
      text-decoration: none;
      padding: 12px 36px;
      border: 1px solid var(--a_border_color);
      border-radius: 8px;
    }

    .contact a:hover {
      color: #fff;
      background-color: var(--a_hover_background_color);
    }


    #Contact{
        margin: 0;
        text-align: center;
        width: 100%;
        padding: 120px;
        border: 0;
        background-color: #004a23;
    }

.card h1
{
    color: #fff;
}

.card h2{
    color: #fff;
}

.card p{
    color: #fff;
}

#Contact {
  padding: 100px 0;
}

/* 容器居中 */
.contact-container {
  max-width: 1480px;
  margin: 0 auto;
  padding: 0 20px;
}

.contact .contact-bg {
 background-image: url('images/contact-bg.jpg'); 
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  padding: 60px 40px;
  border-radius: 20px;

  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;

  position: relative;
}

.contact .contact-bg::before {
 content: '';
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.3);
  border-radius: 20px;
  z-index: 0;
}

.contact .contact-bg {
  z-index: 1;
}

footer{
    color: #fff;
    text-align: center;
    padding: 20px;
    background-color: #004a23;
}