/* 环节资源配置与工作日志统一照搬图 1 的居中双卡页面骨架。 */
body:is([data-workbench="xhs"], [data-workbench="wechat"]):is([data-current-page="modelgateway"], [data-current-page="featurelog"]) .系统顶栏 {
  display: none;
}

body:is([data-workbench="xhs"], [data-workbench="wechat"]):is([data-current-page="modelgateway"], [data-current-page="featurelog"]) .环节画布 {
  display: block;
  padding: calc(var(--site-navigation-height, 64px) + 32px) 24px 32px;
  overflow: auto;
  background: var(--workbench-surface-canvas, var(--feishu-color-bg-1));
}

body:is([data-workbench="xhs"], [data-workbench="wechat"]):is([data-current-page="modelgateway"], [data-current-page="featurelog"]) #环节轨道 {
  width: 100%;
  min-width: 0;
  min-height: 100%;
  margin: 0;
  filter: none;
  transform: none !important;
}

body:is([data-workbench="xhs"], [data-workbench="wechat"]):is([data-current-page="modelgateway"], [data-current-page="featurelog"]) .内容中心同版页面 {
  width: min(1480px, 100%);
  min-width: 0;
  min-height: calc(100dvh - var(--site-navigation-height, 64px) - 64px);
  margin: 0 auto;
  padding: 0;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  align-items: start;
  gap: 16px;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body:is([data-workbench="xhs"], [data-workbench="wechat"]):is([data-current-page="modelgateway"], [data-current-page="featurelog"]) .内容中心同版侧栏 {
  position: sticky;
  top: 0;
  min-width: 0;
  height: auto;
  display: grid;
  grid-template-rows: auto auto auto;
  overflow: hidden;
  border: 1px solid var(--workbench-border-subtle);
  border-radius: var(--feishu-border-radius-large, 8px);
  background: var(--workbench-surface-panel, var(--feishu-color-bg-0));
  box-shadow: var(--workbench-panel-shadow, none);
}

body:is([data-workbench="xhs"], [data-workbench="wechat"]):is([data-current-page="modelgateway"], [data-current-page="featurelog"]) .内容中心同版侧栏 > header {
  min-height: 72px;
  padding: 16px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--workbench-border-subtle);
}

body:is([data-workbench="xhs"], [data-workbench="wechat"]):is([data-current-page="modelgateway"], [data-current-page="featurelog"]) .内容中心同版侧栏 > header strong {
  color: var(--workbench-text-primary);
  font-size: 16px;
  font-weight: 650;
  line-height: 24px;
}

body:is([data-workbench="xhs"], [data-workbench="wechat"]):is([data-current-page="modelgateway"], [data-current-page="featurelog"]) .内容中心同版侧栏 > nav {
  min-width: 0;
  padding: 8px;
  display: block;
  overflow: visible;
  border: 0;
  background: transparent;
}

body:is([data-workbench="xhs"], [data-workbench="wechat"]):is([data-current-page="modelgateway"], [data-current-page="featurelog"]) .内容中心同版侧栏 > nav > em {
  display: block;
  padding: 8px 10px 6px;
  color: var(--workbench-text-muted);
  font-size: 11px;
  font-style: normal;
  line-height: 16px;
}

body:is([data-workbench="xhs"], [data-workbench="wechat"]):is([data-current-page="modelgateway"], [data-current-page="featurelog"]) .内容中心同版侧栏 > nav > button {
  position: relative;
  width: 100%;
  min-width: 0;
  min-height: 58px;
  margin: 0 0 4px;
  padding: 9px 10px;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 8px;
  align-items: center;
  border: 0;
  border-radius: var(--feishu-border-radius-small, 6px);
  background: transparent;
  color: var(--workbench-text-secondary);
  text-align: left;
  box-shadow: none;
}

body:is([data-workbench="xhs"], [data-workbench="wechat"]):is([data-current-page="modelgateway"], [data-current-page="featurelog"]) .内容中心同版侧栏 > nav > button::before {
  content: "";
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 0;
  width: 2px;
  background: var(--feishu-color-primary);
  transform: scaleY(0);
  transform-origin: center;
  transition: transform 160ms ease;
}

body:is([data-workbench="xhs"], [data-workbench="wechat"]):is([data-current-page="modelgateway"], [data-current-page="featurelog"]) .内容中心同版侧栏 > nav > button:is(:hover, :focus-visible) {
  
  
  outline: none;
}



body:is([data-workbench="xhs"], [data-workbench="wechat"]):is([data-current-page="modelgateway"], [data-current-page="featurelog"]) .内容中心同版侧栏 > nav > button:is(.当前, .已选中)::before {
  transform: scaleY(1);
}

body:is([data-workbench="xhs"], [data-workbench="wechat"]):is([data-current-page="modelgateway"], [data-current-page="featurelog"]) .内容中心同版侧栏 > nav > button::after {
  display: none;
}

body:is([data-workbench="xhs"], [data-workbench="wechat"]):is([data-current-page="modelgateway"], [data-current-page="featurelog"]) .内容中心同版侧栏 > nav > button > span {
  grid-row: 1 / 3;
  color: currentColor;
  font-size: 10px;
  font-weight: 500;
}

