/* Static reproduction of src/views/nav/analyze/detail.vue. 1rem = 10px. */
.analyze-detail-page {
  min-height: 70rem;
  padding-bottom: 9rem;
  background: #f5f5f5;
  font-family: "Microsoft YaHei", sans-serif;
}

.analyze-detail-page__inner {
  width: 140rem;
  margin: 0 auto;
}

.analyze-detail-layout {
  display: flex;
  align-items: flex-start;
  margin-top: 3.6rem;
}

.analyze-detail-content {
  min-width: 0;
  flex: 1;
  margin-left: 4rem;
}

.analyze-detail-top {
  height: 34.3rem;
  display: flex;
  padding: 3.5rem;
  background: #fff;
}

.analyze-detail-top__image {
  width: 44.8rem;
  height: 100%;
  flex: 0 0 44.8rem;
  border: .1rem solid #eee;
}

.analyze-detail-top__image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.analyze-detail-top__info {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  margin-left: 6rem;
}

.analyze-detail-top__info h1 {
  margin: 0;
  color: #333;
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1.35;
}

.analyze-detail-top__info p {
  margin: 0;
  color: #636363;
  font-size: 1.6rem;
  line-height: 1.5;
}

.analyze-detail-top__info p span {
  width: 9rem;
  display: inline-block;
}

.analyze-detail-top__info p b {
  color: #333;
  font-size: 1.6rem;
  font-weight: 400;
}

.analyze-appointment-button {
  width: 14.8rem;
  height: 4.5rem;
  border: 0;
  background: #00479d;
  color: #fff;
  font-family: inherit;
  font-size: 1.9rem;
  line-height: 4.5rem;
  text-align: center;
  cursor: pointer;
}

.analyze-detail-section {
  margin-top: 2rem;
  background: #fff;
}

.analyze-detail-section > h2 {
  height: 6rem;
  margin: 0;
  padding: 0 3rem;
  border-bottom: .1rem solid #e8e8e8;
  color: #00479d;
  font-size: 1.8rem;
  font-weight: 500;
  line-height: 6rem;
}

.analyze-detail-section__body {
  padding: 3rem;
  color: #333;
  font-size: 1.6rem;
  line-height: 2;
}

.analyze-detail-section__body p {
  margin: 0 0 1.5rem;
}

.analyze-detail-section__body p:last-child {
  margin-bottom: 0;
}

.analyze-detail-neighbor {
  display: flex;
  justify-content: space-between;
  padding: 3rem;
  color: #333;
  font-size: 1.4rem;
}

.analyze-detail-neighbor a {
  color: inherit;
  text-decoration: none;
}

.analyze-detail-neighbor a:hover,
.analyze-related__item:hover b {
  color: #00479d;
}

.analyze-related__list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.9rem;
  padding: 3rem;
}

.analyze-related__item {
  min-width: 0;
  color: #333;
  font-size: 1.8rem;
  text-align: center;
  text-decoration: none;
}

.analyze-related__image {
  height: 23.4rem;
  display: block;
  overflow: hidden;
  border: .1rem solid #e8e8e8;
}

.analyze-related__image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  transition: transform .25s linear;
}

.analyze-related__item:hover .analyze-related__image img {
  transform: scale(1.1);
}

.analyze-related__item b {
  width: 100%;
  display: block;
  margin-top: 1.5rem;
  overflow: hidden;
  color: inherit;
  font-weight: 400;
  line-height: 2.4rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.analyze-appointment-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
}

.analyze-appointment-modal.is-visible {
  display: block;
}

.analyze-appointment-modal__mask {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .45);
}

.analyze-appointment-modal__dialog {
  width: 68rem;
  height: 47rem;
  position: relative;
  z-index: 1;
  margin: 25vh auto 0;
  overflow: hidden;
  border-radius: 2rem;
  background: #fff;
}

.analyze-appointment-modal__dialog header {
  height: 9rem;
  padding: 0 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: url(../img/inner/headerimg.png);
  background-size: 100% 100%;
  color: #fff;
}

.analyze-appointment-modal__dialog h2 {
  margin: 0;
  font-size: 2.4rem;
  font-weight: 700;
}

.analyze-appointment-modal__close {
  width: 3.6rem;
  height: 3.6rem;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 3rem;
  line-height: 3.2rem;
  cursor: pointer;
  position: absolute;
  top: 1rem;
  right: 2rem;
}

.analyze-appointment-modal__body {
  height: 25rem;
  padding: 3rem;
  overflow-y: auto;
  color: #333;
  font-size: 1.6rem;
  line-height: 2;
}

.analyze-appointment-modal__body p {
  margin: 0 0 1.5rem;
}

.analyze-appointment-modal__confirm {
  width: 17.5rem;
  height: 4.3rem;
  position: absolute;
  bottom: 4rem;
  left: 50%;
  border: 0;
  border-radius: .4rem;
  background: #00479d;
  color: #fff;
  font-family: inherit;
  font-size: 1.6rem;
  transform: translateX(-50%);
  cursor: pointer;
}

@media (max-width: 1024px) {
  .analyze-detail-page__inner {
    width: 100%;
  }

  .analyze-detail-layout {
    display: block;
    margin-top: 0;
    padding: 3vw;
  }

  .analyze-detail-layout > .service-aside { display: none; }

  .analyze-detail-content {
    margin: 0;
  }

  .analyze-detail-top {
    height: auto;
    padding: 3vw;
    display: block;
  }

  .analyze-detail-top__image {
    width: 100%;
    height: 40rem;
    flex-basis: auto;
  }

  .analyze-detail-top__info {
    min-height: 25rem;
    margin-top: 3vw;
    margin-left: 0;
  }

  .analyze-related__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 3vw 2%;
  }
}

@media (max-width: 560px) {
  .analyze-detail-top {
    padding: 3vw;
  }

  .analyze-detail-top__image {
    height: 24rem;
  }

  .analyze-detail-section > h2,
  .analyze-detail-section__body,
  .analyze-detail-neighbor,
  .analyze-related__list {
    padding-left: 2rem;
    padding-right: 2rem;
  }

  .analyze-detail-neighbor {
    flex-direction: column;
    gap: 1.5rem;
  }

  .analyze-appointment-modal__dialog {
    width: calc(100% - 6vw);
    margin-top: 15vh;
  }
}
