
:root{
    /* 颜色 */
    --bg-lightblue:linear-gradient(180deg, #fcfdff, #edf1f8);
    --bg-black:linear-gradient(180deg, #19191b, black);

    --c-blue1:#232835;
    --c-gray1:#f3f3f1;
    --c-front:white;
    --c-mode-text:var(--c-front);

    --border-black1:1px solid rgba(51, 64, 81, 0.1);
    --hover-color:rgba(0, 0, 0, 0.2);

    /* 搜索框 */
    --search-height:56;
    --search-opacity-bg:rgba(255,255,255,0.85);

    
    --text-shadow1:1px 1px 2px rgba(0, 0, 0, 0.4);

    --setWrap-gray-bg:#fafcff;
}



html{
    width:100%;
    height: 100%;
}
body{
    margin:0;
    padding:0;
    width:100%;
    height: 100%;
    display:flex;
    min-height:300px;
    position: relative;

    /* align-items:center;     */
    align-items: flex-end;
    justify-content: center;

    font-size:14px;
    font-family: -apple-system, 'Helvetica Neue', sans-serif,"Microsoft Yahei","Hiragino Sans GB","Heiti SC","WenQuanYi Micro Hei";
    position: relative;
    /* font-weight: lighter; */
}
/* 移动端去除点击高亮 */
*{
    -webkit-tap-highlight-color:transparent;
 }
/* 移动端禁用长按页面弹出菜单 */
img,a{
    -webkit-touch-callout: none;
}
a{
    text-decoration: none;
}
/* ios加上这个属性才能自定义输入框、按钮样式 */
input{
    -webkit-appearance: none;
}
.btn{
    user-select: none;
    -ms-user-select: none;
    cursor: pointer;
}



/* bg-wrap ********************************/
#bg-wrap{
    width:100%;
    height:100%;
    position:fixed;
    top:0;
    left:0;
    z-index:-1;
    border: 0 none;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}
#bg{
    width:100%;
    height:100%;
    border: 0 none;
    background-size: cover;				
    background-repeat: no-repeat;
    background-position: center;
    background-attachment: fixed;
}
#blackBg{
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0);
    position: fixed; 
    top:0;
    left:0;
    z-index:1;
}

#vbg-wrap {
    position:fixed;
    top:0;
    left:0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    /* background-color: black; */
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}

/* 视频样式 */
#vbg-wrap video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: 100%;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover; /* 确保视频铺满容器并保持比例 */
}


/* fixed-btn-wrap******************* */
#fixed-btn-wrap{
    position:fixed;
    top:20px;
    right:20px;
    z-index:3;
}
.fixed-btn{
    width:26px;
    height:26px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    transition:all 1s;
    /* filter: alpha(opacity=60);
    -moz-opacity: .6;
    -khtml-opacity: .6;
    opacity: .6; */
    margin:10px 0;
}
.fixed-btn:hover{
    /* transform:rotate(90deg); */
    /* transform:translateX(-4px); */
    filter: alpha(opacity=100);
    -moz-opacity: 1;
    -khtml-opacity: 1;
    opacity: 1;
}

#set-btn{
    background: url(/static/images/setbtn.svg);
}

#fixed-btn-wrap .set-bg-btn{
    background: url(/static/images/setbgbtn.svg);
}






#welcome-wrap{
    position: absolute;
    right:70px;
    top:30px;
    z-index:2;
    display: none;
    
}

