@charset "UTF-8";

/* 信息资讯区域 */
.info-section {
  padding: 40px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 30px;
}

.section-title img {
  width: 100%;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  max-width: 1200px;
}

.info-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #f5f7fa;
  border-radius: 8px;
  padding: 30px;
  transition: all 0.3s;
  cursor: pointer;
  height: 340px;
  border-radius: 14px;
}

.info-item:hover {
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.info-item img {
  margin-bottom: 15px;
}

.info-item span {
  font-size: 4.4rem;
  color: #333;
}

/* 长者服务区域 */
.service-section {
  padding: 20px 0;
}

.service-content {
  display: flex;
  justify-content: space-between;
  margin: 0 auto;
  gap: 25px;
}

/* 左侧服务卡片 */
.service-left {
  width: calc(410 / 1200 * 100%);
}

.service-card {
  overflow: hidden;
}

.service-card img {
  width: 100%;
  display: block;
}

/* 中间按钮区 */
.service-middle {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  flex: 0 0 300px;
}

.service-btn {
  display: block;
}

.service-btn img {
  display: block;
}

/* 右侧链接区 */
.service-right {
  flex: 0 0 400px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
}

.link-item {
  height: 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 26px;
  background: #fff;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s;
  border-radius: 4px;
  border: 1px solid rgba(207, 207, 207, 1);
}

.link-item:hover {
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.link-item img {
  width: 42px;
  height: 42px;
}

.link-item span {
  font-size: 2.4rem;
  color: #333;
}

/* 响应式布局 */
@media (max-width: 1280px) {

  .header{
    background-size: auto 100%;
    height: 350px;
  }
  .service-content {
    flex-wrap: wrap;
  }

  .service-left,
  .service-middle,
  .service-right {
    flex: 0 0 100%;
  }

  .service-middle {
    flex-direction: row;
    justify-content: center;
  }
}

@media (max-width: 992px) {
  .header{
    height: 280px;
  }

  .info-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .header{
    height: 230px;
  }

  .service-middle {
    justify-content: space-between;
  }
  .header .logo img{
    height: 60px;
  }
}

@media (max-width: 431px) {

  .header{
    height: 130px;
  }
  .header .logo{
    padding-top: 10px;
  }
  .header .logo img{
    height: 40px;
  }

  .info-item{
    height: 160px;
    padding: 10px;
  }
  .info-grid{
    gap: 12px
  }
  .info-item img{
    width: 70px;
    height: 70px;
  }
  .info-item span{
    font-size: 2.4rem;
  }
  .section-title{
    height: 60px;
  }
  .section-title img{
    height: 100%;
    object-fit: cover;
  }
  .info-section{
    padding: 20px 0 0 0;
  }

  .main-box {
    margin-bottom: 30px;
  }
  .service-middle{
    flex-direction: column;
  }
 
  .service-btn{
    width: 100%;
  }
  .service-btn img{
    width: 100%;
  }
  .link-item{
    padding: 0 10px;
  }
  
  
}