@media screen and (min-width: 768px) { .main { .about { .cover { img { display: block; width: 470px; height: 480px; } } .info { width: 660px; padding-top: 65px; .name { font-size: 50px; color: #7d8bb0; font-weight: bold; } .subname { font-size: 30px; margin-top: 15px; } .line { width: 36px; height: 7px; background: #7d8bb0; margin: 20px 0 30px; } .description { font-size: 20px; text-align: justify; word-break: break-all; line-height: 36px; p { margin-top: 24px; } } } } .therapy { .content { img { display: block; width: 100%; margin-top: 3px; &:first-child { margin-top: 0; } } } } .program { .content { img { display: block; width: 100%; } } } .device { .content { .swiper-container { width: 100%; img { display: block; width: 100%; } } } } } } @media screen and (max-width: 768px) { .main { .about { .content { display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-orient: vertical; -webkit-box-direction: reverse; -ms-flex-direction: column-reverse; flex-direction: column-reverse; -webkit-box-align: center; -ms-flex-align: center; align-items: center; .cover { margin-top: 0.4rem; img { display: block; width: 5.46rem; height: 5.57rem; } } .info { width: 6.5rem; margin: 0 auto; .name { font-size: 0.34rem; color: #7d8bb0; text-align: center; font-weight: bold; } .subname { font-size: 0.26rem; margin-top: 0.16rem; text-align: center; } .line { width: 0.4rem; height: 0.06rem; background: #7d8bb0; margin: 0.32rem auto; } .description { text-align: justify; word-break: break-all; color: #333333; text-align: center; font-size: 0.26rem; line-height: 0.48rem; } } } } .therapy { width: 6.86rem; margin: 0 auto; .content { img { display: block; width: 100%; margin-top: 0.32rem; &:first-child { margin-top: 0; } } } } .program { width: 6.86rem; margin: 0 auto; .content { img { display: block; width: 100%; } } } .device { .scroll-box { img { width: 2.74rem; height: 2.53rem; margin-right: 0.24rem; &:first-child { margin-left: 0.32rem; } &:last-child { margin-right: 0.32rem; } } } } } }