/*公共布局*/

a,
a:hover,
a:visited {
    text-decoration: none;
}

span {
    background-color: transparent;
}

li {
    list-style: none;
}

ul {
    padding: 0 10px;
    display: inline-block;
    width: 100%;
    margin: 0 auto;
    margin: 0!important;
}


/*媒体查询*/

@media (max-width: 768px) {
    /*小屏*/
    .inputDiv {
        margin: 20px 0 0;
    }
}

@media (min-width: 768px) {
    /*大屏*/
    .inputDiv {
        margin: 20px 60px 0;
    }
}

#main {
    background-color: #1a1a2e;
    background-image: url(https://api.dujin.org/bing/1920.php);
    background-repeat: no-repeat;
    background-position: center center;
    background-attachment: fixed;
    background-size: cover;
    margin: 0;
}

/* 搜索区域 - 毛玻璃底板 */
.search-box {
    margin: 20px 70px 0 70px;
    position: relative;
    z-index: 1;
    background: rgba(255, 255, 255, 0.75);
    border-radius: 20px;
    padding: 20px 30px 15px;
    box-shadow: 0 4px 30px rgba(0,0,0,0.08);
}
@supports (backdrop-filter: blur(1px)) {
    .search-box {
        background: rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
    }
}
@media (max-width: 768px) {
    .search-box {
        margin: 10px;
        padding: 15px 12px 10px;
        border-radius: 14px;
    }
}

#menu::-webkit-scrollbar {
    /*滚动条整体样式*/
    width: 10px;
    /*高宽分别对应横竖滚动条的尺寸*/
    height: 10px;
    scrollbar-arrow-color: red;
}

#menu::-webkit-scrollbar-thumb {
    /*滚动条里面小方块*/
    border-radius: 5px;
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
    background: rgba(0, 0, 0, 0.2);
    scrollbar-arrow-color: red;
}

#menu::-webkit-scrollbar-track {
    /*滚动条里面轨道*/
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
    border-radius: 0;
    background: rgba(0, 0, 0, 0.1);
}


/*搜索盒子*/

#logo {
    margin: 0 auto;
}

#logo div {
    margin: 0 auto;
    width: 300px;
}

#img {
    animation: fade-in;
    animation-duration: 0.2s;
    -webkit-animation: fade-in 0.2s;
    width: 300px;
}


/*搜索提示词*/

#searchlist {
    width: 100%;
    position: absolute;
    background-color: rgba(249, 240, 218, 0.9);
    border-radius: 5px;
    margin-top: 10px;
    display: none;
}

#searchlist ul {
    padding: 10px;
}

#searchlist ul a li {
    color: #777;
    text-align: left;
    padding: 8px 0;
    border-radius: 5px;
}

#searchlist ul a li:hover,
.activeli {
    color: lightcoral;
    background-color: #DCDCDC;
}

#searchlist ul a li span {
    -webkit-tap-highlight-color: #00000000;
    list-style: none;
    cursor: pointer;
    box-sizing: border-box;
    display: inline-block;
    width: 16px;
    height: 16px;
    font-size: 16px;
    line-height: 16px;
    text-align: center;
    background: lightblue;
    margin-right: 10px;
    border-radius: 10px;
    color: #999;
}


/*标签、导航选择器*/

.Select {
    margin: 18px auto 5px;
    color: #00868B;
    font-weight: bold;
    text-align: center;
    cursor: pointer;
    width: 50%;
    font-size: 16px;
}


/*搜索框*/

.inputDiv {
    padding: 0;
    z-index: 0;
    animation: fade-in;
    animation-duration: 0.5s;
    -webkit-animation: fade-in 0.5s;
    position: relative;
    border-radius: 0px;
}

.inputDiv input,
.inputDiv button {
    border: none;
    outline: none;
    border-radius: 3px;
}

.inputDiv input {
    width: 100%;
    height: 42px;
    background: #F9F0DA;
    color: #575757;
    padding-left: 15px;
    transition: box-shadow 0.2s;
    -moz-transition: box-shadow 0.2s;
    /* Firefox */
    -webkit-transition: box-shadow 0.2s;
    /* Safari and Chrome */
    -o-transition: box-shadow 0.2s;
    /* Opera */
}

.inputDiv input:focus {
    box-shadow: 0px 0px 0px 4px #F9F0DA;
}

.inputDiv button {
    height: 26px;
    width: 26px;
    padding: 2px;
    position: absolute;
    top: 8px;
    right: 8px;
    background: #00868B;
    cursor: pointer;
}

.inputDiv button:before {
    content: "\f105";
    font-family: FontAwesome;
    color: #F9F0DA;
    font-size: 20px;
    font-weight: bold;
}


/*侧边栏按钮*/

.slidebtn {
    border-radius: 50%;
    transition: background-color 0.2s;
}

.slidebtn:hover {
    background-color: rgba(211, 211, 211, 0.2);
}


/*标签*/

.folder {
    animation: fade-in;
    animation-duration: 1s;
    -webkit-animation: fade-in 1s;
    width: 100%;
    margin-top: 30px;
    display: block;
}

.folder ul {
    padding: 0 10px;
    display: inline-block;
    width: 100%;
    margin: 0 auto;
}

.folder-item {
    margin-bottom: 16px;
}

.folder-item-box,
.folder-item-img {
    width: 50px;
    margin: 0 auto;
    border-radius: 38%;
    transition: all .2s ease;
}

.folder-item-img:hover {
    transform: translate3d(0, -3px, 0);
    box-shadow: rgba(33, 33, 33, 0.75) 0 14px 12px -7px !important;
}

