/* ===========================================
   Base Layout Styles
   专门用于base.html的布局样式
   =========================================== */

/* Page Wrapper */
.page-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    position: relative;
}

/* Site Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
}

/* Top Bar */
.top-bar {
    height: 40px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Top Bar Hidden State */
.top-bar.hidden {
    transform: translateY(-100%);
    opacity: 0;
}

/* Main Navigation */
.main-nav {
    height: 80px;
    width: 100%;
}

/* Site Main Content */
.site-main {
    flex: 1;
    margin-top: 120px; /* top-bar(40px) + nav(80px) */

}

/* Site Footer */
.site-footer {
    margin-top: auto;
    background: #2c3e50;
    color: #fff;
}

/* Breadcrumb Positioning - 贴紧下方内容 */
.breadcrumb-nav {
    background: #f8f9fa;
    padding: 15px 0 0 0;
    border-bottom: none;
}

/* Homepage Specific Styles */
.homepage .site-main {
    margin-top: 0; /* 首页slider延伸到导航下方 */
}

/* Mobile Styles */
@media (max-width: 768px) {
    .top-bar {
        display: none; /* 移动端隐藏top-bar */
    }
    
    .site-main {
        margin-top: 80px; /* 移动端只需nav高度 */
    }
    
    .homepage .site-main {
        margin-top: 0;
    }
}