/* ===== 大厅共享布局（数据库大厅风格） ===== */
body { background: #f6f8fc !important; }
.container { display: none; }

.hall-layout { display: flex; min-height: calc(100vh - 64px); }

/* 左侧边栏 */
.hall-sidebar {
    width: 220px; flex-shrink: 0;
    background: #fff;
    border-right: 1px solid rgba(17,24,39,.08);
    padding: 20px 14px;
    overflow-y: auto;
}
.hall-sidebar-brand {
    display: flex; align-items: center; gap: 10px;
    font-size: 18px; font-weight: 800; color: #1f2937;
    margin-bottom: 24px; padding: 0 10px;
}
.hall-sidebar-brand svg { width: 26px; height: 26px; stroke: #3b82f6; }
.hall-sidebar-section { margin-bottom: 22px; }
.hall-sidebar-title {
    font-size: 12px; font-weight: 700; color: #9ca3af;
    text-transform: uppercase; letter-spacing: .8px;
    margin-bottom: 8px; padding: 0 10px;
}
.hall-nav-item {
    display: flex; align-items: center; gap: 10px;
    padding: 9px 10px; border-radius: 8px;
    font-size: 13px; color: #4b5563; cursor: pointer;
    transition: all .2s; margin-bottom: 2px;
}
.hall-nav-item:hover { background: #f9fafb; color: #3b82f6; }
.hall-nav-item.active { background: #eff6ff; color: #3b82f6; font-weight: 600; }
.hall-nav-item svg { width: 16px; height: 16px; stroke: currentColor; }
.hall-nav-count {
    margin-left: auto; font-size: 11px; color: #9ca3af;
    background: #f3f4f6; padding: 2px 7px; border-radius: 999px;
}
.hall-nav-item.active .hall-nav-count { background: #dbeafe; color: #3b82f6; }

/* 主内容区 */
.hall-main { flex: 1; display: flex; flex-direction: column; overflow: hidden; }

/* 顶部栏 */
.hall-topbar {
    display: flex; align-items: center; gap: 16px;
    padding: 16px 28px;
    background: #fff;
    border-bottom: 1px solid rgba(17,24,39,.08);
}
.hall-topbar-title { font-size: 20px; font-weight: 700; color: #1f2937; }
.hall-topbar-search {
    display: flex; align-items: center; flex: 1; max-width: 480px;
    padding: 0 14px; height: 38px;
    background: #fff;
    border: 1px solid rgba(17,24,39,.12);
    border-radius: 8px;
    transition: all .25s; margin-left: auto;
}
.hall-topbar-search:focus-within { border-color: #3b82f6; box-shadow: 0 0 0 3px rgba(59,130,246,.1); }
.hall-topbar-search svg { width: 16px; height: 16px; stroke: #9ca3af; }
.hall-topbar-search input {
    flex: 1; margin-left: 10px; background: transparent; border: none;
    color: #1f2937; font-size: 13px; outline: none;
}
.hall-topbar-search input::placeholder { color: #9ca3af; }
.hall-topbar-btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 9px 16px; border-radius: 8px;
    background: #3b82f6; color: #fff;
    font-size: 13px; font-weight: 600; text-decoration: none;
    transition: all .2s; white-space: nowrap;
}
.hall-topbar-btn:hover { background: #2563eb; }

/* 内容滚动区 */
.hall-content { flex: 1; overflow-y: auto; padding: 24px 28px; }

/* 统计卡片 */
.hall-stats {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 16px; margin-bottom: 24px;
}
.hall-stat-card {
    background: #fff; border: 1px solid rgba(17,24,39,.08);
    border-radius: 12px; padding: 16px;
    display: flex; align-items: center; gap: 12px;
}
.hall-stat-icon {
    width: 42px; height: 42px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.hall-stat-icon svg { width: 22px; height: 22px; }
.hall-stat-main { flex: 1; }
.hall-stat-value { font-size: 22px; font-weight: 800; color: #1f2937; line-height: 1; }
.hall-stat-label { font-size: 12px; color: #9ca3af; margin-top: 4px; }

/* 主网格：卡片 + 右侧面板 */
.hall-grid-wrap { display: grid; grid-template-columns: 1fr 300px; gap: 24px; }

/* 卡片区 */
.hall-section-head {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 16px;
}
.hall-section-title { font-size: 16px; font-weight: 700; color: #1f2937; }
.hall-section-more {
    font-size: 12px; color: #3b82f6; text-decoration: none; font-weight: 600;
}
.hall-cards {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}
.hall-card {
    background: #fff; border: 1px solid rgba(17,24,39,.08);
    border-radius: 12px; padding: 18px;
    transition: all .2s; cursor: pointer; position: relative;
    text-decoration: none; display: block;
}
.hall-card:hover { border-color: #bfdbfe; box-shadow: 0 4px 16px rgba(0,0,0,.05); }
.hall-card-header { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 12px; }
.hall-card-icon {
    width: 44px; height: 44px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px; flex-shrink: 0;
}
.hall-card-title-wrap { flex: 1; min-width: 0; }
.hall-card-title { font-size: 15px; font-weight: 700; color: #1f2937; line-height: 1.3; }
.hall-card-org { font-size: 12px; color: #9ca3af; margin-top: 2px; }
.hall-card-menu {
    width: 26px; height: 26px; border-radius: 6px;
    display: flex; align-items: center; justify-content: center;
    color: #9ca3af; cursor: pointer;
}
.hall-card-menu:hover { background: #f3f4f6; color: #6b7280; }
.hall-card-desc {
    font-size: 12.5px; color: #6b7280; line-height: 1.6;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    margin-bottom: 14px;
}
.hall-card-metrics { display: flex; gap: 16px; margin-bottom: 14px; }
.hall-card-metric { display: flex; flex-direction: column; }
.hall-card-metric b { font-size: 14px; color: #1f2937; }
.hall-card-metric span { font-size: 11px; color: #9ca3af; }
.hall-card-footer { display: flex; align-items: center; justify-content: space-between; }
.hall-card-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.hall-card-tag {
    font-size: 11px; color: #6b7280; background: #f3f4f6;
    padding: 3px 8px; border-radius: 5px;
}
.hall-card-status {
    display: inline-flex; align-items: center; gap: 5px;
    font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: 999px;
}
.hall-card-status.online { background: #f0fdf4; color: #16a34a; }
.hall-card-status.sync { background: #fff7ed; color: #ea580c; }

/* 右侧面板 */
.hall-panel {
    display: flex; flex-direction: column; gap: 20px;
}
.hall-panel-card {
    background: #fff; border: 1px solid rgba(17,24,39,.08);
    border-radius: 12px; padding: 18px;
}
.hall-panel-title { font-size: 14px; font-weight: 700; color: #1f2937; margin-bottom: 14px; }

/* 饼图 */
.hall-donut-wrap { display: flex; align-items: center; gap: 16px; }
.hall-donut {
    width: 110px; height: 110px; border-radius: 50%;
    background: conic-gradient(
        #3b82f6 0deg 120deg,
        #22c55e 120deg 210deg,
        #f59e0b 210deg 280deg,
        #a855f7 280deg 330deg,
        #e5e7eb 330deg 360deg
    );
    position: relative; flex-shrink: 0;
}
.hall-donut::after {
    content: ''; position: absolute; inset: 22px;
    background: #fff; border-radius: 50%;
}
.hall-donut-legend { flex: 1; }
.hall-legend-item {
    display: flex; align-items: center; justify-content: space-between;
    font-size: 12px; margin-bottom: 7px;
}
.hall-legend-color { width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; }
.hall-legend-name { color: #4b5563; display: flex; align-items: center; }
.hall-legend-value { color: #9ca3af; }

/* 进度条 */
.hall-bar-item { margin-bottom: 12px; }
.hall-bar-head { display: flex; justify-content: space-between; font-size: 12px; margin-bottom: 5px; }
.hall-bar-label { color: #4b5563; }
.hall-bar-value { color: #9ca3af; }
.hall-bar-track {
    height: 6px; border-radius: 999px; background: #f3f4f6; overflow: hidden;
}
.hall-bar-fill { height: 100%; border-radius: 999px; background: #3b82f6; }

/* 关系图占位 */
.hall-graph {
    display: flex; flex-wrap: wrap; gap: 8px; justify-content: center;
    padding: 12px 0;
}
.hall-graph-node {
    padding: 6px 12px; border-radius: 8px; font-size: 12px; font-weight: 600;
    background: #eff6ff; color: #3b82f6; border: 1px solid #bfdbfe;
}

/* 空状态 */
.hall-empty {
    text-align: center; padding: 60px 20px;
    background: #fff; border: 1px solid rgba(17,24,39,.08); border-radius: 12px;
}
.hall-empty-title { font-size: 16px; font-weight: 700; color: #1f2937; margin-bottom: 6px; }
.hall-empty-desc { font-size: 13px; color: #9ca3af; }

@media (max-width: 1100px) {
    .hall-grid-wrap { grid-template-columns: 1fr; }
    .hall-panel { flex-direction: row; flex-wrap: wrap; }
    .hall-panel-card { flex: 1; min-width: 260px; }
}
@media (max-width: 768px) {
    .hall-sidebar { display: none; }
    .hall-topbar { padding: 12px 16px; }
    .hall-topbar-title { display: none; }
    .hall-content { padding: 16px; }
    .hall-stats { grid-template-columns: repeat(2, 1fr); }
    .hall-cards { grid-template-columns: 1fr; }
    .hall-panel { flex-direction: column; }
}
