/*
作者:D.Young
主页：https://blog.5iux.cn/
github：https://github.com/5iux/5iux.github.io
日期：2020-09-24
版权所有，请勿删除
*/
body{ font-size: 14px; background: #f4f8fb; overflow-x:hidden;  }
a{text-decoration: none;}
a:hover{text-decoration: none;}
svg.icon { width: 1em; height: 1em; margin: 0 5px 0 8px; vertical-align: -0.15em; fill: currentColor; overflow: hidden;}
.icon {
    width: 1em;
    height: 1em;
    vertical-align: -0.15em;
    fill: currentColor;
    overflow: hidden;
  }
/*menu*/
.navbar-light .navbar-nav .nav-link{ color: #fff; }
.navbar-light .navbar-nav .active .nav-link{ color: #fff; }
.navbar-light .navbar-nav .nav-link:hover{ color: #fff; }

/* 左侧导航链接样式 */
/*menu*/
.navbar-light .navbar-nav .nav-link{ color: #fff; }
.navbar-light .navbar-nav .active .nav-link{ color: #fff; }
.navbar-light .navbar-nav .nav-link:hover{ color: #fff; }
/* --- search --- */
#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-color:#fff; border:none; box-shadow: 0 0.5rem 0.625rem #d4d4d44d;transition: 0.3s all linear; padding-right: 50px; box-sizing: border-box; position: relative; z-index: 5;}
#search-text:focus{background: #fff; box-shadow: 0 0px 24px 0 rgba(50, 50, 50, 0.08); border-color: #fff; }
#search button{position:absolute;top:0;right:0;background:#fff;border:0;width:50px;height:50px;margin:0; outline: none; display: flex; align-items: center; justify-content: center; cursor: pointer; border-radius: 0 5px 5px 0; z-index: 10; box-shadow: none;}
#search button:hover{cursor:pointer}
#search button svg{color:#29f;font-size:20px; width: 20px; height: 20px; margin: 0;}
.search-group{display:none;padding-left:5px} /* 向右移动5px以匹配搜索框的圆角 */
.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:#fff;border-radius:5px;box-shadow:0 9px 20px rgba(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:#fff}
.s-type-list label{display:block;font-size:15px;text-align:center;font-weight:normal;margin-bottom:0;padding:2px 0;cursor:pointer;transition:.3s}
.s-type-list label:hover{background:rgba(136,136,136,.1)}
.s-type-list .tile-lg{color:#fff;width:3pc;height:3pc;font-size:1.25rem;line-height:3rem;border-radius:.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}
/*.type-text:after{content:"\f105";font-family:FontAwesome;margin:0 0 0 15px}*/
.search-type{white-space:nowrap;margin:0}.search-type label{margin:0}
.search-type li{display:inline-block; background: rgb(255 255 255 / 0.4); 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}
.search-type input:checked+label,.search-type input:hover+label{background-color:#fff;}
#search-text::-webkit-input-placeholder {color: #bbb;}
#word{ position: absolute; list-style: none; top:55px; left: 0px; width: 100%; background: rgba(259,259,259,0.9); border-radius: 5px; 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: 5px;}
#word li:hover{ background-color: #ddd;}
.set-check{margin-top:3px;font-size:9pt}.set-check label{margin-left:3px}
.set-check input,.set-check label{opacity:0;transition:all .3s ease}
.search-type li{list-style:none;display:inline-block}
.mylist{list-style: none; padding:10px 20px; position: relative; z-index: 1000; margin: 20px 0; border-radius: 15px; background: #fff; box-shadow: 0 0.5rem 0.625rem #d4d4d44d}
.mylist li.col-3{ width: 100px; transition: 0.3s all linear; font-size: 14px; overflow: hidden; padding:10px 0; border-radius: 10px;}
.mylist li.col-3 svg, .mylist li.col-3 .icon { display: block; width: 45px; height: 45px; padding: 8px; background: #fff; border: 1px solid #eee; border-radius:10px; margin: 0 auto; }
.mylist li.col-3 img{ display: block; width: 45px; height: 45px; padding: 8px; background: #f5f5f5;border: 1px solid #eee;  border-radius:10px; margin: 0 auto; object-fit: contain; }
.mylist li.col-3:hover{ background: #eee; }
.mylist li.col-3 span{ width: 100%; display: block; height: 26px; line-height: 26px; text-align:center; font-size: 13px; }

/* 外卖试吃官文本加粗 */
.mylist li.col-3 span:contains("外卖试吃官") {
    font-weight: bold;
}

.mylist li a {  color: #555; display: block;}
.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 #eee; margin-bottom: 10px;}
.banner-video {
    position: absolute;
    width: 100%;
    overflow: hidden;
    left: 0; top:0;
    max-height: 750px;
}
.banner-video video{
    width: 100%;
    height: auto;
    object-fit: cover;
}
.banner-video img{
    width: 100%;
    height: auto;
    object-fit: cover;
}
.bottom-cover{ width: 100%; height: 50%; position: absolute; bottom:0px; z-index: 10; }

@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; }
    div#navbarsExample05 { background: rgba(0, 0, 0, 0.8); padding: 10px 30px; border-radius: 20px;}
}
@media screen and (max-width:767px){
    .s-type-list label{padding:5px 0}
    .search-type{overflow:hidden}
    .search-list{height:30px;overflow-y:hidden;overflow-x:scroll;white-space:nowrap}
    .mylist{ border-radius: 8px;}
    .mylist li.col-3{ margin: 5px 0 5px;}
    .mylist li.col-3 svg, .mylist li.col-3 .icon { width: 30px; height: 30px; padding: 5px; border-radius: 5px; }
    .mylist li.col-3 img{ width: 30px; height: 30px; padding: 5px;border-radius: 5px; object-fit: contain;}
    .mylist li.col-3 span{ font-size: 12px; }
}
@media screen and (max-width:560px){
}



::-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;
}

/* 编辑模式样式 */
.edit-toolbar {
    text-align: right;
    padding: 10px 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
    row-gap: 15px; /* 设置行间距 */
}

.edit-toolbar .btn {
    white-space: nowrap;
}

/* 小屏幕设备优化 */
@media screen and (max-width: 767px) {
    .edit-toolbar {
        justify-content: center;
        gap: 5px;
        row-gap: 12px; /* 小屏幕上的行间距 */
    }
    
    .edit-toolbar .btn {
        padding: 4px 8px;
        font-size: 12px;
        flex: 1;
        min-width: auto;
    }
    
    /* 在非常小的屏幕上进一步优化 */
    @media screen and (max-width: 480px) {
        .edit-toolbar {
            row-gap: 10px; /* 更小屏幕上的行间距 */
        }
        
        .edit-toolbar .btn {
            padding: 3px 6px;
            font-size: 11px;
        }
    }
}

.edit-button {
    position: absolute;
    width: 20px;
    height: 20px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 50%;
    font-size: 12px;
    text-align: center;
    line-height: 18px;
    cursor: pointer;
    z-index: 1001;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.delete-button {
    top: -5px;
    right: -5px;
    background: #ff4d4f;
    color: white;
    font-weight: bold;
    font-size: 14px;
    line-height: 20px;
    z-index: 1002;
    /* 确保背景色正常显示 */
    background-color: #ff4d4f !important;
    /* 移除圆角以确保x显示完整 */
    border-radius: 0;
}

.edit-button.delete-button:hover {
    background: #ff7875;
}

.edit-button.edit-item-button {
    top: 15px; /* svg图标内部的相对位置 */
    left: 15px; /* svg图标内部的相对位置 */
    background: transparent;
    color: #1890ff;
    border: none;
    width: 30px;
    height: 30px;
    font-size: 16px;
    box-shadow: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0.7;
    /* 添加过渡效果使变化更平滑 */
    transition: opacity 0.2s ease;
}

.edit-button.edit-item-button:hover {
    opacity: 1;
    /* 移除了scale变换以避免抖动 */
}

.sortable-ghost {
    opacity: 0.5;
    background: #e6f7ff;
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 10001; /* 提高z-index确保在最前面 */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    outline: 0;
}

/* 确保分类选择下拉列表正确显示 */
#siteCategory {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    /* 确保是下拉列表样式 */
    appearance: menulist;
    -webkit-appearance: menulist;
    -moz-appearance: menulist;
}

/* 图标预览样式 */
#iconPreview, #textIconPreview {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    margin-right: 10px;
    object-fit: contain; /* 确保图片完整显示 */
}

#textIconPreview {
    background: #1890ff;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.modal.show {
    display: block;
}

.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 10000;
    width: 100vw;
    height: 100vh;
    background-color: #000;
}

.modal-backdrop.show {
    opacity: 0.5;
}

.modal-open {
    overflow: hidden;
}
