@media (min-width: 781px) { .product { /* width: 19rem; margin: 0 auto;*/ margin: 1rem 4rem auto; padding: 0.222rem 0.222rem 0.2rem; margin-bottom: 1rem; border-radius: 30px; box-shadow: 0 2px 8px rgb(36 33 33 / 10%); border-bottom: 1px solid #FFFFFF; } .headBg { width: 100%; /* min-height: 480px; */ height: 6rem; position: relative; content: ""; display: inline-block; margin-top: 80px; } .headBg .headBgCent p:nth-of-type(1) { font-size: 1rem; color: #fff; letter-spacing: 3px; padding-bottom: 0.45rem; } .headBg .headBgCent p:nth-of-type(2) { font-size: 0.5rem; color: #fff; text-align: center; padding-top: 0.8rem; border-top: 3px solid rgba(179, 0, 48, 1); } .product .newsContent p { font-size: 18px; line-height: 27px; color: rgba(0, 0, 0, 0.65); letter-spacing: 1px; margin: 0 0 13px; } .product .newsTitle h1 { font-size: 30px; width: 100%; padding: 0px 30px; box-sizing: border-box; text-align: center; word-break: break-all; text-overflow: ellipsis; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; } .product .newsTitle p { font-size: 18px; color: rgba(0, 0, 0, 0.55); width: 100%; padding: 20px 0; text-align: center; } .product .newsContent .imgexplain { line-height: 24px !important; font-size: 18px !important; color: rgba(0, 0, 0, 0.35); width: 100%; text-align: center; padding-bottom: 10px !important; } } @media (max-width: 780px) { .product { width: 100%; margin: 0 auto; padding: 0px 20px; box-sizing: border-box; } .product .newsTitle { padding-top: 30px !important; } .headBg { width: 100%; /* min-height: 480px; */ position: relative; content: ""; display: inline-block; margin-top: 4rem; } .headBg .headBgCent p:nth-of-type(1) { font-size: 18px; color: #fff; letter-spacing: 3px; padding-bottom: 8px; } .headBg .headBgCent p:nth-of-type(2) { font-size: 15px; color: #fff; text-align: center; padding-top: 8px; border-top: 2px solid rgba(179, 0, 48, 1); } .product .newsContent p { font-size: 16px; line-height: 18px; color: rgba(0, 0, 0, 0.65); letter-spacing: 0.5px; padding: 12px 0; } .product .newsTitle p:nth-of-type(2) { font-size: 16px !important; } .product .newsTitle h1 { font-size: 18px; width: 100%; padding: 0px 12px; box-sizing: border-box; line-height: 28px !important; font-weight: 600; /* text-align: center; word-break: break-all; text-overflow: ellipsis; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; */ } .product .newsTitle p { font-size: 15px; color: rgba(0, 0, 0, 0.55); width: 100%; padding: 18px 0 10px; text-align: center; } .product .newsContent .imgexplain { line-height: 17px !important; font-size: 15px !important; color: rgba(0, 0, 0, 0.35); width: 100%; text-align: center; padding-bottom: 10px !important; } .back p { width: 120px !important; } .back p img { width: 18px !important; height: 18px !important; } .back p a { font-size: 15px !important; } } .headBg img { width: 100%; height: 100%; vertical-align: bottom; } .headBg .headBgCent { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); display: flex; align-items: center; justify-content: center; flex-direction: column; } .product .newsTitle { padding-top: 30px; width: 100%; } .product .newsContent { border-top: 1px solid rgba(0, 0, 0, 0.15); padding: 20px 0px; } .product .newsContent { width: 100%; } .product .newsContent img { display: block; margin: 10px auto; max-width: 100%; } .product .back { width: 100%; padding: 35px 0px 150px; } .back p { background: rgba(179, 0, 48, 1); width: 134px; height: 30px; float: right; } .back p a { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 18px; line-height: 30px; } .back p img { width: 20px; height: 20px; margin-right: 15px; } .customCategory { width: 1300px; background: red; height: 200px; }