/**酷导航 ©coolnav.com All Right Reserved 版权所有**/
body {
    max-width: 980px;
    margin: 50px auto;
}

*{
    padding:0;
    margin:0;
    text-decoration:none;
    list-style: none;
    outline: none;
}

.top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 40px;
}

.weather {
    display: flex;
    align-items: center;
}

.weather img {
    width: 25px;
    height: 25px;
    vertical-align: middle;
    margin-right: 3px;
}

.weather i {
    margin-right: 4px;
    font-size: 0.875rem;
    color: #757575;
}

.weather span {
    font-size: 0.875rem;
    color: #515151;
    margin-right: 3px;
    letter-spacing: 1px;
}

.icon-no-login {
    font-size: 25px;
    cursor: pointer;
    color: #c9c9c9;
}

.icon-setting {
    font-size: 25px;
    cursor: pointer;
}

.logo {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 10%;
    margin-bottom: 30px;
}

.logo img {
    width: 180px;
}

.search-box {
    max-width: 100%;
    margin: 0 auto 18px auto;
    position: relative;
}

#searchForm {
    display: flex;
    align-items: center;
    border: 1px solid #717171;
    border-radius: 6px;
    background: #f7f8fa;
    padding: 0 0 0 8px;
}

.search-engine-icon {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.search-engine-icon img {
    width: 25px;
    height: 25px;
}

.search-input {
    flex: 1;
    border: none;
    background: transparent;
    height: 46px;
    font-size: 18px;
    outline: none;
    margin-left: 4px;
}

.search-btn {
    border: none;
    background: #535353;
    color: #ffffff;
    cursor: pointer;
    width: 48px;
    height: 48px;
    border-radius: 0 5px 5px 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-engine-list {
    position: absolute;
    left: 0;
    right: 0;
    top: 56px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgb(30 30 30 / 16%);
    z-index: 20;
    padding: 10px 16px 10px 16px;
    width: 50%;
    box-sizing: border-box;
}

.engine-row {
    display: flex;
    gap: 12px;
    margin-bottom: 10px;
}

.engine-row:last-child { 
    margin-bottom: 0;
}

.engine-item {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 5px;
    justify-content: flex-start;
    background: #f7f8fa;
    border-radius: 6px;
    padding: 5px 8px;
    cursor: pointer;
    transition: background .12s;
    font-size: 15px;
    color: #333;
    min-width: 0;
    min-height: 32px;
}

.engine-item img {
    width: 18px;
    height: 18px;
}


.links {
    width: 100%;
}

.cat-tabs {
    display: flex;
    align-items: center;
    margin: 32px 0 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.cat-tab {
    position: relative;
    line-height: 40px;
    margin-right: 30px;
    font-size: 16px;
    cursor: pointer;
    color: #919191;
    transition: .2s;
}

.cat-tab.active:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: calc((100% - 20px) / 2);
    width: 20px;
    border-bottom: 2px solid #0071ff;
}

.cat-tab.active {
    color: #0071ff;
}

.link-row {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-template-rows: repeat(5, 36px); /* 固定5行高度 */
    gap: 15px 10px;
    justify-items: center;
    align-items: center;
    padding-top: 10px;
}

.link-card {
    min-width: 120px;
    display: inline-block;
    line-height: 24px;
    font-size: 16px;
    color: #545454;
    padding: 6px 10px 6px 10px;
    margin: 0 8px 8px 0;
    cursor: pointer;
    opacity: 0.8;
    letter-spacing: 1px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.link-card span {
    width: 20px;
    height: 20px;
    float: left;
    margin-right: 5px;
    margin-top: 2px;
    background-size: 100% 100%;
    -webkit-background-size: 100% 100%;
    -o-background-size: 100% 100%;
}

.link-card:hover {
    box-shadow: 1px 0px 3px 1px #adadad;
    border-radius: 2px;
    opacity: 1;
}

.nodata {
    grid-column: 1 / -1;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    margin: auto;
    width: 100%;
    font-size: 14px;
    color: #afafaf;
    letter-spacing: 2px;
}

.nodata img {
    width: 230px;
}

.memos {
    margin: 160px auto 50px;
    width: 70%;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    word-break: break-all;
    font-size: 20px;
    line-height: 1.6;
    letter-spacing: 2px;
    color: #ffffff;
    text-shadow: -1px -1px 1px rgba(0, 0, 0, 0.5), 1px 1px 1px rgba(255, 255, 255, 0.5);
}

/**后台样式**/
body.setting {
    background: #eee;
    max-width: 1080px;
}

.admin-greet {
    display: inline-block;
    vertical-align: middle;
    font-size: 14px;
    letter-spacing: 2px;
    color: #595959;
}

.icon-user-setting {
    float:right;
    cursor:pointer;
    font-size: 20px;
    color: #333;
}

#userMenuFloat {
    position:absolute;
    z-index:9999;
    min-width:100px;
    box-shadow:0 2px 8px rgba(0,0,0,.1);
    background:#fff;
    border-radius:8px;
    padding:8px 0;
}

.user-menu-item {
    padding:8px 24px;
    cursor:pointer;
    font-size: 14px;
}

.user-menu-item:last-child {
    color: #ff2929;
}

.setting-links {
    background: #ffffff;
    padding: 40px 30px 50px;
    margin-top: 10px;
    border-radius: 5px;
    box-shadow: #32325d40 0 2px 5px -1px, #0000004d 0 1px 3px -1px;
}

.admin .cat-tabs{
    margin: 40px 0;
}

.admin .link-row {
    gap: 25px 15px;
}

.admin .cat-tab {
    border: 1px dashed #636363;
    border-radius: 2px;
    padding: 0 10px;
    line-height: 35px;
}

.admin .cat-tab.active {
    color: #000000;
    background: #dddddd;
}

.admin .cat-tab.active:after {
    display: none;
}

.add-tab {
    width: 35px;
    border-radius: 20px;
    line-height: 35px;
    text-align: center;
    background: #959595;
    color: #fff;
    font-weight: bold;
    cursor: pointer;
}

.admin .link-card {
    border: 1px dashed #636363;
    border-radius: 5px;
}

.add-link-btn {
    min-width: 120px;
    display: inline-block;
    line-height: 24px;
    font-size: 16px;
    background: #e9e9e9;
    color: #858585;
    font-weight: 300;
    text-align: center;
    border-radius: 5px;
    padding: 6px 10px 6px 10px;
    margin: 0 8px 8px 0;
    cursor: pointer;
    opacity: 0.8;
    letter-spacing: 1px;
}

/**弹框UI**/
.onebox {
    border-radius: 10px !important;
    top: 150px !important;
    overflow: hidden !important;
}

.onebox .layui-layer-content {
    overflow: hidden!important;
}

.onebox .layui-layer-title {
    font-weight: 600;
    background-color: #fff;
    border-bottom: none;
    font-size: 16px;
    height: auto;
}

.login-tabs {
    display: flex;
    padding: 20px 0 10px;
    margin: 0 30px;
    border-bottom: 1px solid #f7f7f7;
    align-items: baseline;
}

.tab {
    font-size: 14px;
    color: #a9a9a9;
    letter-spacing: 2px;
    margin-right: 10px;
    cursor: pointer;
}

.tab.active{
    font-size: 20px;
    letter-spacing: 3px;
    font-weight: bold;
    position: relative;
    color: #3f3f3f;
}

.tab.active:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: calc((100% - 30px) / 2);
    width: 25px;
    border-bottom: 2px solid #3f3f3f;
}

.tab span {
    float: right;
    font-size: 10px;
    position: absolute;
    width: max-content;
    letter-spacing: 0;
    background: #e5e5e5;
    color: #5f5f5f;
    font-weight: 400;
    padding: 2px 5px;
    border-radius: 3px;
}

.tab.active span{
    background: #1c1c1c;
    color: #ffd38f;
    margin-top: 5px;
}

#login,#register,.oneForm{
    display: flex;
    flex-direction: column;
    gap: 10px;
    background-color: #ffffff;
    border-radius: 10px;
}

