html {
    background-color: #C8E1E3;
    overflow: hidden;
}

body {
    display: flex;
    margin: 0;
    height: 100vh;
}

a {
    text-decoration: none;
    cursor: pointer;
}

.card {
    width: 320px;
    margin: auto;
    border-radius: 6px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: #999 0px 0px 6px;
}

.header {
    display: flex;
    height: 320px;
    background: #B7D8AD center url('./index-banner.jpg');
    overflow: hidden;
    transition: height .3s;
}

.logo {
    position: relative;
    width: 128px;
    height: 128px;
    margin: auto;
    border-radius: 50%;
    transform: translateY(0);
    transition: transform .3s;
}

.body {
    display: flex;
    height: 130px;
    margin: 20px 10px 20px 15px;
    flex-direction: column;
    transition: height .3s;
}

.search {
    display: flex;
    height: 0;
    overflow: hidden;
    margin: 0 5px 0 0;
    transition: height .3s;
}

.search-hd {
    width: 30px;
    height: 30px;
    background: no-repeat center url('https://imap.24-8.cn/static/map/icon/search.png');
    background-size: 24px 24px;
}

.search-input {
    flex: 1;
    height: 30px;
    margin: 0 6px;
    border: none;
    border-bottom: solid 1px #eee;
    border-radius: 0;
    outline: none;
}

.search-ft {
    width: 30px;
    height: 30px;
    background: no-repeat center url('https://imap.24-8.cn/static/map/icon/close.png');
    background-size: 24px 24px;
}

.nav {
    flex: 1;
    font-size: 13px;
    line-height: 18px;
    overflow: hidden;
}

.btn {
    display: inline-block;
    margin: 6px;
    border-radius: 4px;
    padding: 6px 12px;
    color: #548836;
    background-color: #F0F0F0;
}

.btn.about{
    background: url('./map/icon/about.png') no-repeat #F0F0F0;
    background-size: 16px 16px;
    background-position: 8px 7px;
    padding-left: 27px;
}

.card[data-search='true'] .header {
    height: 20px;
}

.card[data-search='true'] .logo {
    transform: translateY(-100px);
}

.card[data-search='true'] .body {
    height: 430px;
}

.card[data-search='true'] .search {
    height: 40px;
}

.card[data-search='true'] .nav {
    height: 430px;
    overflow: auto;
}