<template>
  <div class="portal-footer">
    <div class="footer-content">
      <div class="footer-top">
        <div class="footer-left">
          <div class="footer-section">
            <ul>
              <li><router-link to="/portal/home">首页</router-link></li>
              <li><router-link to="/portal/about">关于STS</router-link></li>
              <li><router-link to="/portal/science-plan">科学计划与国际合作</router-link></li>
              <li><router-link to="/portal/progress">计划进展</router-link></li>
              <li><router-link to="/portal/achievement">科研成果</router-link></li>
              <li><router-link to="/portal/application">应用与示范</router-link></li>
              <li><router-link to="/portal/sdgsat1">SDGSAT-1专区</router-link></li>
              <li><router-link to="/portal/notice">通知公告</router-link></li>
            </ul>
          </div>
        </div>
        <div class="footer-right">
          <!-- 预留空div -->
        </div>
      </div>
      <div class="footer-bottom">
        <div class="copyright">
          <p>&copy; 2024 国际大科学计划. All rights reserved.</p>
          <p>京ICP备20021838号 | 京公网安备 11010802040258号</p>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: 'PortalFooter'
}
</script>

<style lang="scss" scoped>
.portal-footer {
  width: 100%;
  height: 257px;
  background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
  color: #ffffff;
  margin-top: auto;
}

.footer-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 30px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-left {
  flex: 1;
}

.footer-right {
  width: 300px; /* 可以根据需要调整宽度 */
}

.footer-section {
  width: 500px;

  ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;

    li {
      margin-bottom: 0;

      a {
        color: rgba(255, 255, 255, 0.8);
        text-decoration: none;
        font-size: 14px;
        transition: all 0.3s ease;

        &:hover {
          color: #ffffff;
          padding-left: 5px;
        }
      }

      &.contact-info {
        display: flex;
        align-items: flex-start;
        gap: 10px;
        margin-bottom: 15px;

        i {
          margin-top: 3px;
          font-size: 16px;
        }

        span {
          color: rgba(255, 255, 255, 0.8);
          font-size: 14px;
          line-height: 1.6;
        }
      }
    }
  }
}

.footer-bottom {
  padding-top: 20px;
  text-align: center;

  .copyright {
    p {
      margin: 5px 0;
      font-size: 13px;
      color: rgba(255, 255, 255, 0.7);
    }
  }
}

@media (max-width: 1200px) {
  .footer-top {
    flex-direction: column;
    gap: 30px;
  }
  
  .footer-right {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .footer-content {
    padding: 30px 20px 15px;
  }

  .footer-top {
    flex-direction: column;
    gap: 25px;
  }

  .footer-section {
    ul {
      grid-template-columns: 1fr;
      gap: 10px;
    }
  }
}
</style>
