/* 政务新媒体矩阵页面样式 */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  background: #fff;
  color: #333;
}

a {
  text-decoration: none;
}

a:hover {
  text-decoration: none;
}

.page-wrap {
  width: 100%;
  overflow-x: hidden;
}

/* ========== 顶部横幅 ========== */
.hero-section {
  position: relative;
}

.hero-banner {
  display: block;
  width: 100%;
  height: auto;
}

.hero-inner {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 62.5vw;
  max-width: 1200px;
  height: 100%;
  padding: 0 calc(18vw / 19.2);
}

.hero-logo {
  position: absolute;
  top: calc(28vw / 19.2);
  left: 0;
  height: calc(58vw / 19.2);
  max-height: 58px;
}

/* ========== 账号矩阵 ========== */
.matrix-section {
  padding: calc(50vw / 19.2) 0 calc(60vw / 19.2);
  background: #fff;
}

.matrix-inner {
  width: 62.5vw;
  margin: 0 auto;
  padding: 0 calc(15vw / 19.2);
}

.section-title {
  margin: 0 0 calc(40vw / 19.2);
  text-align: center;
}

.section-title img {
  display: inline-block;
  max-width: 100%;
  height: auto;
}

.account-card {
  background: #f0f6fc;
  border: none;
  border-radius: calc(4vw / 19.2);
  padding: calc(20vw / 19.2) calc(15vw / 19.2) calc(18vw / 19.2);
  margin-bottom: calc(20vw / 19.2);
  text-align: center;
  height: 100%;
}

.account-card .qr-img {
  display: block;
  width: calc(164vw / 19.2);
  height: calc(164vw / 19.2);
  margin: 0 auto calc(12vw / 19.2);
  object-fit: contain;
}

.account-card .card-name {
  margin: 0 0 calc(6vw / 19.2);
  font-size: calc(16vw / 19.2);
  font-weight: bold;
  color: #333;
  line-height: 1.4;
}

.account-card .card-type {
  margin: 0;
  font-size: calc(14vw / 19.2);
  color: #999;
  line-height: 1.4;
}

/* 大屏每行 5 列 */
@media (min-width: 1200px) {
  .matrix-section .col-matrix {
    width: 20%;
    float: left;
  }
}

@media (max-width: 992px) {
  .hero-inner,
  .matrix-inner {
    width: 90vw;
  }

  .hero-logo {
    top: 20px;
    height: 40px;
  }
}

@media (max-width: 768px) {
  .hero-inner,
  .matrix-inner {
    width: 94vw;
    padding: 0 3vw;
  }

  .hero-logo {
    top: 12px;
    height: 32px;
  }

  .matrix-section {
    padding: 24px 0 32px;
  }

  .section-title {
    margin-bottom: 20px;
  }

  .section-title img {
    width: 100%;
  }

  .matrix-section .row {
    display: flex;
    flex-wrap: wrap;
    margin-left: -6px;
    margin-right: -6px;
  }

  .matrix-section .row > [class*="col-"] {
    display: flex;
    padding-left: 6px;
    padding-right: 6px;
    margin-bottom: 16px;
  }

  .account-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    min-height: 228px;
    padding: 16px 8px 14px;
    margin-bottom: 0;
    border-radius: 6px;
  }

  .account-card .qr-img {
    width: 34vw;
    height: 34vw;
    max-width: 125px;
    max-height: 125px;
    margin-bottom: 10px;
    flex-shrink: 0;
  }

  .account-card .card-name {
    min-height: 40px;
    margin-bottom: 4px;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
  }

  .account-card .card-type {
    font-size: 12px;
    margin-top: auto;
  }
}

@media (max-width: 480px) {
  .matrix-inner {
    padding: 0 10px;
  }

  .matrix-section .row {
    margin-left: -5px;
    margin-right: -5px;
  }

  .matrix-section .row > [class*="col-"] {
    padding-left: 5px;
    padding-right: 5px;
    margin-bottom: 18px;
  }

  .account-card {
    min-height: 250px;
    padding: 14px 6px 12px;
    margin-bottom: 0;
  }

  .account-card .qr-img {
    width: 38vw;
    height: 38vw;
    max-width: 140px;
    max-height: 140px;
    margin-bottom: 8px;
  }

  .account-card .card-name {
    min-height: 40px;
    font-size: 13px;
  }

  .account-card .card-type {
    font-size: 12px;
  }
}