.folder-item-box p {
    font-size: 12px;
    color: #000;
    width: 100%;
    margin: 8px 0 0 0;
    text-align: center;
    word-break: keep-all;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/*导航*/

.nav {
    animation: fade-in;
    animation-duration: 1s;
    -webkit-animation: fade-in 1s;
    width: 100%;
    margin-top: 30px;
    display: none;
}
.nav ul {
    padding: 0 10px;
    display: inline-block;
    width: 100%;
    margin: 0 !important;
}

.folder-item2 {
    margin-bottom: 16px;
}

.folder-item-box2 {
    width: 50px;
    margin: 0 auto;
    text-align: center;
}

.folder-item-img2 {
    width: 50px;
    height: 50px;
    margin: 0 auto;
    border-radius: 38%;
    transition: all .2s ease;
    display: block;
}

.folder-item-img2:hover {
    transform: translate3d(0, -3px, 0);
    box-shadow: rgba(33, 33, 33, 0.75) 0 14px 12px -7px !important;
}


/*侧边栏内容*/

blockquote {
    margin: 0!important;
    font-weight: bold;
    color: black;
    cursor: pointer;
    user-select: none;
    position: relative;
    padding: 8px 30px 8px 0;
    font-size: 14px;
}
blockquote::after {
    content: '▼';
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 10px;
    transition: transform .2s;
    color: #999;
}
blockquote.collapsed::after {
    transform: translateY(-50%) rotate(-90deg);
}

.menu ul a li {
    float: left;
}

.sidenav-btn {
    font-size: 14px;
    margin: 2% 4%;
    padding: 6px;
    border-radius: 5px;
    background-color: #E3E3E3;
    color: black;
    display: block;
    text-align: center;
    text-decoration: none;
    width: 42%;
    transition: 0.3s;
    /*标签延迟0.3s显示*/
}

.sidenav-btn:hover {
    background-color: lightgray;
}

.sidenav-btn p {
    margin: 0;
    font-size: 10px;
    text-align: center;
    color: gray;
}

/* 自定义书签按钮 */
.add-bookmark-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.3);
    color: #fff;
    font-size: 22px;
    line-height: 36px;
    text-align: center;
    cursor: pointer;
    margin: 10px auto 0;
    user-select: none;
    transition: background 0.2s;
    font-weight: bold;
}
.add-bookmark-btn:hover {
    background: rgba(0, 0, 0, 0.5);
}

/* 自定义书签弹窗 */
.bm-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
}
.bm-modal.show {
    display: flex;
}
.bm-modal-content {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    width: 380px;
    max-width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}
.bm-close {
    position: absolute;
    top: 12px;
    right: 16px;
    font-size: 24px;
    cursor: pointer;
    color: #999;
}
.bm-close:hover { color: #333; }
.bm-modal-content h3 {
    margin: 0 0 16px;
    font-size: 18px;
}
.bm-form label {
    display: block;
    font-size: 13px;
    font-weight: bold;
    margin: 10px 0 4px;
    color: #555;
}
.bm-form input {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    box-sizing: border-box;
}
.bm-form input:focus {
    border-color: #00868B;
    outline: none;
}
.bm-form button {
    margin-top: 14px;
    padding: 10px 0;
    width: 100%;
    background: #00868B;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    cursor: pointer;
    transition: background 0.2s;
}
.bm-form button:hover { background: #006d72; }
.bm-count {
    font-size: 12px;
    color: #999;
    margin-top: 10px;
    text-align: right;
}
.bm-list {
    margin-top: 16px;
    border-top: 1px solid #eee;
    padding-top: 12px;
}
.bm-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid #f5f5f5;
}
.bm-item img {
    width: 28px;
    height: 28px;
    border-radius: 30%;
}
.bm-item .bm-item-name {
    flex: 1;
    font-size: 14px;
}
.bm-item .bm-item-del {
    color: #e74c3c;
    cursor: pointer;
    font-size: 13px;
    padding: 2px 8px;
    border-radius: 4px;
}
.bm-item .bm-item-del:hover { background: #fee; }

#tp-weather-widget {
    position: fixed;
    bottom: 10px;
    right: 10px;
    z-index: 999;
}
#tp-weather-widget .sw-container {
    left: unset !important;
    right: 0 !important;
    bottom: 0 !important;
    top: unset !important;
}

#ip-info {
    position: fixed;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 99;
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    font-size: 13px;
    padding: 8px 18px;
    border-radius: 20px;
    text-align: center;
    line-height: 1.6;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    cursor: default;
    user-select: none;
    max-width: 90%;
}
#ip-address {
    font-weight: bold;
    letter-spacing: 0.5px;
}
#ip-location {
    font-size: 11px;
    opacity: 0.85;
}
#ip-location::before {
    content: '📍';
    margin-right: 3px;
}

@media (max-width: 768px) {
    #tp-weather-widget {
        bottom: 8px;
        right: 8px;
    }
    #ip-info {
        font-size: 12px;
        padding: 4px 12px;
    }
}


/*动画*/

@keyframes fade-in {
    0% {
        opacity: 0;
    }
    /*初始状态 透明度为0*/
    40% {
        opacity: 0;
    }
    /*过渡状态 透明度为0*/
    100% {
        opacity: 1;
    }
    /*结束状态 透明度为1*/
}

@-webkit-keyframes fade-in {
    /*针对webkit内核*/
    0% {
        opacity: 0;
    }
    40% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}