
* {
    outline: none;
    box-sizing: border-box;
}

html,
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
    padding: 0;
    margin: 0;
    width: 100%;
    min-height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    font-size: 12px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    background: white;
}

.main_container {
    /* width: 100%; */
    min-width: 300px;            
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.logo {
    margin-top: 50px;
    display: flex;
    flex-direction: row;
    align-items: center;
}

.logo img {
    border: none;
    width: 200px;
}

.logo h1 {
    font-size: 40px;
    font-weight: 300;
}

#srcs {
    overflow: hidden;
    width: 100%;
    height: 70px;
    margin-top: 30px;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: center;
    flex-wrap: wrap;
}

.engin_button {
    cursor: pointer;
    padding: 4px;
    text-align: center;
    margin: 5px;
    padding: 0 6px;
    border-radius: 3px;
    height: 26px;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    background: #eee;
    transition: all .5s ease 0s;
}

.engin_button:hover {
    box-shadow: 0 0 6px #ffffff
}

.btn_normal {
    box-shadow: 0 0 3px #888;
}

.btn_active {
    background-color: rgb(236, 236, 236);
    box-shadow: none;
    font-weight: bold;
}

.btn_active:hover {
    box-shadow: none;
}

.btn_ico {
    width: 16px;
    height: 16px;
}

.btn_name {
    margin-left: 4px;
    white-space: nowrap;
}

.search_bar {
    width: 100%;
    min-width: 600px;
    max-width: 680px;
    margin-top: 50px;
    padding: 18px 22px 14px;
    background: #ffffff;
    border: 1px solid #e8e8e8;
    border-radius: 28px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: all .25s ease;
    position: relative;
}

.search_bar:hover {
    box-shadow: 0 16px 48px rgba(0,0,0,0.14);
    background: #ffffff;
    border-color: #e0e0e0;
}

.search_box {
    width: 100%;
    height: 30px;
    line-height: 30px;
    font-size: 14px;
    font-family: inherit;
    border: none;
    background: transparent;
    padding: 0;
    margin: 0;
    color: #333;
    outline: none;
}

.search_button {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    padding: 8px;
    border-radius: 50%;
    cursor: pointer;
    background: #f2f2f2;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #777;
    z-index: 2;
}

.search_button:hover {
    background: #e8e8e8;
    color: #555;
}

.search_button_icon {
    width: 22px;
    height: 22px;
}

.type_tabs {
    display: flex;
    width: 100%;
    background: var(--quark-style-gray-5-color, rgba(34, 34, 34, 0.03));
    border-radius: 10px;
    padding: 4px 48px 4px 4px;
    gap: 4px;
    position: relative;
}

.type_tab {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 10px;
    border-radius: 8px;
    cursor: pointer;
    color: #666;
    font-size: 14px;
    transition: all .2s ease;
    user-select: none;
    white-space: nowrap;
}

.type_tab_icon {
    width: 14px;
    height: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.type_tab_icon svg {
    width: 100%;
    height: 100%;
}

.type_tab:hover {
    color: #333;
}

.type_tab.active {
    background: #ffffff;
    color: #222;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    font-weight: 500;
}


.suggestions {
    width: 100%;
    background-color: #fff;
    list-style-type: none;
    padding: 6px 56px 6px 0;
    margin: 0;
    border-top: 1px solid #f0f0f0;
    border-radius: 0 0 18px 18px;
    overflow: hidden;
}

.suggestions li {
    font-size: 16px;
    font-family: inherit;
    padding: 5px 1px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
}

.suggestions li::before {
    content: "";
    display: inline-block;
    width: 14px;
    height: 14px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'%3E%3C/circle%3E%3Cpath d='m21 21-4.35-4.35'%3E%3C/path%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    flex-shrink: 0;
}

.suggestions li:hover {
    background-color: #f7f7f7;
}

.feature_cards {
    max-width: 960px;
    margin-top: 100px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.feature_card {
    background: #ffffff;
    border: 1px solid #f0f0f0;
    border-radius: 16px;
    overflow: hidden;
    transition: all .25s ease;
    cursor: pointer;
}

.feature_card:hover {
    box-shadow: 0 12px 36px rgba(0,0,0,0.10);
    border-color: #e8e8e8;
}

.feature_image {
    width:240px;
	height:90px; 
    aspect-ratio: 9 / 5;
    overflow: hidden;
}

.feature_image img {
    width: 100%;
    height: 100%;
    object-fit: fill;
    display: block;
}

.feature_title {
    padding: 8px 8px;
    font-size: 15px;
    font-weight: 500;
    color: #222;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bottom_bar {
    /* width: 100%; */
    height: 64px;
    display: contents;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    align-items: center;
}

.bottom_bar .icon {
    margin: 4px;
}

.bottom_bar .icon path {
    fill: #888;
}

.bottom_bar .icon:hover path,
.bottom_bar a:hover {
    fill: #000;
}

.bottom_bar a {
    display: block;
    text-decoration:none;
}

/* 移动端适配 */
@media screen and (max-width: 768px) {
    .main_container {
        width: 100%;
        padding: 0 12px;
        min-width: auto;
    }

    .logo {
        margin-top: 60px;
        margin-left: 0;
    }

    .logo img {
        width: 200px;
    }

    .search_bar {
        width: 100%;
        min-width: auto;
        max-width: 560px;
        margin-top: 40px;
        padding: 14px 16px 12px;
        border-radius: 22px;
        gap: 8px;
    }

    .search_box {
        height: 40px;
        line-height: 40px;
        font-size: 16px;
    }

    .search_button {
        right: 3px;
        width: 36px;
        height: 36px;
        padding: 7px;
    }

    .search_button_icon {
        width: 20px;
        height: 20px;
    }

    .type_tabs {
        border-radius: 8px;
        padding: 3px 44px 3px 3px;
        gap: 3px;
    }

    .type_tab {
        padding: 6px 12px;
        font-size: 12px;
        border-radius: 6px;
    }

    .type_tab_icon {
        width: 12px;
        height: 12px;
    }

    #srcs {
        height: auto;
        min-height: 70px;
        margin-top: 20px;
        padding: 0 10px;
    }

    .engin_button {
        height: 32px;
        margin: 4px;
    }

    .btn_name {
        font-size: 14px;
    }

    .suggestions {
        border-radius: 0 0 14px 14px;
        padding: 4px 52px 4px 0;
    }

    .suggestions li {
        font-size: 15px;
        padding: 5px 1px;
    }

    .bottom_bar {
        margin-top: 20px;
        text-align: center;
    }

    .feature_cards {
        min-width: auto;
        max-width: 560px;
        margin-top: 50px;
        grid-template-columns: 1fr;
        gap: 18px;
        padding: 0 12px;
    }

    .feature_card {
        border-radius: 14px;
    }

    .feature_title {
        padding: 8px 8px;
        font-size: 14px;
    }

    .bottom_bar a {
        font-size: 1.4em !important;
    }
}