.onebox label {
    font-size: 14px;
    display: block;
    color: #161616;
    letter-spacing: 1px;
}

.inputForm {
    border-radius: 5px;
    height: 50px;
    display: flex;
    align-items: center;
    padding-left: 10px;
    padding-right: 10px;
    transition: 0.2s ease-in-out;
    margin-bottom: 10px;
    margin-top: 5px;
    background: #f9f9f9;
}

.onebox input {
    border: none;
    background: #f9f9f9;
    margin-left: 10px;
    width: 90%;
    height: 30px;
}

.onebox form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    background-color: #ffffff;
    padding: 20px 30px;
    border-radius: 10px;
}

.loginBtn {
    margin: 20px 0 10px 0;
    border: none;
    font-size: 16px;
    letter-spacing: 2px;
    border-radius: 5px;
    height: 45px;
    cursor: pointer;
    background: #3f3f3f;
    color: #fff;
    outline: none;
}

.loginBtn:disabled,#sendRegCodeBtn:disabled,#sendCodeBtn:disabled,#pwdSubBtn:disabled,#sendChangeEmailCodeBtn:disabled{
    opacity: 0.6;
    cursor: not-allowed;
}

button#sendRegCodeBtn,button#sendCodeBtn,button#sendChangeEmailCodeBtn {
    flex: unset;
    border: none;
    background: #3f3f3f;
    color: #ffffff;
    padding: 5px 10px;
    font-size: 12px;
    cursor: pointer;
    border-radius: 3px;
    letter-spacing: 1px;
}

