/* ==========================================================================
   layout.css — 应用骨架布局
   --------------------------------------------------------------------------
   固定全屏 shell: 页面本身不滚动，只有内容区滚动。
   这是原 index.html 已有的行为(#app 上的 height:100vh + overflow:hidden)，
   此处只是抽离出来并改用设计变量。
   ========================================================================== */

/* Vue 加载完成前隐藏模板，防止闪现 {{ }} 语法 */
[v-cloak] {
    display: none !important;
}

#app {
    background-color: var(--c-bg);
    margin: 0;
    font-family: var(--font-sans);
    height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* ── 顶栏 ─────────────────────────────────────────────────── */
.layout-header {
    background: var(--c-panel);
    padding: 0 var(--sp-xl);
    border-bottom: 1px solid var(--c-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--h-header);
    box-shadow: var(--shadow-sm);
    flex-shrink: 0;
}

.layout-header-left {
    display: flex;
    flex-wrap: nowrap;
    gap: 30px;
    justify-content: flex-start;
    align-items: center;
    font-size: var(--fs-lg);
}

/* 指数名称下方的数值加粗放大 */
.layout-header-left-item > span:nth-of-type(2) {
    font-weight: bold;
    font-size: var(--fs-xl);
}

/* ── 主内容区 ─────────────────────────────────────────────── */
.main-content {
    margin: 0 auto;
    width: 100%;
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* 表格卡片撑满剩余高度，内部自行滚动 */
.table-card-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.table-card-wrapper .arco-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.table-card-wrapper .arco-card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding-top: 0;
}

.table-container {
    flex: 1;
    overflow: hidden;
}
