Files
ClassContent/历届学生/张洋铭/小米商城/css/index.css
2024-09-27 02:06:13 +08:00

450 lines
7.3 KiB
CSS

.header {
height: 40px;
background: #333;
color: #b0b0b0;
}
.header a {
color: #b0b0b0;
font-size: 12px;
}
.header span {
margin: 0 5px;
font-size: 12px;
color: #424242;
}
.header li:hover a {
color: #fff;
}
.header .container {
height: 100%;
display: flex;
justify-content: space-between;
align-items: center;
}
.header-left,
.header-right{
display: flex;
align-items: center;
}
.car {
width: 120px;
height: 40px;
color: #b0b0b0;
text-align: center;
line-height: 40px;
background: #424242;
margin-left: 20px;
position: relative;
}
.menu {
display: none;
width: 320px;
height: 100px;
background: #FFF;
position: absolute;
left: -200px;
top: 40px;
text-align: center;
line-height: 100px;
color: #424242;
box-shadow: 0 2px 10px rgba(0,0,0,.15);
}
.car:hover{
color: #ff6700;
background: #fff;
}
.car:hover .menu {
display: block;
}
.car img {
width: 20px;
height: 20px;
margin-right: 4px;
vertical-align: sub;
}
.type {
display: flex;
justify-content: space-between;
height: 100px;
align-items: center;
}
.logo {
width: 55px;
height: 55px;
background: #ff6700;
position: relative;
overflow: hidden;
}
.logo:hover:after,
.logo:hover:before{
transform: translateX(55px);
}
.logo::before,
.logo::after {
content: '';
width: 55px;
height: 55px;
position: absolute;
transition: all 0.4s;
}
.logo::before {
background: url("../img/mi-logo.png") no-repeat 50% 50%;
}
.logo::after {
background: url("../img/mi-home.png") no-repeat 50% 50%;
margin-left: -55px;
}
.menus {
display: flex;
}
.menus li {
padding: 0 10px;
font-size: 16px;
}
.menus li a {
color: #333;
}
.search {
width: 296px;
height: 50px;
position: relative;
border: 1px solid #e0e0e0;
}
.search input {
width: 233px;
height: 48px;
padding: 0 9px;
font-size: 14px;
box-sizing: border-box;
border: none;
border-right: 1px solid #e0e0e0;
}
.search i {
width: 52px;
height: 50px;
color: #616161;
background: #fff;
text-align: center;
line-height: 50px;
display: inline-block;
}
.search-list {
position: absolute;
top: 50%;
margin-top: -10.5px;
left: 47px;
}
.search-list span {
display: inline-block;
padding: 0 5px;
text-align: center;
background: #eee;
color: #757575;
font-size: 12px;
margin-right: 5px;
}
.search input:focus+.search-list{
display: none;
}
.banner {
padding-bottom: 26px;
}
.banner_menu {
height: 460px;
}
.banner_menu_left {
width: 234px;
height: 100%;
background: rgba(105,101,101,.6);
color: #fff;
padding: 20px 0px 20px 30px;
box-sizing: border-box;
}
.banner_menu_left ul li {
display: flex;
justify-content: space-between;
height: 42px;
align-items: center;
font-size: 14px;
position: relative;
padding-right: 20px;
}
.banner_menu_left ul li:hover .drop_menu {
display: inline-block;
}
.drop_menu {
display: none;
position: absolute;
width: 992px;
height: 460px;
background: #fff;
top: -20px;
left: 204px;
padding: 21px 26px;
box-sizing: border-box;
box-shadow: 0 8px 16px rgba(0,0,0,.18);
}
.drop_menu_item {
width: 235px;
height: 76px;
float: left;
}
.drop_menu_item img {
width: 40px;
height: 40px;
margin-right: 12px;
vertical-align: middle;
}
.drop_menu_item span {
color: #333;
font-size: 14px;
}
.banner_menu_right {
width: 992px;
height: 100%;
background: url("../img/banner_01.jpg");
background-position: center center;
background-size: cover;
}
.banner_item {
margin-top: 14px;
height: 170px;
}
.banner_item ul li {
width: 316px;
height: 170px;
float: left;
margin-right: 15px;
display: flex;
flex-wrap: wrap;
}
.banner_item ul li:last-child{
margin-right: 0;
}
.banner_item ul li img {
width: 100%;
height: 100%;
}
.first {
width: 234px !important;
margin-right: 14px !important;
padding: 3px;
box-sizing: border-box;
background: #5f5750;
}
.first_item {
width: 33%;
text-align: center;
height: 50%;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
border: 1px solid #665e57;
box-sizing: border-box;
}
.first_item img {
width: 24px !important;
height: 24px !important;
margin-bottom: 4px;
}
.first_item p {
font-size: 12px;
color: #fff;
}
.list {
background: #f5f5f5;
padding: 26px 0px;
overflow: hidden;
}
.adb img {
width: 100%;
}
.phone_title{
display: flex;
justify-content: space-between;
align-items: center;
}
.phone_title h2 {
font-size: 22px;
font-weight: 200;
line-height: 58px;
color: #333;
}
.phone_title span {
font-size: 16px;
color: #424242;
}
.phone_title i {
color: #b0b0b0;
}
.phone_list {
margin-bottom: 30px;
overflow: hidden;
}
.phone_list_left {
width: 234px;
}
.phone_list_right {
width: 978px;
margin-left: 14px;
}
.phone_list_right li {
height: 260px;
width: 234px;
padding: 20px 0;
margin-left: 10px;
margin-bottom: 10px;
background: #fff;
float: left;
text-align: center;
}
.phone_list_right img {
width: 160px;
}
.phone_list_right .title {
font-size: 14px;
color: #333;
font-weight: 400;
}
.phone_list_right .info {
font-size: 12px;
margin: 0 10px 10px;
color: #b0b0b0;
}
.phone_list_right .price {
color: #ff6700;
font-size: 14px;
}
.footer_1 {
padding: 27px 0;
height: 25px;
border-bottom: 1px solid #e0e0e0;
}
.footer_1 li {
float: left;
width: 19.8%;
height: 25px;
font-size: 16px;
line-height: 25px;
text-align: center;
border-right: 1px solid #e0e0e0;
}
.footer_1 li:last-child {
border-right: none;
}
.footer_1 li img {
width: 24px;
vertical-align: middle;
margin-right: 9px;
}
.footer_1 li span {
}
.footer_2 {
padding: 40px 0;
overflow: hidden;
}
.footer_2_left {
float: left;
width: 160px;
}
.footer_2_left p {
color: #757575;
font-size: 12px;
margin-top: 10px;
}
.footer_2_left .first_title {
margin: -1px 0 26px;
font-size: 14px;
color: #424242;
}
.footer_2_rigth{
float: right;
width: 251px;
height: 112px;
border-left: 1px solid #e0e0e0;
text-align: center;
color: #616161;
}
.footer_2_rigth h2 {
font-size: 22px;
color: #ff6700;
margin-bottom: 5px;
}
.footer_2_rigth p {
font-size: 12px;
}
.kef {
border: 1px solid #ff6700;
background: #fff;
color: #ff6700;
text-align: center;
width: 118px;
height: 28px;
margin: 0 auto;
line-height: 28px;
margin-top: 16px;
}
.footer_3 {
padding: 30px 0;
font-size: 12px;
background: #fafafa;
}
.footer_3 .logos {
width: 57px;
height: 57px;
margin-right: 3px;
}
.footer_3_right {
}
.footer_3_right p{
color: #757575;
font-size: 12px;
}
.in {
margin-top: 3px;
color: #b0b0b0 !important;
}
.co {
margin-top: 4px;
}
.co img {
height: 28px;
width: auto !important;
}
.footer_4 {
text-align: center;
}
.footer_4 img {
width: 267px;
height: 19px;
margin-top: 30px;
margin-bottom: 30px;
}