input:-webkit-autofill, input:-webkit-autofill:hover, input:-webkit-autofill:focus, input:-webkit-autofill:active{
    -webkit-box-shadow: 0 0 0px 1000px #f9f9f9 inset;
    box-shadow: 0 0 0px 1000px #f9f9f9 inset;
    -webkit-text-fill-color: #000000;
}

.forgetPwd {
    text-align: right;
}

.forgetPwd a {
    color: #a3a3a3;
    font-size: 14px;
    letter-spacing: 1px;
}

.oneForm h3 {
    padding: 20px 0 10px;
    margin: 0 30px;
    font-size: 20px;
    letter-spacing: 3px;
    font-weight: bold;
    position: relative;
    color: #3f3f3f;
    display: flex;
}

.oneForm h3:after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 1px;
    width: 25px;
    border-bottom: 2px solid #3f3f3f;
}

/**后台编辑弹框**/
.editBox {
    overflow: hidden !important;
    border-radius: 3px !important;
}

.editBox .layui-layer-content {
    overflow: hidden !important;
}

.editLinks {
    padding: 20px 30px;
}

.editLinks h3 {
    font-size: 20px;
    font-weight: 500;
    color: #1e1e1e;
    margin-bottom: 10px;
}

.editLinks form {
    display: flex;
    flex-direction: column;
}

.editLinks input {
    width: 100%;
    margin-bottom: 10px;
    height: 35px;
    line-height: 35px;
    padding: 0 10px;
    font-size: 14px;
    border: 1px solid #cfcfcf;
    border-radius: 2px;
    box-sizing: border-box;
}

.editLinks input:focus {
    border: 1px solid #5b5b5b;
    box-shadow: 0px 0px 0px 3px #efefef;
    transition: 0.4s all;
}

.editLinks span {
    font-size: 14px;
    display: inline-block;
    margin-bottom: 10px;
    color: #292929;
    align-items: center;
    cursor: pointer;
}

.editLinks span i {
    margin-right: 3px;
    font-size: 14px;
}

/**上传按钮**/
.upload {
    position: relative;
}

.upload input {
    width: 100%;
    height: 35px;
    line-height: 35px;
    padding: 0 35px 0 10px; 
    font-size: 14px;
    border: 1px solid #cfcfcf;
    border-radius: 2px;
    box-sizing: border-box;
}

.icon-upload-btn {
    position: absolute;
    right: 1px; 
    top: 1px;
    height: 33px;
    width: 34px;
    background: #f8f8f8;
    border: none;
    border-left: 1px solid #cfcfcf;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-upload-btn:hover {
    background: #eee;
}

.icon-upload-btn .iconfont {
    font-size: 18px;
    color: #666;
}


.edit-footer {
    text-align: right;
    margin-top: 10px;
}

.edit-footer button {
    border: none;
    border-radius: 3px;
    padding: 0 20px;
    height: 32px;
    font-size: 14px;
    cursor: pointer;
}

.edit-footer button:first-child {
    background: #fff;
    color: #606266;
    border: 1px solid #E0E0E0;
    margin-right: 10px;
}

.edit-footer button:nth-child(2){
    background: #F56C6C;
    color: #fff;
    margin-right: 10px;
}

.edit-footer button:last-child {
    background: #333;
    color: #fff;
    margin-right: 0;
}
        
/**删除确认弹框**/
.deleteBox {
    padding: 20px 30px !important;
    border-radius: 5px !important;
}

.deleteBox .layui-layer-title {
    font-weight: 600;
    background-color: #fff;
    border-bottom: none;
    font-size: 16px;
    height: auto;
}

.deleteBox h3 {
    font-size: 20px;
    font-weight: 500;
    color: #f34848;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.deleteBox h3 i {
    font-size: 20px;
    margin-right: 3px;
}

.deleteDec {
    font-size: 14px;
    color: #777777;
    letter-spacing: 1px;
    line-height: 1.6;
    padding-top: 10px;
    border-top: 1px solid #f3f3f3;
}

