@charset "utf-8";
* {margin: 0px;padding: 0px;-webkit-box-sizing: border-box;-moz-box-sizing: border-box;-o-box-sizing: border-box;box-sizing: border-box;}
html,body {font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";line-height: 1.5;color: #3f4e55;font-size: 16px;background-color: #fff;}
ul,li {list-style: none;}
img {border: 0px;max-width: 100%;max-height: 100%;}
em,i,u,s {font-style: normal;font-weight: normal;text-decoration: none;}
a {cursor: pointer;color: #1841d2;text-decoration: none;display: inline-block;}
a:hover {color: #7431dd;}
button {cursor: pointer;border: none;background-color: inherit;}
h1,h2,h3,h4,h5,h6 {font-weight: 400;}
h1 {font-size: 1.25rem;}
h2 {font-size: 1rem;}
h3 {font-size: 0.875rem;}
h4 {font-size: 0.75rem;}
input:-webkit-autofill,
input:-webkit-autofill:focus,
input:-webkit-autofill:hover,
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0px 1000px white inset;
    box-shadow: 0 0 0px 1000px white inset;
}
.center {text-align: center;}

.container {max-width: 1280px;padding: 0 1rem;margin: auto;position: relative;}

header {
    padding: 1rem 0;
}

.search .form {
    position: relative;
    display: flex;
    align-items: center;
    border-radius: 0.75rem;
    outline: 1px solid #eceef2;
    overflow: hidden;
}
.search .form .input {display: flex;align-items: center;width: 100%;height: 40px;padding: 0 0.75rem;font-size: 0.875rem;flex: 1 1 0%;color: #3f4e55;outline: none;border: none;}
.search .form .submit {color: #f231a6;display: inline-flex;align-items: center;height: 40px;padding: 0 1rem;font-size: 0.875rem;position: relative;}
.search .form .submit .feather {
    width: 18px;
    height: 18px;
}
.search .form .submit::before {
    content: "";
    width: 1px;
    height: 24px;
    background-color: #eceef2;
    position: absolute;
    left: 0;
}

/* main */
main {}

nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    margin: 0 0 0.75rem;
    font-size: 0.875rem;
}
nav a {
    padding: 0.5rem 0.875rem;
    border: 1px solid #eceef2;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    color: #3f4e55;
}
nav a:hover,
nav .cur {
    border-color: #bdbec2;
}

.tips {
    font-size: 0.875rem;
    margin-bottom: 1rem;
    color: #62757e;
    text-align: center;
}

.grid {
    column-count: 2;
    column-gap: 1rem;
}
.grid-item {
    break-inside: avoid;
    margin-bottom: 0.75rem;
    display: flex;
    flex-direction: column;
}
.grid-item .cover {
    position: relative;
}
.grid-item .cover span {
    padding: 0.25rem 0.5rem;
    background-color: rgba(0, 0, 0, 0.5);
    position: absolute;
    color: #fff;
    font-size: 0.75rem;
    top: .5rem;
    left: .5rem;
}
.grid-item .cover img {
    width: 100%;
    height: auto;
    display: block;
}
.grid-item h3 {
    margin-top: 0.25rem;
}
.grid-item h3 a {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: 3rem;
}
.grid-item h3 em {
    color: #e01d3d;
}

.words {
    margin-top: 1rem;
    font-size: 0.875rem;
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: 1rem;
}
.words a {
    padding: 0.5rem 0.875rem;
    border: 1px solid #eceef2;
    border-radius: 1rem;
    display: inline-grid;
    align-items: center;
    grid-template-columns: auto 1fr;
    gap: 0.6rem;
    height: 50px;
    color: #3f4e55;
}
.words a .feather {
    width: 18px;
    height: 18px;
    color: #a1b2ba;
}
.words a:hover {
    border-color: #bdbec2;
}
.words span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* footer */
footer {
    border-top: 1px solid #eceef2;
    margin-top: 1rem;
    padding: 1rem 0;
}

.page {
    text-align: center;
    font-size: 0.875rem;
}
.page span,
.page a {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 1rem;
}
.page a:hover {
    background-color: #eceef2;
}

/* home */
.home {
    position: relative;
    height: 100vh;
}
.home-box {
    position: relative;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 768px;
    padding: 1rem;
}
.home h1 {
    text-align: center;
    margin-bottom: 1rem;
}
.home .search .form {
    box-shadow: 0px 4px 8px -1px rgba(0, 0, 0, .1), 0px 1px 0px 0px rgba(0, 0, 0, .05);
}
.home .search .form .input {
    height: 52px;
    padding: 0 1rem;
}
.home .search .form .submit {
    height: 52px;
    padding: 0 1.5rem;
}

/* logo */
.logo-box {
    text-align: center;
    margin-bottom: 1rem;
}
.logo {
    display: inline-flex;
    align-items: center;
    color: #3f4e55;
}
.logo-icon {
    width: 2.5rem;
    height: 2.5rem;
    background: url(/static/img/logo.png) no-repeat center center;
    background-size: cover;
    margin-right: .3rem;
}

@media (min-width: 768px) {
    header .container {
        max-width: 768px;
    }
    .grid {
        column-count: 4;
    }
    .words {
        grid-template-columns: repeat(3,1fr);
    }
}

@media (min-width: 1280px) {
    .grid {
        column-count: 5;
    }
    .words {
        grid-template-columns: repeat(4,1fr);
    }
}