#welcome-box{
    padding:40px 50px;
    margin:0 auto;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius:4px;
    font-size:14px;
    color:#434343;      
    box-shadow: 0 1px 3px rgba(0,0,0,.1);
}
#welcome-text{
    display: block;
}
#welcome-text span{
    font-size:14px;
}
#welcome-btn{
    display:inline-flex;
    align-items: center;
    border-radius:100px;
    padding:8px 15px;
    color:#434343;
    font-size:14px;
    text-decoration: none;
    background-color: white;
    border:solid rgba(0, 0, 0, 0.2) 1px;
    box-shadow: 0 1px 3px rgba(0,0,0,.1);
}
#welcome-btn-img{
    height:18px;
    width:18px;
    margin-right: 5px;
}
.welcome-btn-tips{
    font-size:12px;
    color: rgba(0, 0, 0, 0.6);
    margin-top:10px;
}
#welcome-close{
    right:10px;
    top:10px;
    cursor: pointer;
    user-select: none;
    -ms-user-select: none;
    width:25px;
    height:25px;
    filter: alpha(opacity=80);
    -moz-opacity: .8;
    -khtml-opacity: .8;
    opacity: .8;
    position: absolute;
}


/* main-wrap ********************************/
#main-wrap{
    width:90%;
    /* max-width:1000px;作废2024 */
    min-width:320px;    
    /* background-color: rgba(32, 32, 32, 0.164); */

    margin-bottom:100px;
    /*margin:0 auto;flex撑开顶部不显示bug */ 
    z-index:2;
    display: flex;
    display: none;
    flex-direction: column;
    align-items: center;
}
#main-line{
    width:90%;
    max-width:600px;
    margin:0 auto;
    /* display:flex; */
    /* display: none; */
    /* justify-content: center;
    align-items: center; */
    position:absolute;
    transform: translate(-50%,-50%);
    transition:opacity .5s; 
    left:50%;
    top:35%;
}
#main-line:hover{
    opacity:1!important;
    
}

#word-wrap{    
    /* background-color: #e3ebff; */
    margin-top:calc(var(--search-height)/2*1px);
    /* display: none; */
    z-index:-1;
}
#word-text{
    font-size: 12px;
    color: var(--c-front);
    text-shadow: var(--text-shadow1);
    /* opacity:.6; */
    cursor: pointer;    
}


/* time-wrap ********************************/
#search-top-wrap{
    /* width:100%;
    background-color: red; */
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom:calc(var(--search-height)*0.9px); 
    height:calc(var(--search-height)*0.9px); 
}
#time-wrap{
    height:100%;
    user-select: none;
    -ms-user-select: none; 
    display: flex;
    cursor: pointer;
    /* background-color: rgba(0, 0, 0, 0.03); */
}
.time-num{
    /* border:1px solid rgb(102, 102, 102); */
    height:100%;
}
.time-dot{
    height:100%;
}

#date-wrap{
    height:100%;    
    margin-left:calc(var(--search-height)/2*1px);
    /* background-color: #40a6ff18; */
    color: var(--c-mode-text);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-shadow: var(--text-shadow1);
    
}

#date-box{
    cursor: pointer;
    user-select: none;    
    font-size:16px;
    display: flex;
    align-items: center;
    height:16px;    
}
.date-num{
    height:100%;
}
#weather-box{
    cursor: pointer;
    user-select: none;
    padding-top:6px;
    font-size:12px;
    display: flex;
    align-items: center;
    height:12px;  
}
.nongli-box{
    cursor: pointer;
    user-select: none;
    padding-top:6px;
    font-size:12px;
}


