/* 
   黑白灰线条风格全局样式
   设计规范：#000000 / #666666 / #ffffff，2px 边框，无圆角，粗字体
*/

:root {
    /* 尺寸 */
    --sidebar-width: 240px;
    --header-height: 60px;
}

* {
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #ffffff;
    color: #000000;
    height: 100vh;
    display: flex;
    flex-direction: column;
    font-size: 14px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* ====================
   顶部导航栏 (Header)
   ==================== */
.top-bar {
    background-color: #ffffff;
    height: var(--header-height);
    border-bottom: 2px solid #000000;
    display: flex;
    align-items: center;
    padding: 0 24px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
}

.brand {
    font-size: 18px;
    font-weight: 700;
    color: #000000;
    width: var(--sidebar-width);
    padding-right: 20px;
    display: flex;
    align-items: center;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* 品牌前的图标装饰 */
.brand::before {
    content: '';
    display: inline-block;
    width: 10px;
    height: 10px;
    background-color: #000000;
    margin-right: 12px;
    border-radius: 0;
}

.breadcrumb-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    font-size: 13px;
    color: #666666;
    padding-left: 20px;
    border-left: 2px solid #000000;
    height: 24px;
}

.breadcrumb-label {
    color: #666666;
    margin-right: 4px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.5px;
}

#breadcrumb-text {
    font-weight: 700;
    color: #000000;
    letter-spacing: 0.3px;
}

/* ====================
   主布局容器
   ==================== */
.layout-container {
    display: flex;
    padding-top: var(--header-height); /* 给 fixed header 留位 */
    height: 100vh;
}

/* ====================
   左侧侧边栏 (Sidebar)
   ==================== */
.sidebar-left {
    width: var(--sidebar-width);
    background-color: #ffffff;
    border-right: 2px solid #000000;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--header-height);
    bottom: 0;
    left: 0;
    overflow-y: auto;
    z-index: 40;
}

.menu-title {
    padding: 24px 24px 12px;
    font-size: 11px;
    font-weight: 700;
    color: #666666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.menu-list {
    list-style: none;
    margin: 0;
    padding: 12px;
}

.menu-link {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    margin-bottom: 8px;
    color: #000000;
    text-decoration: none;
    border-radius: 0;
    font-weight: 600;
    transition: all 0.15s;
    border: 2px solid transparent;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 0.3px;
}

.menu-link:hover {
    background-color: #f5f5f5;
    border-color: #000000;
    border-width: 2px;
}

.menu-link.active {
    background-color: #000000;
    color: #ffffff;
    border-color: #000000;
    border-width: 2px;
    font-weight: 700;
}

/* ====================
   右侧内容区 (Main Content)
   ==================== */
.content-area {
    flex: 1;
    margin-left: var(--sidebar-width);
    padding: 24px;
    overflow-y: auto;
    background-color: #ffffff;
}

/* ====================
   通用组件样式
   ==================== */

/* 加载中 */
.loading {
    text-align: center;
    padding: 40px;
    color: #666666;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* 滚动条美化 (Chrome/Safari) */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: #fafafa;
}
::-webkit-scrollbar-thumb {
    background: #cccccc;
    border-radius: 0;
}
::-webkit-scrollbar-thumb:hover {
    background: #000000;
}

/* 响应式适配 */
@media (max-width: 768px) {
    .brand {
        width: auto;
        padding-right: 15px;
    }
    
    .sidebar-left {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    
    .content-area {
        margin-left: 0;
    }
    
    /* 简单处理：移动端隐藏侧边栏，实际项目可能需要汉堡菜单 */
}