.deleteBox .layui-layer-btn {
    display: flex;
    justify-content: center;
    padding: 0 !important;
    flex-direction: row-reverse;
    margin-top: -10px !important;
    font-size: 14px;
}

.deleteBox .layui-layer-btn0 {
    border: none !important;
    background: #f34848 !important;
    color: #ffffff !important;
    flex: 1;
    text-align: center;
}

.deleteBox .layui-layer-btn1 {
    box-sizing: border-box;
    flex: 1;
    text-align: center;
}

/**个人信息弹框**/
.userBox {
    border-radius: 10px !important;
}

.userInfo {
    display: flex;
    flex-direction: column;
    padding: 25px 30px;
    position: relative;
    background: linear-gradient(71deg, #080509, #494949, #141618);
    border-radius: 10px;
}



.userInfo img {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    border: 1px solid #979797;
    box-shadow: 0 0 2px 3px #f8d5991c;
    margin-right: 15px;
}

.nickname {
    font-size: 20px;
    font-weight: bold;
    letter-spacing: 1px;
    color: #ffdfa2;
    margin-bottom: 5px;
    text-shadow: -1px -1px 2px #000;
}

.nickname i {
    font-size: 20px;
    color: #bba67f;
}

.userTime {
    font-size: 14px;
    color: #c1b8a7;
    text-shadow: -1px -1px 2px #000;
    letter-spacing: 1px;
}

.userTop {
    display: flex;
    margin-bottom: 20px;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
}

.infoList li {
    font-size: 12px;
    color: #d5c8ae;
    text-shadow: -1px -1px 1px #000;
    margin-bottom: 5px;
    letter-spacing: 1px;
}

.infoList li i {
    font-size: 14px;
    color: #bba67f;
    margin-left: 3px;
}

footer {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    flex-direction: column;
}

footer h3 {
    margin: 15px 0;
    letter-spacing: 1px;
    font-size: 15px;
    color: #717171;  
}

footer p {
    font-size: 13px;
    line-height: 1.5;
    letter-spacing: 1px;
    color: #838383;  
}

/**兼容macbook**/
@media (min-width: 1400px) and (min-resolution: 2dppx) {
    .memos {
        margin-top: 80px;
        margin-bottom: 50px;
    }
}

/**兼容高DPX分辨率**/


/**兼容主流手机**/
@media(max-width:450px) {
    body {
        max-width: 100%;
        box-sizing: border-box;
        padding: 10px 20px;
        margin: 0;
    }
    
    .logo img {
        width: 120px;
    }
    
    .search-engine-list {
        width: 100%;
        padding: 10px;
    }
    
    .engine-row{
        gap: 5px;
        margin-bottom: 5px;
    }
    
    .engine-item {
        font-size: 13px;
        padding: 5px 6px;
        gap: 3px;
    }
    
    .cat-tabs {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        justify-content: flex-start;
     }
    
    .cat-tabs::-webkit-scrollbar {
        display: none;
    }
    
    .cat-tab {
        flex: 0 0 auto;
        font-size: 15px;
        line-height: 36px;
        padding: 0 8px;
        margin-right: 10px;
    }
    
    .link-row {
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: auto;
    }
    
    .link-card {
        min-width: auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        font-size: 14px;
    }
    
    .link-card span {
        margin-bottom: 5px;
        margin-right: 0;
    }

    
    .memos {
        display: none;
    }
    
    .links {
        margin-bottom: 30px;
    }
    
    .admin .cat-tabs {
        margin: 0 0 30px;
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
    
    .admin .link-row {
        gap:5px;
        justify-items: stretch;
    }
    
    .admin .link-card {
        min-width: 65px;
        max-width: 65px;
    }
    
    .admin .add-link-btn {
        font-size: 13px;
        min-width: 60px;
        letter-spacing: 0;
        padding: 3px;
    }
    
    /*弹框部分*/
    .onebox {
        top: 125px !important;
    }
    .onebox input {
        font-size: 14px;
    }
    
    #registerForm {
        display: flex;
        flex-wrap: wrap;
        flex-direction: row;
     }
    #registerForm label {
        flex: 1 1 100%;
        box-sizing: border-box;
        margin: 0;
        padding: 0;
    }
    #registerForm label:nth-child(1),#registerForm label:nth-child(2){
         flex: 1 1 48%;
         min-width: 140px;
         max-width: 50%;
    }
    
    #registerForm button[type="submit"] {
        flex: 1 1 100%;
    }
}