/* search-wrap ********************************/
#search-wrap{
    /* display: none;     */
    display: flex;
    flex:1;
    /* max-width:600px; */
    height:calc(var(--search-height)*1px);        
    background:var(--search-opacity-bg);

    /* box-shadow: 0 1px 3px rgba(0,0,0,.1); */
    border-radius:100px;
    box-sizing: border-box;
    border:var(--border-black1);
    /* border:1px solid white; */
    position:relative;
    flex-direction:row;
    justify-content:space-between;
    align-items:center;
    /* filter: alpha(opacity=80);
    -moz-opacity: 0.8;
    -khtml-opacity: 0.8;
    opacity: 0.8; */
    transition:transform .3s,opacity .5s;    
    z-index:2;
}
#search-wrap:hover{
    filter: alpha(opacity=100);
    -moz-opacity: 1;
    -khtml-opacity: 1;
    opacity: 1;
}
#search-type{
    height:100%;
    box-sizing: border-box;
    padding:0 10px;
    cursor: pointer;
    transition:all .3s; 
    /* background-color: aqua; */
    display: flex;
    align-items: center;
    user-select: none;
}
#search-type:hover{
}
#search-type-text{
    font-size:13px;
    color: var(--c-blue1);
    margin-right:5px;
}
#search-type img{
    width:10px;
}
#search-menu-box{
    width:100%;
    position: absolute;
    left:0;
    top:115%; 
    overflow: hidden;
    /* box-shadow: 0 1px 3px rgba(0,0,0,.2); */
    z-index:4;
    display: none;
    padding:10px;
    box-sizing: border-box; 
    border:var(--border-black1);
    border-radius:calc(var(--search-height)/2*1px);
    background:var(--search-opacity-bg);
}
#search-menu{
    width:100%;       
    user-select: none;
    -ms-user-select: none;
}
.search-engine,#search-menu-box .engine-add{
    float: left;
    width:20%;
    cursor: pointer;
    border-radius:100px;
    box-sizing: border-box;
    border:2px solid rgba(0, 0, 0, 0);
    padding:10px 10px 10px 20px;
    display: flex;
    font-size:14px;
    color: #333333;
    /* font-weight: lighter;     */
    transition:all .2s;
    position: relative;
}

.search-engine:hover{
    background-color: #f7f7f7;
    color: #000000;
}
.engine-add1:hover{
    background-color: #f7f7f7;
    color: #000000;
}


.search-engine span{
    display:inline-block;
    width: 100%;
    /* text-align: center; */
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.engine-save-box{
    width:100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding:10px 20px;
    box-sizing: border-box;
    display: none;
}
.engine-save-box span{
    font-size: 14px;
    color: rgba(0, 0, 0, 0.6);
}
.engine-save-btn-box{
    display: flex;
    align-items: center;
}
.deleteAllEngine-btn{
    font-size: 14px;
    color:rgba(0,0,0,.3);
    margin:0 20px;
}
.engine-save-btn{
    background-color: #40a7ff;
    color: white;
    padding:4px 15px;
    border-radius: 100px;
    
}
.engine-btn-box{
    position:absolute;
    right:10px;
    top:4px;
    height:16px;
    width:40px;
    display: flex;
    justify-content: space-between;

}

.engine-btn{
    height:100%;
    transition:all .3s;
    display: none;
}
.engine-btn:hover{
    transform:scale(1.1);
}
.search-engine-background{
    background-color:#f7f7f7;
}
.engine-set-btn{
    position:absolute;
    right:0;
    top:0;
    padding:calc(var(--search-height)/4*1px);
    opacity:.4; 
    transition: all .3s;   
}
.engine-set-btn:hover{
    opacity:.8; 
}
.engine-set-btn img{
    width:17px;
    height:17px;
}






#search-keyword-box{
    position: absolute;
    left:0;
    top:115%;
    max-width:100%;
    /* background-color: white; */
    border-radius:4px;
    overflow: hidden;
    display: none;
    box-sizing: border-box; 
    border:var(--border-black1);
    border-radius:calc(var(--search-height)/2*1px);
    background:var(--search-opacity-bg);
    width:100%;
    padding-top:10px;
    /* padding:calc(var(--search-height)/6*1px) 0 calc(var(--search-height)/6*1px) 0; */
}
.search-keyword{
    display:block;
    height:28px;
    line-height:28px;
    font-size:14px;
    color: var(--c-blue1);
    /* text-shadow: 0 1px 2px rgba(0,0,0,.6); */
    /* font-weight:bold; */
    padding:0  10px 0 32px;
    box-sizing: border-box;
    cursor: pointer;
    z-index:3;
    
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    transition:all .5s;
}
.search-keyword:hover{
    
}

