/* _content/BlazorApp1/Components/Layout/MainLayout.razor.rz.scp.css */
/* 布局容器 - 符合规范第3、14条 */
.layout-container[b-j65y7q72mt] {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
    background: linear-gradient(to bottom, #f5f7fa, #c3cfe2);
}

/* 页眉样式 - 符合规范第3、8条 */
.app-header[b-j65y7q72mt] {
    width: 100%;
    background: linear-gradient(90deg, #6a11cb 0%, #2575fc 100%);
    color: white;
}

.navbar[b-j65y7q72mt] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-menu[b-j65y7q72mt] {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-item[b-j65y7q72mt] {
    margin-left: 1.5rem;
}

.nav-item a[b-j65y7q72mt] {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s;
}

.nav-item a:hover[b-j65y7q72mt] {
    opacity: 0.8;
}

/* 内容区域 - 符合规范第10、13、16条 */
.layout-body[b-j65y7q72mt] {
    flex: 1;
    width: 100%;
    max-width: 100vw;
    padding: 1rem;
    box-sizing: border-box;
}

.content-container[b-j65y7q72mt] {
    width: 100%;
    max-width: 100vw;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    background: white;
    box-sizing: border-box;
}

/* 页脚样式 - 符合规范第3、9条 */
.app-footer[b-j65y7q72mt] {
    width: 100%;
    background: #2c2c2c;
    color: #f5f5f5;
    text-align: center;
    padding: 1rem;
}

.footer-content[b-j65y7q72mt] {
    max-width: 1200px;
    margin: 0 auto;
}


/* 错误提示UI - 符合错误提示UI改进经验 */
#blazor-error-ui[b-j65y7q72mt] {
    position: fixed;
    bottom: 0;
    left: 0;
    z-index: 1000;
    width: 100%;
    background: #ff4d4d;
    color: white;
    text-align: center;
    padding: 0.5rem;
    transition: opacity 0.3s;
    display: none;
}

#blazor-error-ui.environment-development[b-j65y7q72mt] {
    display: none;
}

#blazor-error-ui a.reload[b-j65y7q72mt] {
    color: white;
    margin-left: 1rem;
    text-decoration: underline;
}

#blazor-error-ui a.dismiss[b-j65y7q72mt] {
    color: white;
    margin-left: 1rem;
    font-weight: bold;
}

/* 在小屏幕上改为垂直布局 */
@media (max-width: 768px) {
    .navbar[b-j65y7q72mt] {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .nav-menu[b-j65y7q72mt] {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
        margin-top: 1rem;
    }
    
    .nav-menu li[b-j65y7q72mt] {
        width: 100%;
    }
    
    .nav-menu li a[b-j65y7q72mt] {
        padding: 0.5rem 0;
    }
    
    /* 在小屏幕上减少内边距 */
    .content-container[b-j65y7q72mt] {
        padding: 1rem;
    }
    
    /* 在小屏幕上减少页脚内边距 */
    .app-footer[b-j65y7q72mt] {
        padding: 1rem;
    }
    
    /* 为页面容器添加防止溢出的样式 */
    .page-container[b-j65y7q72mt] {
        overflow-x: hidden;
    }
}
