/*
作者:D.Young
主页：https://blog.5iux.cn/
github：https://github.com/5iux/5iux.github.io
日期：2020-09-24
版权所有，请勿删除
*/

:root {
    --text-primary: #2d3748; /* 亮色模式文字：黑色 */
    --bg-primary: #f4f8fb;   /* 亮色模式背景 */
    --card-bg: rgba(255, 255, 255, 0.85); /* 亮色模式磨砂白色 */
    --card-border: rgba(200, 200, 200, 0.3); /* 亮色模式边框：浅灰半透明 */
    --card-shadow: 0 8px 32px rgba(31, 38, 135, 0.1);
    --navbar-bg: rgba(255, 255, 255, 0.9); /* 亮色模式顶栏磨砂白色 */
    --nav-text-color: #2d3748; /* 亮色模式导航文字黑色 */
    --hover-bg: rgba(200, 200, 200, 0.5); /* 亮色模式悬停浅灰半透明 */
    --icon-bg: rgba(200, 200, 200, 0.5); /* 亮色模式图标背景：浅灰半透明 */
    --icon-fill: #333333; /* 亮色模式图标填充：深灰 */
}

@media (prefers-color-scheme: dark) {
    :root {
        --text-primary: #e2e8f0; /* 暗黑模式文字：白色 */
        --bg-primary: #1a1a1a;   /* 暗黑模式背景 */
        --card-bg: rgba(0, 0, 0, 0.8); /* 暗黑模式磨砂黑色 */
        --card-border: rgba(150, 150, 150, 0.3); /* 暗黑模式边框：深灰半透明 */
        --card-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
        --navbar-bg: rgba(0, 0, 0, 0.85); /* 暗黑模式顶栏磨砂黑色 */
        --nav-text-color: #e2e8f0; /* 暗黑模式导航文字白色 */
        --hover-bg: rgba(100, 100, 100, 0.5); /* 暗黑模式悬停深灰半透明 */
        --icon-bg: rgba(100, 100, 100, 0.5); /* 暗黑模式图标背景：深灰半透明 */
        --icon-fill: #cccccc; /* 暗黑模式图标填充：浅灰 */
    }
}

body {
    font-size: 14px;
    background: var(--bg-primary);
    color: var(--text-primary);
    transition: all 0.3s ease;
    overflow-x: hidden;
}

a {
    text-decoration: none;
}

a:hover {
    text-decoration: none;
}

svg.icon {
    width: 14px;
    height: 14px;
    margin: 0 5px 0 8px;
    vertical-align: -0.15em;
    fill: var(--icon-fill);
    background: var(--icon-bg);
    border-radius: 4px;
    padding: 2px;
    overflow: hidden;
    transition: all 0.3s ease;
}

/* 磨砂玻璃容器 */
.mylist {
    list-style: none;
    padding: 10px 20px;
    position: relative;
    z-index: 1000;
    margin: 20px 0;
    background: var(--card-bg);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border: 1px solid var(--card-border);
    border-radius: 15px;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
}

.mylist a,
.mylist span {
    color: var(--text-primary) !important;
}

.mylist .icon {
    color: var(--icon-fill);
    background: var(--icon-bg);
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.1));
}

.mylist li.col-3 {
    width: 100px;
    transition: all 0.3s ease;
    font-size: 14px;
    overflow: hidden;
    padding: 10px 0;
    border-radius: 10px;
}

.mylist li.col-3 svg {
    display: block;
    width: 45px;
    height: 45px;
    padding: 8px;
    background: var(--icon-bg);
    border: 1px solid var(--card-border);
    border-radius: 10px;
    margin: 0 auto;
    fill: var(--icon-fill);
}

.mylist li.col-3:hover {
    background: var(--hover-bg);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.mylist li.col-3 span {
    width: 100%;
    display: block;
    height: 26px;
    line-height: 26px;
    text-align: center;
    font-size: 13px;
}

.mylist li.title {
    width: 100%;
    min-width: auto;
    margin: 0;
    height: 35px;
    font-size: 16px;
    line-height: 33px;
    padding: 0 20px 0 10px;
    border-bottom: 1px solid var(--card-border);
    margin-bottom: 10px;
}

/* 搜索框 - 保持用户提供的原始样式，仅调整颜色和磨砂效果 */
#search {
    width: 100%;
    margin: 0;
    padding: 0 0 10px;
    position: relative;
    z-index: 2000;
    border-radius: 5px;
}

#search form {
    position: relative;
}

#search-text {
    width: 100%;
    height: 50px;
    line-height: 50px;
    text-indent: 10px;
    font-size: 16px;
    border-radius: 5px;
    background: var(--card-bg);
    backdrop-filter: blur(8px) saturate(180%);
    -webkit-backdrop-filter: blur(8px) saturate(180%);
    border: none;
    box-shadow: 0 0.5rem 0.625rem #d4d4d44d;
    color: var(--text-primary);
    transition: 0.3s all linear;
}

#search-text:focus {
    background: var(--card-bg);
    box-shadow: 0 0px 24px 0 rgba(50, 50, 50, 0.08);
    border-color: transparent;
}

#search button {
    position: absolute;
    top: 0;
    right: 0;
    background: none;
    border: 0;
    border-radius: 20px;
    width: 60px;
    height: 36px;
    margin: 7px 0 0;
    line-height: 36px;
    border-radius: 3px;
    outline: none;
}