body:is([data-workbench="xhs"], [data-workbench="wechat"]):is([data-current-page="modelgateway"], [data-current-page="featurelog"]) .内容中心同版侧栏 > nav > button > b {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
  overflow: hidden;
  color: currentColor;
  font-size: 13px;
  font-weight: inherit;
  line-height: 18px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body:is([data-workbench="xhs"], [data-workbench="wechat"]):is([data-current-page="modelgateway"], [data-current-page="featurelog"]) .内容中心同版侧栏 > nav > button > small {
  grid-column: 2;
  grid-row: 2;
  overflow: hidden;
  color: var(--workbench-text-muted);
  font-size: 10px;
  font-weight: 400;
  line-height: 16px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body:is([data-workbench="xhs"], [data-workbench="wechat"]):is([data-current-page="modelgateway"], [data-current-page="featurelog"]) .内容中心同版侧栏 > footer {
  padding: 14px 16px;
  display: grid;
  gap: 3px;
  border-top: 1px solid var(--workbench-border-subtle);
}

body:is([data-workbench="xhs"], [data-workbench="wechat"]):is([data-current-page="modelgateway"], [data-current-page="featurelog"]) .内容中心同版侧栏 > footer strong {
  color: var(--workbench-text-secondary);
  font-size: 11px;
  font-weight: 600;
}

body:is([data-workbench="xhs"], [data-workbench="wechat"]):is([data-current-page="modelgateway"], [data-current-page="featurelog"]) .内容中心同版侧栏 > footer span {
  color: var(--workbench-text-muted);
  font-size: 10px;
  line-height: 16px;
}

body:is([data-workbench="xhs"], [data-workbench="wechat"]):is([data-current-page="modelgateway"], [data-current-page="featurelog"]) .内容中心同版主区 {
  min-width: 0;
  min-height: calc(100dvh - var(--site-navigation-height, 64px) - 64px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--workbench-border-subtle);
  border-radius: var(--feishu-border-radius-large, 8px);
  background: var(--workbench-surface-panel, var(--feishu-color-bg-0));
  box-shadow: var(--workbench-panel-shadow, none);
}

body:is([data-workbench="xhs"], [data-workbench="wechat"]):is([data-current-page="modelgateway"], [data-current-page="featurelog"]) .内容中心同版页头 {
  min-width: 0;
  min-height: 108px;
  padding: 24px 28px 20px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  border-bottom: 1px solid var(--workbench-border-subtle);
  background: transparent;
}

body:is([data-workbench="xhs"], [data-workbench="wechat"]):is([data-current-page="modelgateway"], [data-current-page="featurelog"]) .内容中心同版页头 > div:first-child {
  min-width: 0;
  display: grid;
  gap: 6px;
}

body:is([data-workbench="xhs"], [data-workbench="wechat"]):is([data-current-page="modelgateway"], [data-current-page="featurelog"]) .内容中心同版页头 :is(h2, p) {
  margin: 0;
}

body:is([data-workbench="xhs"], [data-workbench="wechat"]):is([data-current-page="modelgateway"], [data-current-page="featurelog"]) .内容中心同版页头 h2 {
  color: var(--workbench-text-primary);
  font-size: 22px;
  font-weight: 650;
  line-height: 30px;
}

body:is([data-workbench="xhs"], [data-workbench="wechat"]):is([data-current-page="modelgateway"], [data-current-page="featurelog"]) .内容中心同版页头 p,
body:is([data-workbench="xhs"], [data-workbench="wechat"]):is([data-current-page="modelgateway"], [data-current-page="featurelog"]) .内容中心同版页头 > span {
  color: var(--workbench-text-muted);
  font-size: 13px;
  line-height: 20px;
}

body:is([data-workbench="xhs"], [data-workbench="wechat"]):is([data-current-page="modelgateway"], [data-current-page="featurelog"]) .内容中心同版页头 > span,
body:is([data-workbench="xhs"], [data-workbench="wechat"]):is([data-current-page="modelgateway"], [data-current-page="featurelog"]) .内容中心同版页头 .模型网关顶部操作 {
  margin-left: auto;
}

body:is([data-workbench="xhs"], [data-workbench="wechat"]):is([data-current-page="modelgateway"], [data-current-page="featurelog"]) .内容中心同版工作区 {
  min-width: 0;
  min-height: 0;
  padding: 24px 28px 28px;
  overflow: auto;
  background: transparent;
}

body:is([data-workbench="xhs"], [data-workbench="wechat"])[data-current-page="modelgateway"] .API配置主区,
body:is([data-workbench="xhs"], [data-workbench="wechat"])[data-current-page="featurelog"] .工作日志主内容 {
  width: 100%;
  min-width: 0;
  min-height: 0;
  overflow: visible;
}

body:is([data-workbench="xhs"], [data-workbench="wechat"])[data-current-page="modelgateway"] .API配置主区 {
  padding: 0;
}

body:is([data-workbench="xhs"], [data-workbench="wechat"])[data-current-page="modelgateway"] .API配置单页 {
  margin-top: 0;
}

body:is([data-workbench="xhs"], [data-workbench="wechat"])[data-current-page="featurelog"] .工作日志主内容 {
  display: grid;
  align-content: start;
  gap: 16px;
}

body:is([data-workbench="xhs"], [data-workbench="wechat"])[data-current-page="featurelog"] .工作日志栏目面板 {
  padding-top: 0;
}

@media (max-width: 1040px) {
  body:is([data-workbench="xhs"], [data-workbench="wechat"]):is([data-current-page="modelgateway"], [data-current-page="featurelog"]) .内容中心同版页面 {
    grid-template-columns: 220px minmax(0, 1fr);
  }
}

@media (max-width: 760px) {
  body:is([data-workbench="xhs"], [data-workbench="wechat"]):is([data-current-page="modelgateway"], [data-current-page="featurelog"]) .环节画布 {
    padding: calc(var(--site-navigation-height, 64px) + 12px) 12px 16px;
  }

  body:is([data-workbench="xhs"], [data-workbench="wechat"]):is([data-current-page="modelgateway"], [data-current-page="featurelog"]) .内容中心同版页面 {
    min-height: 0;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  body:is([data-workbench="xhs"], [data-workbench="wechat"]):is([data-current-page="modelgateway"], [data-current-page="featurelog"]) .内容中心同版侧栏 {
    position: static;
    grid-template-rows: auto auto;
  }

  body:is([data-workbench="xhs"], [data-workbench="wechat"]):is([data-current-page="modelgateway"], [data-current-page="featurelog"]) .内容中心同版侧栏 > header {
    min-height: 54px;
    padding: 12px 14px;
  }

  body:is([data-workbench="xhs"], [data-workbench="wechat"]):is([data-current-page="modelgateway"], [data-current-page="featurelog"]) .内容中心同版侧栏 > nav {
    padding: 8px;
    display: flex;
    gap: 6px;
    overflow-x: auto;
  }

  body:is([data-workbench="xhs"], [data-workbench="wechat"]):is([data-current-page="modelgateway"], [data-current-page="featurelog"]) .内容中心同版侧栏 > nav > em,
  body:is([data-workbench="xhs"], [data-workbench="wechat"]):is([data-current-page="modelgateway"], [data-current-page="featurelog"]) .内容中心同版侧栏 > footer {
    display: none;
  }

  body:is([data-workbench="xhs"], [data-workbench="wechat"]):is([data-current-page="modelgateway"], [data-current-page="featurelog"]) .内容中心同版侧栏 > nav > button {
    width: auto;
    min-width: 168px;
    margin: 0;
    flex: 0 0 auto;
  }

  body:is([data-workbench="xhs"], [data-workbench="wechat"]):is([data-current-page="modelgateway"], [data-current-page="featurelog"]) .内容中心同版主区 {
    min-height: 0;
  }

  body:is([data-workbench="xhs"], [data-workbench="wechat"]):is([data-current-page="modelgateway"], [data-current-page="featurelog"]) .内容中心同版页头 {
    min-height: 86px;
    padding: 18px;
  }

  body:is([data-workbench="xhs"], [data-workbench="wechat"]):is([data-current-page="modelgateway"], [data-current-page="featurelog"]) .内容中心同版页头 h2 {
    font-size: 18px;
    line-height: 26px;
  }

  body:is([data-workbench="xhs"], [data-workbench="wechat"]):is([data-current-page="modelgateway"], [data-current-page="featurelog"]) .内容中心同版页头 p,
  body:is([data-workbench="xhs"], [data-workbench="wechat"]):is([data-current-page="modelgateway"], [data-current-page="featurelog"]) .内容中心同版页头 .模型网关运行状态 {
    display: none;
  }

  body:is([data-workbench="xhs"], [data-workbench="wechat"]):is([data-current-page="modelgateway"], [data-current-page="featurelog"]) .内容中心同版工作区 {
    padding: 16px;
  }
}

/* Figure 5 cascade lock: supersede the retired figure-1 resource-card overrides above. */
body:is([data-workbench="xhs"], [data-workbench="wechat"])[data-current-page="modelgateway"] .内容中心同版侧栏 > header {
  min-height: 54px;
  height: 54px;
  padding: 0 16px;
  display: flex;
  align-items: center;
}

body:is([data-workbench="xhs"], [data-workbench="wechat"])[data-current-page="modelgateway"] .内容中心同版主区 {
  display: grid;
  grid-template-rows: 54px minmax(0, 1fr);
  overflow: hidden;
}

body:is([data-workbench="xhs"], [data-workbench="wechat"])[data-current-page="modelgateway"] .内容中心同版主区 > .API配置主区 {
  min-height: 0;
}

body:is([data-workbench="xhs"], [data-workbench="wechat"])[data-current-page="modelgateway"] .内容中心同版主区 > .API配置主区 > .API配置面板 {
  min-height: 100%;
  padding: 0 24px 24px;
  border: 1px solid var(--workbench-border-subtle);
  border-radius: var(--feishu-border-radius-medium, 8px);
  background: var(--workbench-surface-panel, var(--feishu-color-bg-0));
}

@media (max-width: 760px) {
  body:is([data-workbench="xhs"], [data-workbench="wechat"])[data-current-page="modelgateway"] .内容中心同版侧栏 > header {
    min-height: 54px;
  }

  body:is([data-workbench="xhs"], [data-workbench="wechat"])[data-current-page="modelgateway"] .内容中心同版主区 > .API配置主区 > .API配置面板 {
    min-height: 0;
    padding: 0 16px 16px;
  }
}

/* 2026-09-01 图 5 真源：环节资源配置使用顶栏下方贴边、全高、连续分栏工作台。 */
body:is([data-workbench="xhs"], [data-workbench="wechat"])[data-current-page="modelgateway"] .环节画布 {
  padding: var(--site-navigation-height, 64px) 0 0;
  overflow: hidden;
}

body:is([data-workbench="xhs"], [data-workbench="wechat"])[data-current-page="modelgateway"] .内容中心同版页面 {
  width: 100%;
  height: calc(100dvh - var(--site-navigation-height, 64px));
  min-height: 0;
  margin: 0;
  grid-template-columns: 190px minmax(0, 1fr);
  align-items: stretch;
  gap: 0;
  overflow: hidden;
}

body:is([data-workbench="xhs"], [data-workbench="wechat"])[data-current-page="modelgateway"] .内容中心同版侧栏 {
  position: static;
  top: auto;
  height: 100%;
  grid-template-rows: 54px minmax(0, 1fr) auto;
  border: 0;
  border-right: 1px solid var(--workbench-border-subtle);
  border-radius: 0;
  box-shadow: none;
}

body:is([data-workbench="xhs"], [data-workbench="wechat"])[data-current-page="modelgateway"] .内容中心同版侧栏 > header {
  min-height: 54px;
  height: 54px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--workbench-border-subtle);
}

body:is([data-workbench="xhs"], [data-workbench="wechat"])[data-current-page="modelgateway"] .内容中心同版侧栏 > header > small,
body:is([data-workbench="xhs"], [data-workbench="wechat"])[data-current-page="modelgateway"] .内容中心同版侧栏 > header > span {
  display: none;
}

body:is([data-workbench="xhs"], [data-workbench="wechat"])[data-current-page="modelgateway"] .内容中心同版侧栏 > header > strong {
  color: var(--workbench-text-primary);
  font-size: 14px;
  font-weight: 650;
  line-height: 20px;
}

body:is([data-workbench="xhs"], [data-workbench="wechat"])[data-current-page="modelgateway"] .内容中心同版侧栏 > nav {
  min-height: 0;
  padding: 10px 8px;
  overflow: auto;
}

body:is([data-workbench="xhs"], [data-workbench="wechat"])[data-current-page="modelgateway"] .内容中心同版主区 {
  min-height: 0;
  height: 100%;
  grid-template-rows: 54px minmax(0, 1fr);
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

body:is([data-workbench="xhs"], [data-workbench="wechat"])[data-current-page="modelgateway"] .内容中心同版页头 {
  min-height: 54px;
  height: 54px;
  padding: 0 18px;
  align-items: center;
  border-bottom: 1px solid var(--workbench-border-subtle);
  background: var(--workbench-surface-panel, var(--feishu-color-bg-0));
}

body:is([data-workbench="xhs"], [data-workbench="wechat"])[data-current-page="modelgateway"] .内容中心同版页头 > div:first-child {
  gap: 1px;
}

body:is([data-workbench="xhs"], [data-workbench="wechat"])[data-current-page="modelgateway"] .内容中心同版页头 h2 {
  font-size: 14px;
  line-height: 20px;
}

body:is([data-workbench="xhs"], [data-workbench="wechat"])[data-current-page="modelgateway"] .内容中心同版页头 p {
  overflow: hidden;
  font-size: 10px;
  line-height: 16px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body:is([data-workbench="xhs"], [data-workbench="wechat"])[data-current-page="modelgateway"] .内容中心同版页头操作,
body:is([data-workbench="xhs"], [data-workbench="wechat"])[data-current-page="modelgateway"] .内容中心同版页头操作 .模型网关顶部操作 {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

body:is([data-workbench="xhs"], [data-workbench="wechat"])[data-current-page="modelgateway"] .内容中心同版页头操作 .模型网关运行状态 {
  margin: 0;
}

body:is([data-workbench="xhs"], [data-workbench="wechat"])[data-current-page="modelgateway"] .API配置主区 {
  min-height: 0;
  padding: 12px;
  overflow: auto;
  background: var(--workbench-surface-canvas, var(--feishu-color-bg-1));
}

body:is([data-workbench="xhs"], [data-workbench="wechat"])[data-current-page="modelgateway"] .内容中心同版主区 > .API配置主区 > .API配置面板 {
  min-height: 100%;
  padding: 0 24px 24px;
  border: 1px solid var(--workbench-border-subtle);
  border-radius: var(--feishu-border-radius-medium, 8px);
  background: var(--workbench-surface-panel, var(--feishu-color-bg-0));
}

body:is([data-workbench="xhs"], [data-workbench="wechat"])[data-current-page="modelgateway"] .API配置主区 > .API配置面板 > header.API配置面板标题,
body:is([data-workbench="xhs"], [data-workbench="wechat"])[data-current-page="modelgateway"] .API配置主区 .技能资源配置 > header.API配置面板标题 {
  display: none;
}

@media (max-width: 760px) {
  body:is([data-workbench="xhs"], [data-workbench="wechat"])[data-current-page="modelgateway"] .内容中心同版页面 {
    height: auto;
    min-height: calc(100dvh - var(--site-navigation-height, 64px));
    grid-template-columns: minmax(0, 1fr);
    overflow: visible;
  }

  body:is([data-workbench="xhs"], [data-workbench="wechat"])[data-current-page="modelgateway"] .内容中心同版侧栏 {
    height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--workbench-border-subtle);
  }

  body:is([data-workbench="xhs"], [data-workbench="wechat"])[data-current-page="modelgateway"] .内容中心同版页头操作 .模型网关运行状态 {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  body:is([data-workbench="xhs"], [data-workbench="wechat"]):is([data-current-page="modelgateway"], [data-current-page="featurelog"]) .内容中心同版侧栏 > nav > button::before {
    transition: none;
  }
}

/* 2026-09-01 环节资源配置：三个子页直接复用接入模型的单卡页头、标签、说明条和表格节奏。 */
body:is([data-workbench="xhs"], [data-workbench="wechat"])[data-current-page="modelgateway"] .内容中心同版侧栏 > header {
  min-height: 112px;
  padding: 12px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  grid-template-rows: 24px 30px auto;
  align-content: center;
  align-items: center;
  column-gap: 4px;
  row-gap: 3px;
}

body:is([data-workbench="xhs"], [data-workbench="wechat"])[data-current-page="modelgateway"] .内容中心同版侧栏 > header > small {
  grid-column: 1;
  grid-row: 1;
  color: var(--workbench-text-muted);
  font-size: 10px;
}

body:is([data-workbench="xhs"], [data-workbench="wechat"])[data-current-page="modelgateway"] .内容中心同版侧栏 > header > strong {
  grid-column: 1;
  grid-row: 2;
}

body:is([data-workbench="xhs"], [data-workbench="wechat"])[data-current-page="modelgateway"] .内容中心同版侧栏 > header > span {
  grid-column: 1 / -1;
  grid-row: 3;
  overflow: hidden;
  color: var(--workbench-text-muted);
  font-size: 10px;
  line-height: 16px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body:is([data-workbench="xhs"], [data-workbench="wechat"])[data-current-page="modelgateway"] .API配置侧栏操作,
body:is([data-workbench="xhs"], [data-workbench="wechat"])[data-current-page="modelgateway"] .API配置侧栏操作 .模型网关顶部操作 {
  display: contents;
}

body:is([data-workbench="xhs"], [data-workbench="wechat"])[data-current-page="modelgateway"] .API配置侧栏操作 .模型网关运行状态 {
  grid-column: 2 / -1;
  grid-row: 1;
  justify-self: end;
  min-width: 0;
  height: 24px;
  margin: 0;
  padding: 0;
  gap: 4px;
  color: var(--workbench-text-muted);
  font-size: 10px;
}

body:is([data-workbench="xhs"], [data-workbench="wechat"])[data-current-page="modelgateway"] .API配置侧栏操作 .模型网关顶部操作 button {
  grid-row: 2;
  justify-self: end;
  height: 30px;
  margin: 0;
  padding: 0 3px;
  color: var(--workbench-text-secondary);
  font-size: 11px;
}

body:is([data-workbench="xhs"], [data-workbench="wechat"])[data-current-page="modelgateway"] .API配置侧栏操作 .模型网关顶部操作 button:first-of-type {
  grid-column: 2;
}

body:is([data-workbench="xhs"], [data-workbench="wechat"])[data-current-page="modelgateway"] .API配置侧栏操作 .模型网关顶部操作 button:last-of-type {
  grid-column: 3;
}

body:is([data-workbench="xhs"], [data-workbench="wechat"])[data-current-page="modelgateway"] .内容中心同版主区 {
  display: block;
  overflow: auto;
}

body:is([data-workbench="xhs"], [data-workbench="wechat"])[data-current-page="modelgateway"] .内容中心同版主区 > .API配置主区 {
  min-height: inherit;
}

body:is([data-workbench="xhs"], [data-workbench="wechat"])[data-current-page="modelgateway"] .内容中心同版主区 > .API配置主区 > .API配置面板 {
  min-height: inherit;
  padding: 22px 24px 24px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body:is([data-workbench="xhs"], [data-workbench="wechat"])[data-current-page="modelgateway"] .API生产环节标签 {
  overflow-x: auto;
}

body:is([data-workbench="xhs"], [data-workbench="wechat"])[data-current-page="modelgateway"] .API生产环节标签 button {
  flex: 0 0 auto;
}

@media (max-width: 760px) {
  body:is([data-workbench="xhs"], [data-workbench="wechat"])[data-current-page="modelgateway"] .内容中心同版侧栏 > header {
    min-height: 96px;
  }

  body:is([data-workbench="xhs"], [data-workbench="wechat"])[data-current-page="modelgateway"] .内容中心同版主区 > .API配置主区 > .API配置面板 {
    min-height: 0;
    padding: 16px;
  }
}

/* Figure 5 final cascade lock v2. */
body:is([data-workbench="xhs"], [data-workbench="wechat"])[data-current-page="modelgateway"] .内容中心同版侧栏 > header {
  min-height: 54px;
  height: 54px;
  padding: 0 16px;
  display: flex;
  align-items: center;
}
body:is([data-workbench="xhs"], [data-workbench="wechat"])[data-current-page="modelgateway"] .内容中心同版主区 {
  display: grid;
  grid-template-rows: 54px minmax(0, 1fr);
  overflow: hidden;
}
body:is([data-workbench="xhs"], [data-workbench="wechat"])[data-current-page="modelgateway"] .内容中心同版主区 > .API配置主区 {
  min-height: 0;
}
body:is([data-workbench="xhs"], [data-workbench="wechat"])[data-current-page="modelgateway"] .内容中心同版主区 > .API配置主区 > .API配置面板 {
  min-height: 100%;
  padding: 0 24px 24px;
  border: 1px solid var(--workbench-border-subtle);
  border-radius: var(--feishu-border-radius-medium, 8px);
  background: var(--workbench-surface-panel, var(--feishu-color-bg-0));
}
@media (max-width: 760px) {
  body:is([data-workbench="xhs"], [data-workbench="wechat"])[data-current-page="modelgateway"] .内容中心同版侧栏 > header { min-height: 54px; }
  body:is([data-workbench="xhs"], [data-workbench="wechat"])[data-current-page="modelgateway"] .内容中心同版主区 > .API配置主区 > .API配置面板 { min-height: 0; padding: 0 16px 16px; }
}

/* 2026-09-02 素材采集库：复用配置管理的贴边全高连续分栏。 */
body[data-workbench="xhs"][data-current-page="material"] .系统顶栏{display:none}
body[data-workbench="xhs"][data-current-page="material"] .环节画布{padding:var(--site-navigation-height,64px) 0 0;display:block;overflow:hidden;background:var(--workbench-surface-canvas,var(--feishu-color-bg-1))}
body[data-workbench="xhs"][data-current-page="material"] #环节轨道{width:100%;min-width:0;height:100%;min-height:0;margin:0;display:block;filter:none;transform:none!important}
body[data-workbench="xhs"][data-current-page="material"] .素材采集库页面.内容中心同版页面{width:100%;max-width:none;height:calc(100dvh - var(--site-navigation-height,64px));min-height:0;margin:0;padding:0;display:grid;grid-template-columns:190px minmax(0,1fr);grid-template-rows:minmax(0,1fr);align-items:stretch;gap:0;overflow:hidden;border:0;border-radius:0;background:transparent;box-shadow:none}
body[data-workbench="xhs"][data-current-page="material"] .素材采集库侧栏{position:static;min-width:0;height:100%;display:grid;grid-template-rows:54px minmax(0,1fr) auto;overflow:hidden;border:0;border-right:1px solid var(--workbench-border-subtle);border-radius:0;background:var(--workbench-surface-panel,var(--feishu-color-bg-0));box-shadow:none}
body[data-workbench="xhs"][data-current-page="material"] .素材采集库侧栏>header{min-height:54px;height:54px;padding:0 16px;display:flex;align-items:center;border-bottom:1px solid var(--workbench-border-subtle)}
body[data-workbench="xhs"][data-current-page="material"] .素材采集库侧栏>header strong{color:var(--workbench-text-primary);font-size:14px;font-weight:650;line-height:20px}
body[data-workbench="xhs"][data-current-page="material"] .素材采集库侧栏>nav{min-width:0;min-height:0;padding:10px 8px;display:grid;align-content:start;gap:12px;overflow:auto;border:0;background:transparent}
body[data-workbench="xhs"][data-current-page="material"] .素材采集库分类组{min-width:0;display:grid;gap:4px}
body[data-workbench="xhs"][data-current-page="material"] .素材采集库分类组+.素材采集库分类组{padding-top:12px;border-top:1px solid var(--workbench-border-subtle)}
body[data-workbench="xhs"][data-current-page="material"] .素材采集库分类组>em{display:block;padding:0 10px 6px;color:var(--workbench-text-muted);font-size:11px;font-style:normal;line-height:16px}
body[data-workbench="xhs"][data-current-page="material"] .素材采集库分类组>button{position:relative;width:100%;min-width:0;min-height:58px;margin:0;padding:9px 10px;display:grid;grid-template-columns:24px minmax(0,1fr);grid-template-rows:auto auto;column-gap:8px;align-items:center;border:0;border-radius:var(--feishu-border-radius-small,6px);background:transparent;color:var(--workbench-text-secondary);text-align:left;box-shadow:none}
body[data-workbench="xhs"][data-current-page="material"] .素材采集库分类组>button::before{content:"";position:absolute;top:8px;bottom:8px;left:0;width:2px;background:var(--feishu-color-primary);transform:scaleY(0);transform-origin:center;transition:transform 160ms ease}
body[data-workbench="xhs"][data-current-page="material"] .素材采集库分类组>button:is(:hover,:focus-visible){outline:none;}

body[data-workbench="xhs"][data-current-page="material"] .素材采集库分类组>button.当前::before{transform:scaleY(1)}
body[data-workbench="xhs"][data-current-page="material"] .素材采集库分类组>button::after{display:none}
body[data-workbench="xhs"][data-current-page="material"] .素材采集库分类组>button>span{grid-row:1/3;color:currentColor;font-size:10px}
body[data-workbench="xhs"][data-current-page="material"] .素材采集库分类组>button>b{min-width:0;overflow:hidden;color:currentColor;font-size:13px;font-weight:inherit;line-height:18px;text-overflow:ellipsis;white-space:nowrap}
body[data-workbench="xhs"][data-current-page="material"] .素材采集库分类组>button>small{grid-column:2;overflow:hidden;color:var(--workbench-text-muted);font-size:10px;font-weight:400;line-height:16px;text-overflow:ellipsis;white-space:nowrap}
body[data-workbench="xhs"][data-current-page="material"] .素材采集库侧栏>footer{padding:14px 16px;display:grid;gap:3px;border-top:1px solid var(--workbench-border-subtle)}
body[data-workbench="xhs"][data-current-page="material"] .素材采集库侧栏>footer strong{color:var(--workbench-text-secondary);font-size:11px;line-height:16px}
body[data-workbench="xhs"][data-current-page="material"] .素材采集库侧栏>footer span{color:var(--workbench-text-muted);font-size:10px;line-height:16px}
body[data-workbench="xhs"][data-current-page="material"] .素材采集库页面>.内容中心同版主区{min-width:0;min-height:0;height:100%;display:grid;grid-template-rows:54px minmax(0,1fr);overflow:hidden;border:0;border-radius:0;background:var(--workbench-surface-canvas,var(--feishu-color-bg-1));box-shadow:none}
body[data-workbench="xhs"][data-current-page="material"] .素材采集库页面 .内容中心同版页头{min-height:54px;height:54px;padding:0 18px;display:flex;align-items:center;justify-content:space-between;gap:16px;border-bottom:1px solid var(--workbench-border-subtle);background:var(--workbench-surface-panel,var(--feishu-color-bg-0))}
body[data-workbench="xhs"][data-current-page="material"] .素材采集库页面 .内容中心同版页头>div:first-child{min-width:0;display:grid;gap:1px}
body[data-workbench="xhs"][data-current-page="material"] .素材采集库页面 .内容中心同版页头 h2{margin:0;color:var(--workbench-text-primary);font-size:14px;line-height:20px}
body[data-workbench="xhs"][data-current-page="material"] .素材采集库页面 .内容中心同版页头 p{margin:0;overflow:hidden;color:var(--workbench-text-muted);font-size:10px;line-height:16px;text-overflow:ellipsis;white-space:nowrap}
body[data-workbench="xhs"][data-current-page="material"] .素材采集库页面 .内容中心同版页头操作{flex:0 0 auto;color:var(--workbench-text-muted);font-size:11px}
body[data-workbench="xhs"][data-current-page="material"] .素材采集库主区{min-width:0;min-height:0;padding:12px;overflow:auto;background:var(--workbench-surface-canvas,var(--feishu-color-bg-1))}
body[data-workbench="xhs"][data-current-page="material"] .素材采集库内容面板{min-height:100%;padding:16px;display:flex;flex-direction:column;gap:14px;border:1px solid var(--workbench-border-subtle);border-radius:var(--feishu-border-radius-medium,8px);background:var(--workbench-surface-panel,var(--feishu-color-bg-0))}
body[data-workbench="xhs"][data-current-page="material"] .素材采集库搜索栏{width:100%;margin:0;padding:0 0 12px;display:grid;grid-template-columns:minmax(260px,520px) auto;justify-content:space-between;align-items:end;gap:12px;border:0;border-bottom:1px solid var(--workbench-border-subtle);border-radius:0;background:transparent;box-shadow:none}
/* material-unselected-full-width-v1：未选中素材时不预留详情栏。 */
body[data-workbench="xhs"][data-current-page="material"] .素材采集库内容面板>.模板库主体{grid-template-columns:minmax(0,1fr)}
body[data-workbench="xhs"][data-current-page="material"] .素材采集库内容面板>.模板库主体.素材采集库主体已选中{grid-template-columns:minmax(0,1fr) 368px;align-items:start}

@media(max-width:1120px) and (min-width:761px){body[data-workbench="xhs"][data-current-page="material"] .素材采集库内容面板>.模板库主体.素材采集库主体已选中{grid-template-columns:minmax(0,1fr) 360px}}

/* 配置管理：企业素材分类。 */
.素材分类统计{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.素材分类统计>div{padding:12px;display:grid;gap:4px;border:1px solid var(--workbench-border-subtle);border-radius:var(--workbench-action-radius);background:var(--workbench-surface-raised)}
.素材分类统计 span{color:var(--workbench-text-muted);font-size:10px}.素材分类统计 strong{font-size:20px}
.素材分类配置表单>[data-material-category-rows]{display:grid;gap:8px}
.素材分类配置行{display:grid;grid-template-columns:minmax(160px,.7fr) minmax(260px,1.3fr) auto;gap:10px;align-items:end}
.素材分类配置行 label{min-width:0}.素材分类配置行 input{width:100%}.素材分类配置操作{display:flex;justify-content:flex-end;gap:8px}
.素材架构转换标题{display:flex;align-items:center;justify-content:space-between;gap:10px}.素材架构转换标题>div{min-width:0;display:flex;align-items:baseline;gap:8px}.素材架构转换标题 strong{font-size:13px;line-height:20px}.素材架构转换标题 span,.素材架构转换标题>small{font-size:10px;line-height:16px}.素材架构转换标题>small{flex:0 0 auto}
.素材架构转换操作{display:grid;grid-template-columns:minmax(0,1fr);gap:6px}.素材架构转换操作>*{min-width:0}.素材架构转换卡{min-height:54px;padding:8px 10px;display:grid;grid-template-columns:minmax(108px,.9fr) minmax(0,1.35fr) 78px;align-items:center;gap:10px;text-align:left;white-space:normal}.素材架构转换卡[data-material-conversion-item="content_background_separation"]{grid-column:auto}.素材架构转换卡头{min-width:0;display:grid;justify-items:start;gap:3px}.素材架构转换卡头 strong{min-width:0;font-size:13px;font-weight:700;line-height:18px;white-space:nowrap}.素材架构转换卡头 em{font-size:9px;font-style:normal;line-height:16px}.素材架构转换卡>small{min-width:0;font-size:10px;line-height:15px}.素材架构转换按钮{width:auto;min-width:78px;min-height:30px;padding-inline:10px}.素材架构转换规则{display:block;font-size:10px;line-height:15px}.素材架构转换规则 span+span::before{content:" · "}.素材架构转换状态{font-size:10px;line-height:16px}
.素材AI归类区{margin-top:16px;padding-top:16px;display:grid;gap:12px;border-top:1px solid var(--workbench-border-subtle)}
.素材AI归类区>header{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}.素材AI归类区>header>div{display:grid;gap:3px}.素材AI归类区 h3,.素材AI归类区 p{margin:0}.素材AI归类区 h3{font-size:15px}.素材AI归类区 header small,.素材AI归类区 header p{color:var(--workbench-text-muted);font-size:10px}.素材AI归类区 header>span{padding:4px 8px;border-radius:999px;background:var(--workbench-surface-raised);color:var(--workbench-text-secondary);font-size:10px}
.素材归类预检,.素材归类批次{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.素材归类批次{grid-template-columns:repeat(4,minmax(0,1fr))}.素材归类预检>div,.素材归类批次>div{padding:10px;display:grid;gap:3px;border:1px solid var(--workbench-border-subtle);border-radius:var(--workbench-action-radius);background:var(--workbench-surface-raised)}.素材归类预检 span,.素材归类批次 span{color:var(--workbench-text-muted);font-size:9px}.素材归类预检 strong,.素材归类批次 strong{font-size:12px}

@media(max-width:760px){.素材架构转换卡{grid-template-columns:minmax(0,1fr) auto}.素材架构转换卡>small{grid-column:1/-1;grid-row:2}.素材架构转换按钮{grid-column:2;grid-row:1}}
@media(max-width:760px){body[data-workbench="xhs"][data-current-page="material"] .环节画布{overflow:auto}body[data-workbench="xhs"][data-current-page="material"] .素材采集库页面.内容中心同版页面{height:auto;min-height:calc(100dvh - var(--site-navigation-height,64px));grid-template-columns:minmax(0,1fr);overflow:visible}body[data-workbench="xhs"][data-current-page="material"] .素材采集库侧栏{height:auto;grid-template-rows:54px auto;border-right:0;border-bottom:1px solid var(--workbench-border-subtle)}body[data-workbench="xhs"][data-current-page="material"] .素材采集库侧栏>nav{display:flex;gap:12px;overflow-x:auto}body[data-workbench="xhs"][data-current-page="material"] .素材采集库分类组{flex:0 0 auto;display:flex;align-items:stretch;gap:6px}body[data-workbench="xhs"][data-current-page="material"] .素材采集库分类组+.素材采集库分类组{padding-top:0;padding-left:12px;border-top:0;border-left:1px solid var(--workbench-border-subtle)}body[data-workbench="xhs"][data-current-page="material"] .素材采集库分类组>em,body[data-workbench="xhs"][data-current-page="material"] .素材采集库侧栏>footer{display:none}body[data-workbench="xhs"][data-current-page="material"] .素材采集库分类组>button{flex:0 0 168px}body[data-workbench="xhs"][data-current-page="material"] .素材采集库页面>.内容中心同版主区{height:auto;overflow:visible}body[data-workbench="xhs"][data-current-page="material"] .素材采集库主区{overflow:visible}body[data-workbench="xhs"][data-current-page="material"] .素材采集库内容面板{min-height:0;padding:12px}body[data-workbench="xhs"][data-current-page="material"] .素材采集库内容面板>.模板库主体.素材采集库主体已选中,body[data-workbench="xhs"][data-current-page="material"] .素材采集库搜索栏,.素材分类统计,.素材分类配置行,.素材归类预检,.素材归类批次{grid-template-columns:minmax(0,1fr)}}
