/*
 * embed-dashboard.css
 * 通用：当页面通过 dashboard iframe 内嵌（body.lg-embed，即 URL 带 ?embed=1）时，
 * 让链接类页面铺满 iframe 展示区域，并隐藏左侧数据导航栏（.data-center-menu）。
 * 作用域限定 body.lg-embed，正常页面不受任何影响。
 */

/* 1) 清空外层布局留白，让内容铺满 iframe */
body.lg-embed .lg-container,
body.lg-embed .lg-container-ad {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding: 0 !important;
}
body.lg-embed .container {
    max-width: none !important;
    width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}
body.lg-embed .row {
    margin-left: 0 !important;
    margin-right: 0 !important;
}
body.lg-embed .col-md-12,
body.lg-embed [class*="col-"] {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* 2) footer 占位（.push）在 embed 下无需保留，避免底部空白 */
body.lg-embed .lg-main {
    margin: 0 !important;
    min-height: 0 !important;
}
body.lg-embed .push {
    display: none !important;
}

/* 3) 隐藏左侧数据导航栏 */
body.lg-embed .data-center-menu,
body.lg-embed .data-center-menu-mobile {
    display: none !important;
}

/* 4) .stock-data-center 留一点边距（12px），让内容不贴边 */
body.lg-embed .stock-data-center {
    padding: 12px !important;
    width: 100% !important;
    box-sizing: border-box;
}

/* 5) .data-view 铺满展示区域 */
body.lg-embed .stock-data-center .data-view {
    display: block !important;
    width: auto !important;
    min-height: auto !important;
    box-sizing: border-box;
}

/* 6) 隐藏页面内的「收藏」按钮（star.js 注入到 #star-btn 容器） */
body.lg-embed #star-btn {
    display: none !important;
}

/* 7) 隐藏面包屑导航「当前位置：…」（嵌入卡片无导航语义，标题已在卡片头上） */
body.lg-embed .data-breadcrumb-vav {
    display: none !important;
}

/* 8) 隐藏「相关图表」与「内容描述」模块：嵌入卡片只保留图表本体。
      .stock-data-relate-chart 为独立相关图表模块（relate-chart.jsp）；
      table.lg-data-chart-description-table 为全站统一的图表描述表格（166 个页面），
      部分页面（如 survey-of-stock）的相关图表也用该表格实现，一并隐藏。 */
body.lg-embed .stock-data-relate-chart,
body.lg-embed table.lg-data-chart-description-table {
    display: none !important;
}
