/* 侧边栏样式 - 深蓝暗色主题 */
.sidebar {
    width: 260px;
    height: 100vh;
    background: linear-gradient(180deg, #0f2744 0%, #0a1929 100%);
    border-right: 1px solid rgba(255,255,255,0.06);
    display: flex;
    flex-direction: column;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 100;
}

/* Header模块：Logo + 主副标题 + 提示语 合为一体 */
.sidebar-header {
    padding: 24px 16px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.sidebar-logo {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
}

.sidebar-title {
    font-size: 15px;
    font-weight: 700;
    color: #e2e8f0;
    line-height: 1.3;
}

.sidebar-subtitle {
    font-size: 11px;
    color: rgba(255,255,255,0.4);
    margin-top: 2px;
}

/* 提示语（橙色，放入Header内） */
.sidebar-alert {
    padding: 10px 12px;
    background: rgba(249, 115, 22, 0.1);
    border: 1px solid rgba(249, 115, 22, 0.22);
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sidebar-alert-icon {
    width: 16px;
    height: 16px;
    background: #f97316;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}

.sidebar-alert-text {
    font-size: 12px;
    color: #fb923c;
    line-height: 1.5;
    font-weight: 500;
}

/* 业务线选择器 */
.sidebar-biz {
    padding: 16px 16px 12px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.sidebar-biz-label {
    font-size: 11px;
    color: rgba(255,255,255,0.35);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 600;
    margin-bottom: 8px;
}

.sidebar-biz-select {
    width: 100%;
    height: 38px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    color: #e2e8f0;
    font-size: 13px;
    padding: 0 12px;
    outline: none;
    cursor: pointer;
    transition: border-color 0.2s;
}

.sidebar-biz-select:focus {
    border-color: #3b82f6;
}

.sidebar-biz-select option {
    background: #1e3a5f;
    color: #e2e8f0;
}

.sidebar-biz-add {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    padding: 6px 10px;
    border-radius: 8px;
    color: rgba(255,255,255,0.4);
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
    background: none;
    border: 1px dashed rgba(255,255,255,0.1);
    width: 100%;
}

.sidebar-biz-add:hover {
    color: rgba(255,255,255,0.7);
    border-color: rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.03);
}

/* 菜单分组标题 */
.sidebar-section-title {
    font-size: 11px;
    color: rgba(255,255,255,0.35);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 18px 20px 8px;
    font-weight: 600;
}

/* 菜单列表 */
.sidebar-menu {
    flex: 1;
    overflow-y: auto;
    padding: 0 12px;
}

.sidebar-menu::-webkit-scrollbar {
    width: 4px;
}

.sidebar-menu::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.1);
    border-radius: 2px;
}

.sidebar-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    border-radius: 10px;
    color: rgba(255,255,255,0.6);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 4px;
    text-decoration: none;
}

.sidebar-item:hover {
    background: rgba(255,255,255,0.05);
    color: rgba(255,255,255,0.85);
}

.sidebar-item.active {
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
}

.sidebar-item-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

/* 底部用户信息 */
.sidebar-footer {
    padding: 16px;
    border-top: 1px solid rgba(255,255,255,0.06);
    background: rgba(0,0,0,0.15);
}

.sidebar-user {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sidebar-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6, #6366f1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #fff;
    font-weight: 600;
    flex-shrink: 0;
}

.sidebar-user-info {
    flex: 1;
    min-width: 0;
}

.sidebar-user-name {
    font-size: 13px;
    color: #e2e8f0;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-user-meta {
    font-size: 11px;
    color: rgba(255,255,255,0.35);
    margin-top: 2px;
}

/* 主内容区 */
body { overflow: hidden; }
.main-content {
    margin-left: 260px;
    height: 100vh;
    overflow-y: auto;
    background: #f1f5f9;
}
.main-content::-webkit-scrollbar { width: 6px; }
.main-content::-webkit-scrollbar-track { background: transparent; }
.main-content::-webkit-scrollbar-thumb { background: rgba(0,0,0,.15); border-radius: 3px; }
.main-content::-webkit-scrollbar-thumb:hover { background: rgba(0,0,0,.25); }

/* 顶部栏 */
.topbar {
    height: 64px;
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 28px;
    position: sticky;
    top: 0;
    z-index: 50;
}

.topbar-breadcrumb {
    font-size: 14px;
    color: #64748b;
}

.topbar-breadcrumb .current {
    color: #1e293b;
    font-weight: 600;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-primary {
    background: linear-gradient(135deg, #3b82f6, #6366f1);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 8px 18px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
}

.btn-primary:hover {
    opacity: 0.9;
}

/* 页面内容 */
.page-content {
    padding: 24px 28px;
}
