/* ===== layout.css - 页面布局框架 ===== */

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
    height: 100%;
    overflow: hidden;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    background: #f0f0f0;
    color: #1f2937;
    line-height: 1.6;
    font-size: 16px;
}

/* ===== 主容器 ===== */
#app {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ===== 顶部标题栏 ===== */
.app-header {
    height: 66px;
    background: #1a1a2e;
    display: flex;
    align-items: center;
    padding: 0 16px;
    border-bottom: 1px solid rgba(255,255,255,.08);
    flex-shrink: 0;
}

/* ===== 主区域（侧边栏 + 内容区） ===== */
.app-main {
    display: flex;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

/* ===== 左侧菜单（固定不滚动） ===== */
.tab-bar {
    width: 160px;
    min-width: 160px;
    background: #1a1a2e;
    display: flex;
    flex-direction: column;
    padding: 10px 0;
    overflow-y: auto;
    box-shadow: 2px 0 8px rgba(0,0,0,.2);
}

.tab-bar .tab-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    cursor: pointer;
    transition: all .2s;
    color: #a0a0a0;
    font-size: 13px;
    border: none;
    background: transparent;
    text-align: left;
    font-family: inherit;
}
.tab-bar .tab-item:hover {
    background: rgba(255,255,255,.1);
    color: #fff;
}
.tab-bar .tab-item.active {
    background: #fff;
    color: #1a1a2e;
    font-weight: 700;
}
.tab-bar .tab-item .tab-icon { font-size: 16px; flex-shrink: 0; }
.tab-bar .tab-item .tab-label { font-size: 12px; }

/* ===== 内容区（可滚动） ===== */
.content-container {
    flex: 1;
    min-height: 0;
    padding: 12px 16px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.tab-content-wrapper {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    animation: fadeIn .3s ease;
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ===== 页脚 ===== */
.app-footer {
    position: fixed;
    bottom: 4px;
    left: 4px;
    font-size: 9px;
    color: rgba(0,0,0,.12);
    pointer-events: none;
}
