兼容手机端,基于子主题上修改,不影响父主题升级。
完工图



头部html标签
<script type="text/javascript" src="//at.alicdn.com/t/font_3133075_wsm2usco9v.js"></script>
<link rel="stylesheet" type="text/css" href="//at.alicdn.com/t/font_3133075_wsm2usco9v.css" />
子主题style.css
/*VIP美化开始*/
.module-line {
width: 100%;
text-align: center;
margin: 1vh 0 3vh
}
.module-line span {
display: inline-block;
*display: inline;
*zoom: 1;
}
.module-line .arrow {
width: 84px;
height: 16px
}
.module-line .left-arrow {
background: url(/pic/left.png)
}
.module-line .right-arrow {
background: url(/pic/right.png)
}
.module-line .text {
font-size: 26px;
color: #4c4c4c;
margin: 38px 10px 0
}
.module-line:nth-child(1) .text {
margin: 0 10px
}
.waves-box {
margin-top: -10px;
position: relative;
text-align: center;
background: linear-gradient(60deg,#000 0%,#2d2d2d 100%);
color: #e0b06b
}
.vip-row li {
font-size: 15px
}
.waves-inner li {
display: inline
}
.pro-current {
font-size: .83em;
letter-spacing: 2px;
margin: 2.3em 0;
color: #c3c3c3;
font-weight: lighter
}
.waves-inner {
height: 530px;
width: 100%;
margin: 0;
padding-top: 80px;
text-align: center
}
.waves-inner h2 {
font-size: 3em;
font-weight: 700;
letter-spacing: 2px;
margin: .2em 0
}
.waves-inner p {
font-size: 1.5em;
padding: 10px;
margin: 2em;
color: #c3c3c3;
letter-spacing: 1px
}
.waves-inner button {
padding: 10px 28px;
font-size: 1.4em;
color: #000;
font-weight: 700;
border-radius: 50px;
letter-spacing: 3px;
text-decoration: none;
margin: 0 1em;
border: 0
}
.waves-inner button:hover {
box-shadow: 0 5px 10px #d2bb9a47
}
.waves {
position: relative;
width: 100%;
height: 15vh;
margin-bottom: -7px;
min-height: 100px;
max-height: 150px
}
.parallax>use {
animation: move-forever 25s cubic-bezier(.55,.5,.45,.5)infinite
}
.parallax>use:nth-child(1) {
animation-delay: -2s;
animation-duration: 7s
}
.parallax>use:nth-child(2) {
animation-delay: -3s;
animation-duration: 10s
}
.parallax>use:nth-child(3) {
animation-delay: -4s;
animation-duration: 13s
}
.parallax>use:nth-child(4) {
animation-delay: -5s;
animation-duration: 20s
}
@keyframes move-forever {
0% {
transform: translate3d(-90px,0,0)
}
100% {
transform: translate3d(85px,0,0)
}
}
@media (max-width:768px) {
.waves {
height: 40px;
min-height: 40px
}
.waves-inner {
height: 380px
}
.waves-inner {
padding-top: 50px
}
.waves-inner h2 {
font-size: 1.8em
}
.waves-inner p {
font-size: .9em
}
.waves-inner button {
font-size: 15px;
padding: 10px 15px;
margin: 0 5px;
}
}
.vipwaves {
position: relative;
width: 100%;
height: 130px;
margin-bottom: -7px
}
.vip-block-wrapper {
position: relative;
display: flex;
height: 100%;
justify-content: center
}
.vip-block-wrapper .vip-block-item {
display: block;
box-sizing: border-box;
padding: 20px 40px;
width: 33.333%;
text-align: center
}
.home-vipbox {
overflow: hidden;
padding: 1px 0 18px;
border-radius: 8px;
background: #fff;
box-shadow: 0 0 2rem rgba(0,0,0,.1);
-webkit-transition: all .3s ease-in-out;
-moz-transition: all .3s ease-in-out;
-ms-transition: all .3s ease-in-out;
transition: all .3s ease-in-out
}
.home-vipbox:hover {
-webkit-transform: translateY(-3px);
-moz-transform: translateY(-3px);
-ms-transform: translateY(-3px);
transform: translateY(-3px)
}
.vip-block-wrapper .vip-block-item .icon {
height: 60px;
width: 33%;
padding-top: 20px;
margin: 0 auto 10px
}
.icon svg {
width: 90px;
height: 48px;
margin: 0
}
.vip-block-wrapper .vip-block-item .content0-title {
padding: 0;
font-size: 1.875rem;
font-weight: 700
}
.vip-block-item:nth-child(1) h3 {
color: #ff8383;
text-shadow: 0 5px 6px #ff838388
}
.vip-block-item:nth-child(2) h3 {
color: #5bc7f1;
text-shadow: 0 5px 6px #5bc7f188
}
.vip-block-item:nth-child(3) h3 {
color: #f90;
text-shadow: 0 5px 6px #FF990088
}
.vip-original-price {
position: relative;
font-size: 1.3rem;
margin: 8px auto 0
}
.vip-original-price s {
padding-right: 10px;
color: #b7b7b7
}
.vip-original-price span {
color: #fff;
font-size: 11px;
padding: 2px 8px;
border-radius: 13px;
background-image: -webkit-linear-gradient(left,#fd5894,#e08833)
}
p.vip-home-price {
position: relative;
font-size: 2rem;
font-weight: 700;
margin: 8px auto 18px
}
p.vip-home-price i {
font-size: 16px
}
p.vip-bt {
color: #fff;
margin: 10px auto 0;
padding: 13px 30px;
border-radius: 26px
}
p.vip-bt>span {
font-size: 1.1rem
}
.vip-block-item:nth-child(1) .vip-bt {
background-image: -webkit-linear-gradient(left,#e25a31,#ff8383)
}
.vip-block-item:nth-child(2) .vip-bt {
background-image: -webkit-linear-gradient(left,#00a5a5,#5bc7f1)
}
.vip-block-item:nth-child(3) .vip-bt {
background-image: -webkit-linear-gradient(left,#c56b13,#f90)
}
.cont_login .vip-bt {
background-image: -webkit-linear-gradient(left,#fd5894,#e08833)
}
.vip-block-item:nth-child(n) button {
background: none!important;
border: none!important;
border-radius: none!important
}
.vip-block-item:nth-child(n) button:hover p {
box-shadow: 0 10px 20px rgba(245,47,62,.4);
-webkit-transform: translateY(-3px);
-moz-transform: translateY(-3px);
-ms-transform: translateY(-3px);
transform: translateY(-3px);
background-color: #f52f3e;
background-repeat: repeat-y;
background-image: -moz-linear-gradient(left,#f52f3e,#ff4c22);
background-image: -webkit-linear-gradient(left,#f52f3e,#ff4c22);
background-image: -o-linear-gradient(left,#f52f3e,#ff4c22);
background-image: linear-gradient(left,#f52f3e,#ff4c22)
}
.vip-faq {
box-shadow: 0 0 2rem rgba(0,0,0,.1);
border-radius: 13px
}
.vip-container {
box-sizing: content-box;
max-width: 1200px;
margin-right: auto;
margin-left: auto;
padding-right: 15px;
padding-left: 15px
}
.mem-top-bar {
margin: 3vh 0
}
.mem-top-bar ul {
list-style: none;
display: flex
}
.mem-top-bar li {
width=33%;box-shadow: 0 0 2rem rgba(0,0,0,.1);
margin-right: 2%;
background: #fff;
display: flex;
padding: 28px 23px 28px 28px;
width: 33.3333%;
border-radius: 4px;
transition: all .2s
}
.mem-top-bar li:hover {
transform: translateY(8px)
}
.mem-top-bar li svg {
width: 48px;
height: 48px;
margin-left: 18px;
margin-right: 18px;
}
.mem-top-bar li h2 {
font-size: 1.2rem;
letter-spacing: 1px;
margin-bottom: 3px;
font-weight: 700
}
.mem-top-bar li p {
font-size: .9rem;
color: #888
}
@media screen and (max-width:768px) {
.module-line {
margin: 1vh 0 1vh
}
.mem-top-bar {
margin-top: 0
}
.mem-top-bar li {
float: left;
display: block;
padding: 10px;
margin: 3% 0;
width: 32%;
text-align: center
}
.mem-top-bar li:hover {
transform: translateY(0)
}
.mem-top-bar li:nth-child(2) {
margin: 3% 2%
}
.mem-top-bar li img {
width: 43px;
height: 43px;
margin: 0
}
.mem-top-bar li h2 {
font-size: 1.1rem;
margin: 10px 0 5px
}
.mem-top-bar li p {
font-size: .8rem
}
.vip-block-wrapper .vip-block-item {
float: left;
width: 100%;
padding: 3vh
}
.vip-block-wrapper {
display: block
}
}
.vipbanner {
background-color: #03bebe;
background-image: radial-gradient(108% 100% at 100% 120%,#009eb9,rgba(230,0,150,0));
position: relative
}
.vipbanner>p {
position: absolute;
bottom: 4%;
left: 8%;
color: #fff
}
.cemitlogo {
width: 33%;
padding-top: 18px;
margin: 0 auto 13%
}
.cemitvip {
text-align: left;
color: #fff;
font-weight: 700;
font-size: 1.5rem;
padding: 0 8% 8%
}
.cemitvip>p {
margin: 10px 0
}
.waves-inner .btnbg-0 {
background-color: #fe5f84
}
.waves-inner .btnbg-1 {
background-color: #5bc7f1
}
.waves-inner .btnbg-2 {
background-color: #ff9900
}
.waves-inner .btnbg-3 {
background-color: #f90
}
/*VIP美化结束*/