#search-form{
    flex: 1;
    display: flex;
    justify-content:space-between;
    align-items:center;
    height:100%;
}
#search{
    background: rgba(255,255,255,0);
    border:none;
    height:98%;
    padding:0 10px 0 32px;
    box-sizing: border-box; 
    outline:none;
    font-size: 16px;
    flex:1;
    border-radius:100px 0 0 100px;
    /* font-weight: lighter; */
    color: var(--c-blue1);
}
#search-btn{
    cursor: pointer;
    height:calc(var(--search-height)*1px);
    width:calc(var(--search-height)*1px);
    box-sizing: border-box;
    background-color: rgba(0, 0, 0, 0);
    /* padding:6px; */
    outline: none;
    border:0 none;
    border-radius:100px;
    background-image: url("/static/images/index/searchbluebtn.svg");
    background-size: 62%;
    background-repeat: no-repeat;
    background-position: center;
}









/* content-wrap *******************************/



#user-site-wrap{
    width:100%;
    /* background-color: white; */
    transition: .3s all;
    text-shadow: var(--text-shadow1);
}
#user-site-wrap:hover{
    opacity: 1;
}




.site-content-box{
    width:100%;
    /* background-color: #40a7ff; */
    display: flex;
    min-height:30px;
    flex-flow: row wrap;
    justify-content: center;
}

.site-box{
    color:var(--c-mode-text);
    font-size:var(--nav-font, 13px);
    font-weight:500;
    letter-spacing:.3px;
    padding:10px 30px;
    margin:0 5px;
    border-radius:100px;    
    transition: .5s;
    cursor: pointer;
    user-select: none;
    pointer-events:bounding-box;
}
.site-name{
    max-width: 90px;;
    white-space: nowrap;  
    overflow: hidden;  
    text-overflow: ellipsis;  
    display: inline-block; /* 使其支持宽度设置 */ 
}
.site-box:hover{
    background-color:var(--hover-color);
}
.site-add{
    /*font-size:14px;*/
}




















/* 设置滚动条的样式 */
::-webkit-scrollbar {
width: 8px;
}
/* 滚动槽 */
::-webkit-scrollbar-track {
-webkit-box-shadow: inset006pxrgba(0, 0, 0, 0.3);
border-radius: 0px;
}
/* 滚动条滑块 */
::-webkit-scrollbar-thumb {
border-radius: 0px;
background: rgba(0, 0, 0, 0.1);
-webkit-box-shadow: inset006pxrgba(0, 0, 0, 0.5);
}
::-webkit-scrollbar-thumb:window-inactive {
background: rgba(0, 0, 0, 0.1);
}










/* ============================================================
   本地版：底部渐隐 + 站点栏文字增强（复杂壁纸下更好辨认）
   ============================================================ */
#site-scrim{
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    height: 260px;
    pointer-events: none;
    z-index: 0;
    background: linear-gradient(to top,
        rgba(0, 0, 0, 0.45) 0%,
        rgba(0, 0, 0, 0.22) 45%,
        rgba(0, 0, 0, 0) 100%);
    transition: background .4s;
}
/* 浅色壁纸 / 深色文字：换成白色渐隐 */
body[data-text-color="black"] #site-scrim{
    background: linear-gradient(to top,
        rgba(255, 255, 255, 0.55) 0%,
        rgba(255, 255, 255, 0.25) 45%,
        rgba(255, 255, 255, 0) 100%);
}

#user-site-wrap{
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55),
                 0 0 14px rgba(0, 0, 0, 0.36);
}
body[data-text-color="black"] #user-site-wrap{
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.75),
                 0 0 12px rgba(255, 255, 255, 0.55);
}

/* ---- 本地版：导航文字三档（标准 / 增强 / 胶囊） ---- */
.nav-style-row{ display:flex; align-items:center; justify-content:space-between; gap:6px; }
.nav-style-label{ flex:1; }
.nav-opt{ padding:4px 10px; border-radius:20px; font-size:12px; color:rgba(0,0,0,.45);
    cursor:pointer; user-select:none; transition:background .2s,color .2s; }
