/* #####################################
作者:Rebecca
联系:wyyklh123@126.com
日期:2020-06-20
season的菜单样式
####################################### */

/*01.结构化框架容器的样式*/
body {
    text-align: center;
}

header {
    font-family:
        STKaiti, "华文行楷", Microsoft YaHei, "微软雅黑", sans-serif;
}

header,
main {
    margin-top: 80px;
    margin-bottom: 20px;
    width: 80%;
}

footer {
    border-top: 1px solid #8b8989;
    margin-top: auto;
    text-align: center;
    padding: 20px;
    font-size: 100%;
    font-family: STKaiti, "华文行楷", Microsoft YaHei, "微软雅黑", sans-serif;
}

/*02.Block elements的样式*/
img {
    max-width: 100%;
    padding: 10px
}

/*03.Inline Elements 的样式*/
header a {
    color: #7ec0ee;
}

footer a {
    color: black;
}

/*04. 网页flex分栏排版*/
#flex {
    display: flex;
    flex-flow: row nowrap;
}

header {
    flex: 5;
}

main {
    flex: 8;
}

/*05. 自适应样式*/

/* 炒鸡小屏手机 (phones, 600px and down) */

@media only screen and (max-width: 600px) {
    #flex {
        display: block;
    }

    header,
    main {
        width: 100%;
        margin-top: 0px;
    }

    /* 中等手机以及竖屏平板 (portrait tablets and large phones, 600px and up) */
    @media only screen and (min-width: 600px) {
        #flex {
            display: block;
        }

        header,
        main {
            margin-top: 0px;
        }

        /* 横屏平板 (landscape tablets, 768px and up) */

        @media only screen and (min-width: 768px) {}

        /* 中小型笔记本电脑及台式机 (laptops/desktops, 992px and up) */

        @media only screen and (min-width: 900px) {
            ul#food li {
                flex-basis: calc(100% / 3 - 60px);
            }
        }

        /* 宽屏笔记本及台式机 (large laptops and desktops, 1200px and up) */

        @media only screen and (min-width: 1200px) {}
