﻿body {
    /*弹性布局 让页面元素垂直+水平居中*/
    display: block;
    /*    justify-content: center;
    align-items: start;*/
    /*让页面始终占浏览器可视区域总高度*/
    height: 100vh;
    /*背景渐变色*/
    background: linear-gradient(#141e30,#243b55);
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.login {
    /*弹性布局 让子元素称为弹性项目*/
    /*    display: flex;*/
    /*让弹性项目垂直排列  原理是改变弹性盒子的主轴方向  
  父元素就是弹性盒子  现在改变后的主轴方向是向下了*/
    /*    flex-direction: column;*/
    /*让弹性项目在交叉轴方向水平居中  现在主轴的方向是向下  
  交叉轴的方向是与主轴垂直 交叉轴的方向是向右*/
    /*align-items:center;*/
    padding: 20px;
}

h2 {
    color: #fff;
    margin-bottom: 30px;
    text-align: center;
}

input[type=button] {
    /*overflow: hidden;*/
    position: absolute;
    padding: 10px 20px;
    color: #000000;
    /*取消a表现原有的下划线*/
    text-decoration: none;
    /*同样加个过渡*/
    transition: all 0.5s;
    display: block;
    margin: 10px;
    bottom: 0;
    right: 0;
}

@media(any-hover:hover) {
    input[type=button]:hover {
        color: #fff;
        border-radius: 5px;
        background-color: #03e9f4;
        box-shadow: 0 0 5px #03e9f4,0 0 25px #03e9f4,0 0 50px #03e9f4,0 0 100px #03e9f4;
    }
}

.tableDetail {
    color: white;
}

.goods-list {
    width: 100%;
    max-width: 950px;
    margin: auto;
    display: flex;
    flex-direction: column;
}

    .goods-list ul {
        padding: 10px;
        margin: 0;
    }

    .goods-list .goods-header {
        display: block;
    }

    .goods-list img {
        width: 100%;
        height: 90px;
    }

    .goods-list .goods-foot {
        margin: 10px;
    }

    .goods-list .goods-header > h6 {
        color: white;
        float: left;
        margin: 0 10px;
    }

        .goods-list .goods-header > h6 > a {
            color: #aaaaaa;
        }

    .goods-list .goods-foot > h6 {
        color: #aaaaaa;
    }

    .goods-list li {
        float: left;
        width: 45%;
        max-width: 180px;
        height: 240px;
        list-style: none;
        background-color: rgba(0, 0, 0, 0.2);
        box-shadow: 0 15px 25px rgba(0, 0, 0, 0.4);
        padding: 5px;
        margin: 10px 5px;
        transition: all 0.5s;
        position: relative;
    }

    .goods-list h3 {
        margin: 20px 20px;
    }

    .goods-list li h6, .goods-list h3, .goods-list li p {
        color: white;
    }

    .goods-list .goods-section {
        display: block;
        background-color: rgba(0, 0, 0, 0.2);
        box-shadow: 0 15px 25px rgba(0, 0, 0, 0.4);
        transition: all 0.5s;
        margin: 10px;
    }


@media screen and (min-width:950px) {
    .goods-list li {
        float: left;
        width: 45%;
        max-width: 180px;
        min-height: 240px;
        list-style: none;
        background-color: rgba(0, 0, 0, 0.2);
        box-shadow: 0 15px 25px rgba(0, 0, 0, 0.4);
        padding: 5px;
        margin: 20px 20px;
        transition: all 0.5s;
        position: relative;
    }
}