.nav-opt:hover{ background:rgba(0,0,0,.05); }
.nav-opt.active{ background:var(--c-blue1); color:#fff; }

/* 标准：去掉渐隐，恢复原排版 */
body[data-nav-style="standard"] #site-scrim{ display:none; }
body[data-nav-style="standard"] .site-box{ font-weight:400; letter-spacing:0; }
body[data-nav-style="standard"] #user-site-wrap{ text-shadow: var(--text-shadow1); }

/* 胶囊：固定宽度、文字居中；超长时左右滚动 */
body[data-nav-style="capsule"] .site-box{
    width: 5.8em;
    height: 2.5em;
    padding: 0 .4em;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    line-height: 1;
    background: rgba(0,0,0,.16);
    -webkit-backdrop-filter: blur(10px) saturate(120%);
    backdrop-filter: blur(10px) saturate(120%);
}
body[data-nav-style="capsule"] .site-btn-box{
    width: 100%;
    min-width: 0;
    overflow: hidden;
}
body[data-nav-style="capsule"] .site-name{
    max-width: 100%;
    width: 100%;
    min-width: 0;
    overflow: hidden;
    text-overflow: clip;
    white-space: nowrap;
    display: block;
    text-align: center;
}
body[data-nav-style="capsule"] .site-box.nav-scroll{ justify-content: flex-start; }
body[data-nav-style="capsule"] .site-box.nav-scroll .site-btn-box{ width: auto; min-width: 0; overflow: hidden; }
body[data-nav-style="capsule"] .site-box.nav-scroll .site-name{
    width: max-content;
    max-width: none;
    flex: 0 0 auto;
    display: flex;
    animation: navmarquee 6s linear infinite;
}
body[data-nav-style="capsule"] .site-box.nav-scroll .nav-txt{ white-space: nowrap; flex: 0 0 auto; padding-right: 14px; }
@keyframes navmarquee{
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}
body[data-nav-style="capsule"] .site-box:hover{ background: rgba(0,0,0,.26); }
body[data-nav-style="capsule"][data-text-color="black"] .site-box{ background: rgba(255,255,255,.45); }
body[data-nav-style="capsule"][data-text-color="black"] .site-box:hover{ background: rgba(255,255,255,.62); }
body[data-nav-style="capsule"] #site-scrim{
    background: linear-gradient(to top, rgba(0,0,0,.22) 0%, rgba(0,0,0,.10) 45%, rgba(0,0,0,0) 100%);
}

/* ---- 本地版：导航字号滑杆 ---- */
.nav-size-row{ display:flex; align-items:center; gap:12px; }
.nav-size-row .nav-style-label{ flex:0 0 auto; }
.nav-size-range{ flex:1; max-width:180px; min-width:90px; height:20px; cursor:pointer;
    -webkit-appearance:none; appearance:none; background:transparent; outline:none; }
.nav-size-range::-webkit-slider-runnable-track{ height:4px; border-radius:2px; background:rgba(0,0,0,.12); }
.nav-size-range::-webkit-slider-thumb{ -webkit-appearance:none; appearance:none; width:14px; height:14px;
    margin-top:-5px; border-radius:50%; background:var(--c-blue1); }
.nav-sizer-val{ width:46px; text-align:right; font-size:12px; color:rgba(0,0,0,.45); }

/* ---- 本地版：设置面板底部说明（替代原作者的“关于/服务协议”链接） ---- */
.set-bottom-note{ display:block; text-align:center; font-size:12px; color:rgba(0,0,0,.35); margin-bottom:6px; }

/* ---- 本地版：设置分组 / 每日一语 / 弹窗表单 / 书签导入 ---- */
.set-group{ font-size:11px; letter-spacing:1.5px; color:rgba(0,0,0,.32); margin:18px 4px 6px; }
.set-group:first-child{ margin-top:4px; }
.quote-row{ display:flex; align-items:center; justify-content:space-between; cursor:pointer; }
.quote-row-set{ font-size:12px; color:rgba(0,0,0,.4); }
.quote-row:hover .quote-row-set{ color:var(--c-blue1); }