#search button:hover {
    cursor: pointer;
}

#search button i {
    color: var(--icon-fill);
    font-size: 18px;
}

#search button svg {
    fill: var(--icon-fill);
}

.search-group {
    display: none;
    padding-left: 75px;
}

.s-current .search-type {
    padding-left: 0;
    display: block;
}

.s-current {
    display: block;
}

#search-list {
    position: relative;
}

.s-type {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 13;
    width: 75px;
}

.s-type:hover {
    height: auto;
}

.s-type>span {
    display: block;
    height: 31px;
    width: 75px;
}

.s-type-list {
    display: none;
    position: absolute;
    top: 31px;
    padding: 9pt 0;
    width: 70px;
    background: var(--card-bg);
    backdrop-filter: blur(8px) saturate(180%);
    -webkit-backdrop-filter: blur(8px) saturate(180%);
    border-radius: 5px;
    box-shadow: 0 9px 20px rgba(0, 0, 0, 0.16);
}

.s-type-list:before {
    position: absolute;
    top: -1pc;
    left: 20px;
    content: '';
    display: block;
    width: 0;
    height: 0;
    border: 10px solid transparent;
    border-bottom-color: var(--card-bg);
}

.s-type-list label {
    display: block;
    font-size: 15px;
    text-align: center;
    font-weight: normal;
    margin-bottom: 0;
    padding: 2px 0;
    cursor: pointer;
    color: var(--text-primary);
    transition: 0.3s;
}

.s-type-list label:hover {
    background: var(--hover-bg);
}

.s-type-list .tile-lg {
    color: var(--text-primary);
    width: 3pc;
    height: 3pc;
    font-size: 1.25rem;
    line-height: 3rem;
    border-radius: 0.3rem;
    display: block;
    margin: auto;
}

.s-type:hover .s-type-list {
    display: block;
}

.type-text {
    position: absolute;
    left: 0;
    width: 75px;
    padding-left: 9pt;
    font-size: 1pc;
    line-height: 31px;
    color: var(--text-primary);
}

.search-type {
    white-space: nowrap;
    margin: 0;
}

.search-type label {
    margin: 0;
}

.search-type li {
    display: inline-block;
    background: var(--icon-bg);
    border-radius: 3px 3px 0 0;
}

.search-type li label {
    display: inline-block;
    padding: 0 11px;
    font-size: 14px;
    line-height: 31px;
    border-radius: 3px 3px 0 0;
    cursor: pointer;
    color: var(--text-primary);
}

.search-type input:checked+label,
.search-type input:hover+label {
    background: var(--card-bg);
    backdrop-filter: blur(8px) saturate(180%);
    -webkit-backdrop-filter: blur(8px) saturate(180%);
}

#search-text::-webkit-input-placeholder {
    color: #bbb;
}

#word {
    position: absolute;
    list-style: none;
    top: 55px;
    left: 0px;
    width: 100%;
    background: var(--card-bg);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border-radius: 10px;
    z-index: 20000;
    padding: 15px 10px;
    box-shadow: 0 0 10px #aaa;
}

#word li {
    height: 35px;
    padding: 0 5px;
    text-indent: 30px;
    background: url(sou.svg) no-repeat 5px;
    background-size: 20px;
    line-height: 35px;
    cursor: pointer;
    font-size: 16px;
    border-radius: 8px;
}

#word li:hover {
    background-color: var(--hover-bg);
}

.banner-video {
    position: fixed;
    width: 100%;
    overflow: hidden;
    left: 0;
    top: 0;
    max-height: 750px;
    z-index: -1;
}

.banner-video video {
    width: 2048px;
    float: left;
    filter: brightness(1.2);
}

.bottom-cover {
    width: 100%;
    height: 50%;
    position: absolute;
    bottom: 0px;
    z-index: 10;
    background-image: linear-gradient(rgba(255, 255, 255, 0) 0%, var(--bg-primary) 100%);
}

@media screen and (min-width:1200px) {
    .mylist li.col-3 {
        min-width: 132px;
    }
}

@media screen and (min-width:992px) and (max-width:1200px) {
    .mylist li.col-3 {
        min-width: 110px;
    }
}

@media screen and (max-width: 992px) {
    #he-plugin-simple {
        display: none !important;
    }
    .banner-video video {
        width: 1200px;
    }
    div#navbarsExample05 {
        background: var(--navbar-bg);
        padding: 10px 30px;
        border-radius: 20px;
    }
}

@media screen and (max-width:767px) {
    .banner-video video {
        width: 960px;
    }
    .search-type {
        overflow: hidden;
    }
    .mylist {
        border-radius: 8px;
    }
    .mylist li.col-3 {
        margin: 5px 0 5px;
    }
    .mylist li.col-3 svg {
        width: 30px;
        height: 30px;
        padding: 5px;
        border-radius: 5px;
    }
    .mylist li.col-3 span {
        font-size: 12px;
    }
}

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
    border-radius: 4px;
}

::-webkit-scrollbar-track {
    background: #eee;
    border-radius: 0px;
}

::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 0px;
}

::-webkit-scrollbar-thumb:hover {
    background: #ccc;
}

::-webkit-scrollbar-corner {
    background: #ddd;
}