/* =========================================
        基础布局：解决页脚置底与全屏背景
   ========================================= */
html {
    height: auto;
    min-height: 100%;
    font-size: 16px;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    font-family: "Microsoft YaHei", -apple-system, sans-serif;
    overflow-x: hidden;
    background-color: #f8f9fa;
}

.main-content-wrapper {
    flex: 1 0 auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
}

/* =========================================
               背景图片与样式
   ========================================= */
#bgCarousel {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    pointer-events: none;
}

.bg-img {
    width: 100%;
    height: 100vh;
    background-size: cover;
    background-position: center;
    transition: background-image 1.5s ease-in-out;
}

.glass-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: -1;
}

.bg-morning {
    background-image: url('/images/morning.jpg');
}

.bg-noon {
    background-image: url('/images/noon.jpg');
}

.bg-evening {
    background-image: url('/images/evening.jpg');
}

.bg-night {
    background-image: url('/images/night.jpg');
}

/* =========================================
             通用磨砂卡片系统
   ========================================= */
.backdrop-blur {
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    border-radius: 10px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.2);
}

    .backdrop-blur:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    }

/* =========================================
               侧边栏样式 
   ========================================= */
#sidebar {
    width: 200px;
    position: fixed;
    top: 0;
    left: -200px;
    height: 100vh;
    z-index: 1050;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(15px) saturate(180%);
    -webkit-backdrop-filter: blur(15px) saturate(180%);
    border-right: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    padding-top: 60px;
}

    #sidebar.active {
        left: 0;
    }

#sidebar-overlay {
    display: none;
    position: fixed;
    width: 100vw;
    height: 100vh;
    z-index: 1040;
    top: 0;
    left: 0;
    background: transparent;
}

    #sidebar-overlay.active {
        display: block;
    }

/* =========================================
                   页脚
   ========================================= */
.footer {
    flex-shrink: 0;
    position: relative !important;
    margin-top: auto;
    width: 100%;
    height: 60px;
    z-index: 10;
    background: rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.text-beian {
    color: rgba(255, 255, 255, 0.7) !important;
    text-decoration: none;
    font-size: 0.9rem;
}

.text-beian:hover {
    color: #00B3FF !important;
    text-decoration: underline !important;
}

/* =========================================
                 开发中网页
   ========================================= */
h1 {
    text-shadow: 0 0 15px rgba(255,255,255,0.2);
}


.dots {
    display: inline-block;
    width: 1em;
    animation: dot-anim 2s infinite;
}

/* =========================================
                 网页鼠标
   ========================================= */
/* PC隐藏原生鼠标 */
@media (pointer: fine) {
    html, body, a, button, .profile, .btn {
        cursor: none !important;
    }
}

/* 移动端点击 */
@media (pointer: coarse) {
    * {
        -webkit-tap-highlight-color: transparent;
    }
}