.dlg-textarea{ width:100%; box-sizing:border-box; height:170px; padding:10px 12px; border:1px solid rgba(0,0,0,.12);
    border-radius:10px; font-size:12.5px; line-height:1.7; color:var(--c-blue1); resize:vertical; outline:none; }
.dlg-textarea:focus{ border-color:var(--c-blue1); }
.dlg-hint{ font-size:11.5px; line-height:1.6; color:rgba(0,0,0,.4); margin:6px 0 10px; }
.dlg-check{ display:flex; align-items:center; gap:8px; font-size:13px; color:var(--c-blue1); margin:10px 0 4px; }
.dlg-check input{ width:14px; height:14px; }
.dlg-btns{ display:flex; gap:10px; margin-top:12px; }
.dlg-btn{ flex:1; height:38px; border-radius:10px; display:flex; align-items:center; justify-content:center;
    background:var(--c-blue1); color:#fff; font-size:13px; cursor:pointer; user-select:none; }
.dlg-btn-plain{ background:rgba(0,0,0,.05); color:var(--c-blue1); }

.bm-item{ display:flex; justify-content:space-between; align-items:center; padding:9px 12px; border-radius:8px;
    background:rgba(0,0,0,.03); margin-bottom:6px; font-size:13px; color:var(--c-blue1); cursor:pointer; }
.bm-item:hover{ background:rgba(0,0,0,.06); }
.bm-count{ color:rgba(0,0,0,.35); font-size:12px; margin-left:10px; flex:0 0 auto; }
.bm-path{ font-size:11px; color:rgba(0,0,0,.35); margin-top:2px; }

/* ---- 本地版：设置二级菜单 ---- */
.set-group-btn{ display:flex; align-items:center; gap:10px; cursor:pointer; }
.set-group-name{ font-size:14px; color:var(--c-blue1); flex:0 0 auto; }
.set-group-desc{ flex:1; text-align:right; font-size:12px; color:rgba(0,0,0,.35); }
.set-group-arrow{ color:rgba(0,0,0,.25); font-size:16px; flex:0 0 auto; }
.set-sub{ display:none; }
.set-sub.show{ display:block; }
.set-sub-head{ padding:16px 2px 6px; }
.set-sub-back{ font-size:13.5px; color:var(--c-blue1); opacity:.8; cursor:pointer; user-select:none; }
.set-sub-back:hover{ opacity:1; }

/* ---- 本地版：书签多选列表 ---- */
.bm-toolbar{ display:flex; align-items:center; justify-content:space-between; padding:2px 2px 8px; font-size:12px; color:rgba(0,0,0,.45); }
.bm-toolbar label{ display:flex; align-items:center; gap:6px; cursor:pointer; }
.bm-link{ display:flex; align-items:center; gap:8px; padding:6px 8px; border-radius:6px; font-size:12.5px; color:var(--c-blue1); cursor:pointer; }
.bm-link:hover{ background:rgba(0,0,0,.04); }
.bm-link input{ width:14px; height:14px; flex:0 0 auto; }
.bm-link .bm-name{ flex:1; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.bm-link .bm-url{ font-size:11px; color:rgba(0,0,0,.32); max-width:45%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }

/* 原站全局把 input 的 appearance 去掉了，这里把勾选框恢复成原生样式 */
.bm-link input[type="checkbox"],
.bm-toolbar input[type="checkbox"],
.dlg-check input[type="checkbox"]{
    -webkit-appearance: checkbox;
    appearance: auto;
    width: 14px;
    height: 14px;
    margin: 0;
    accent-color: var(--c-blue1);
}

/* 弹窗底部固定按钮区：去掉多余上边距 */
.wdc-foot .dlg-btns{ margin-top:0; }
