/* 全局加载遮罩 */
.loading-box {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.95);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    transition: opacity 0.5s ease;
}
/* 加载文字 */
.loading-text {
    font-size: 18px;
    color: #165DFF;
    margin-bottom: 20px;
    font-weight: 500;
    letter-spacing: 1px;
}

.battery-box {
    width: 340px;
    height: 44px;
    border: 3px solid #165DFF;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    background: #f5f7ff;
}

.battery-box::after {
    content: '';
    position: absolute;
    right: -12px;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 18px;
    background: #165DFF;
    border-radius: 0 4px 4px 0;
}
/* 填充条（渐变+呼吸光效） */
.battery-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #165DFF, #0E42C1);
    border-radius: 4px;
    transition: width 0.06s linear;
    box-shadow: 0 0 12px rgba(22,93,255,0.4);
    animation: charge-light 1.2s infinite alternate;
}
/* 呼吸高光动画 */
@keyframes charge-light {
    0% { box-shadow: 0 0 8px rgba(22,93,255,0.3); }
    100% { box-shadow: 0 0 18px rgba(22,93,255,0.6); }
}
/* 手机端自适应 */
@media (max-width: 768px) {
    .battery-box {
        width: 85%;
        height: 38px;
    }
    .loading-text {
        font-size: 16px;
    }
}
/* 加载完成淡出 */
.loading-box.hide {
    opacity: 0;
    pointer-events: none;
}
*{margin:0;padding:0;box-sizing:border-box;font-size: 15px;}
.top-nav-bar {
    width: 100%;
    height: 56px;
    background: linear-gradient(135deg, #165DFF 0%, #0E42C1 100%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    position: relative;
    color: #fff;
    box-shadow: 0 2px 12px rgba(22,93,255,0.15);
    z-index: 999;
}
/* 左侧首页按钮 */
.nav-left .home-btn {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    transition: all 0.25s ease;
}
.nav-left .home-btn:hover {
    background: rgba(255,255,255,0.2);
}
/* 中间标题居中 */
.nav-title {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    font-size: 16px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 55%;
}
/* 右侧展开按钮 */
.nav-right .menu-btn {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    transition: all 0.25s ease;
}
.nav-right .menu-btn:hover {
    background: rgba(255,255,255,0.2);
}
/* 全端统一分类下拉菜单 */
.cate-dropdown {
    display: none;
    position: absolute;
    top: 56px;
    left: 0;
    width: 100%;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.cate-dropdown a {
    display: block;
    padding: 14px 20px;
    color: #333;
    text-decoration: none;
    border-bottom: 1px solid #f5f5f5;
    transition: background 0.2s;
}
.cate-dropdown a:hover {
    background: #f7f9fc;
    color: #165DFF;
}

/* 返回顶部按钮样式 */
#backTop {
    position: fixed;
    right: 20px;
    bottom: 30px;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #165DFF 0%, #0E42C1 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 4px 12px rgba(22,93,255,0.25);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 9999;
}
/* 显示状态 */
#backTop.show {
    opacity: 1;
    visibility: visible;
}
/* hover效果 */
#backTop:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(22,93,255,0.35);
}
/* 手机端适配 */
@media (max-width: 768px) {
    #backTop {
        width: 42px;
        height: 42px;
        right: 15px;
        bottom: 20px;
    }
}