<template>
  <div class="application-center">
    <!-- 顶部横幅区域 -->
    <div class="banner">
      <div class="banner-content">
        <h1 class="banner-title">应用中心</h1>
        <p class="banner-description">
          收集、管理区级应用的访问地址、使用单位、使用情况等。
          区委办局、街镇、居村应基于区级节点开展区级时空应用建设。
        </p>
        <el-button type="primary" class="enter-button" @click="handleEnterClick">点击进入</el-button>
      </div>
    </div>

    <!-- 示范应用区域 -->
    <div class="demo-applications">
      <div class="section-title">
        <h2>示范应用</h2>
        <div class="title-line"></div>
      </div>

      <div class="applications-grid">
        <!-- 应用卡片1 -->
        <div class="application-card">
          <div class="card-image">
            <img src="~@/assets/images/common/app-bg-1.png" alt="青浦区环境自动监测信息化平台" />
          </div>
          <h3 class="card-title">青浦区环境自动监测信息化平台</h3>
          <div class="card-info">
            <p><strong>访问类型：</strong>公开</p>
            <p><strong>建设单位：</strong>青浦区环境局</p>
            <p><strong>建设时间：</strong>2024.10.25</p>
          </div>
        </div>

        <!-- 应用卡片2 -->
        <div class="application-card">
          <div class="card-image">
            <img src="~@/assets/images/common/app-bg-2.png" alt="青浦区燃气行业监管平台" />
          </div>
          <h3 class="card-title">青浦区燃气行业监管平台</h3>
          <div class="card-info">
            <p><strong>访问类型：</strong>公开</p>
            <p><strong>建设单位：</strong>青浦区环境局</p>
            <p><strong>建设时间：</strong>2024.10.25</p>
          </div>
        </div>

      </div>
       <div class="applications-grid">
        <!-- 应用卡片3 -->
            <div class="application-card">
            <div class="card-image">
                <img src="~@/assets/images/common/app-bg-3.png" alt="青浦区环境自动监测信息化平台" />
            </div>
            <h3 class="card-title">青浦区环境自动监测信息化平台</h3>
            <div class="card-info">
                <p><strong>访问类型：</strong>公开</p>
                <p><strong>建设单位：</strong>青浦区环境局</p>
                <p><strong>建设时间：</strong>2024.10.25</p>
            </div>
            </div>

            <!-- 应用卡片4 -->
            <div class="application-card">
            <div class="card-image">
                <img src="~@/assets/images/common/app-bg-4.png" alt="青浦区消防救援支队一网统管平台" />
            </div>
            <h3 class="card-title">青浦区消防救援支队一网统管平台</h3>
            <div class="card-info">
                <p><strong>访问类型：</strong>公开</p>
                <p><strong>建设单位：</strong>青浦区环境局</p>
                <p><strong>建设时间：</strong>2024.10.25</p>
            </div>
            </div>
       </div>
    </div>
  </div>
</template>

<script>
export default {
  name: "ApplicationCenter",
  data() {
    return {}
  },
  methods: {
    handleEnterClick() {
      this.$router.push('appCenter');
    }
  }
}
</script>

<style lang="less" scoped>
.application-center {
  width: 100%;
  min-height: 100vh;
  background-color: #08224a;
  color: #ffffff;
  overflow-x: hidden;
}

/* 顶部横幅样式 */
.banner {
  width: 100%;
  height: 786px;
  background: url(~@/assets/images/common/u720.png) no-repeat center center;
  background-size: cover;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;

  &::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(8, 34, 74, 0.7);
    z-index: 1;
  }

  .banner-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    padding: 0 20px;
  }

  .banner-title {
    font-size: 64px;
    font-weight: bold;
    letter-spacing: 0.5rem;
    margin-bottom: 20px;
    color: #ffffff;
    text-align: left;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  }

  .banner-description {
    font-size: 22px;
    line-height: 1.8;
    margin-bottom: 40px;
    margin-top: 70px;
    text-align: left;
    color: rgba(255, 255, 255, 0.9);
  }

  .enter-button {
    padding: 12px 36px;
    font-size: 18px;
    border-radius: 10px;
    background-color: #1890ff;
    border: none;
    transition: all 0.3s ease;

    &:hover {
      background-color: #40a9ff;
      transform: translateY(-2px);
      box-shadow: 0 4px 12px rgba(24, 144, 255, 0.4);
    }
  }
}

/* 示范应用区域样式 */
.demo-applications {
  padding: 60px 20px;
  max-width: 1400px;
  margin: 0 auto;

  .section-title {
    text-align: center;
    margin-bottom: 60px;

    h2 {
      font-size: 36px;
      font-weight: bold;
      margin-bottom: 15px;
      color: #ffffff;
    }

    .title-line {
      width: 80px;
      height: 3px;
      background-color: #1890ff;
      margin: 0 auto;
    }
  }

  .applications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 60px 0 60px 0px;
    .application-card {
      background: rgba(24, 144, 255, 0.1);
      border: 1px solid rgba(24, 144, 255, 0.3);
      border-radius: 8px;
      overflow: hidden;
      transition: all 0.3s ease;

      &:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 30px rgba(24, 144, 255, 0.3);
        border-color: rgba(24, 144, 255, 0.6);
      }

      .card-image {
        width: 100%;
        height: 200px;
        overflow: hidden;

        img {
          width: 100%;
          height: 100%;
          object-fit: cover;
          transition: transform 0.3s ease;
        }

        &:hover img {
          transform: scale(1.05);
        }
      }

      .card-title {
        font-size: 18px;
        font-weight: bold;
        padding: 20px 20px 15px;
        margin: 0;
        color: #ffffff;
        border-bottom: 1px solid rgba(24, 144, 255, 0.3);
      }

      .card-info {
        padding: 15px 20px 20px;
        font-size: 14px;
        // color: rgba(255, 255, 255, 0.8);
        color: #ffffff;

        p {
          margin: 8px 0;
          line-height: 1.6;

          strong {
            // color: rgba(24, 144, 255, 0.9);
            color: #ffffff;
          }
        }
      }
    }
  }
}

/* 响应式设计 */
@media (max-width: 768px) {
  .banner {
    height: 400px;

    .banner-title {
      font-size: 36px;
    }

    .banner-description {
      font-size: 14px;
    }

    .enter-button {
      padding: 10px 28px;
      font-size: 16px;
    }
  }

  .demo-applications {
    padding: 40px 15px;

    .section-title h2 {
      font-size: 28px;
    }

    .applications-grid {
      grid-template-columns: 1fr;
      gap: 20px;
    }
  }
}
</style>