
/* ================= 右上角形态下拉 ================= */
[data-lgdps-anchor] { position: relative; }

.lgdps {
  position: absolute;
  top: 16px;
  right: 20px;
  z-index: 20;
  font-family: "PingFang SC", -apple-system, BlinkMacSystemFont, "Microsoft YaHei", sans-serif;
}
/* 其它补丁的全屏浮层打开时，下拉让位，避免浮在面板之上 */
body.apd-open .lgdps,
body.adev-open .lgdps,
body.cp-plaza-open .lgdps,
body.dev-wf-open .lgdps,
body.ab-analysis-open .lgdps,
body.da-home-open .lgdps { display: none !important; }

.lgdps-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 10px 0 12px;
  border: 1px solid rgba(0, 0, 0, 0.10);
  border-radius: 8px;
  background: #fff;
  font-family: inherit;
  font-size: 13px;
  line-height: 20px;
  font-weight: 500;
  color: rgba(0, 0, 0, 0.82);
  white-space: nowrap;
  cursor: pointer;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.lgdps-trigger:hover { border-color: rgba(0, 0, 0, 0.20); background: #fcfcfd; }
.lgdps-trigger:focus-visible { outline: 2px solid rgba(41, 112, 255, 0.35); outline-offset: 1px; }
.lgdps.is-open .lgdps-trigger {
  border-color: rgba(41, 112, 255, 0.45);
  box-shadow: 0 0 0 2px rgba(41, 112, 255, 0.10);
}
.lgdps-caret {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  color: rgba(0, 0, 0, 0.35);
  transition: transform .18s cubic-bezier(.645, .045, .355, 1);
}
.lgdps.is-open .lgdps-caret { transform: rotate(180deg); }

.lgdps-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 132px;
  padding: 4px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.10), 0 1px 3px rgba(0, 0, 0, 0.06);
  opacity: 0;
  transform: translateY(-4px);
  pointer-events: none;
  transition: opacity .16s, transform .16s;
}
.lgdps.is-open .lgdps-menu { opacity: 1; transform: translateY(0); pointer-events: auto; }
.lgdps-opt {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 8px;
  height: 32px;
  padding: 0 8px 0 10px;
  border: none;
  border-radius: 7px;
  background: transparent;
  font-family: inherit;
  font-size: 13px;
  line-height: 20px;
  color: rgba(0, 0, 0, 0.82);
  text-align: left;
  cursor: pointer;
  transition: background .15s, color .15s;
}
.lgdps-opt:hover { background: rgba(0, 0, 0, 0.04); }
.lgdps-opt-tx { flex: 1; min-width: 0; }
.lgdps-opt.is-active { color: #2970ff; font-weight: 500; }
.lgdps-check { width: 14px; height: 14px; flex: 0 0 auto; opacity: 0; color: #2970ff; }
.lgdps-opt.is-active .lgdps-check { opacity: 1; }

/* ================= Web 形态：接管开发首页内容区 ================= */
/* 限定 :has(> .lgweb-page)，只命中真正注入过的那个容器 */
body.lgdps-web .develop-page:has(> .lgweb-page) > :not(.lgweb-page) {
  display: none !important;
}

.lgweb-page {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 100%;
  padding: 40px 24px;
  box-sizing: border-box;
  font-family: "PingFang SC", -apple-system, BlinkMacSystemFont, "Microsoft YaHei", sans-serif;
  animation: lgweb-fade-in .24s cubic-bezier(.645, .045, .355, 1);
}
@keyframes lgweb-fade-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.lgweb-title {
  margin: 0;
  font-size: 28px;
  font-weight: 600;
  line-height: 40px;
  letter-spacing: .5px;
  color: rgba(0, 0, 0, 0.88);
  text-align: center;
}
.lgweb-sub {
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 20px;
  color: rgba(0, 0, 0, 0.45);
  text-align: center;
}

/* ---------- 主卡片 ---------- */
.lgweb-card {
  display: flex;
  width: 620px;
  max-width: 100%;
  height: 270px;
  margin: 30px 0 0;
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 16px;
  /* 设计稿：左侧近白、向右过渡到淡紫 */
  background: linear-gradient(102deg, #F7F8FE 0%, #F3F1FB 46%, #EAE6F7 100%);
  overflow: hidden;
}
.lgweb-card-l {
  flex: 0 0 292px;
  display: flex;
  flex-direction: column;
  padding: 32px 20px 26px 28px;
  box-sizing: border-box;
}
.lgweb-card-t {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
  color: rgba(0, 0, 0, 0.88);
}
.lgweb-card-d {
  margin: 10px 0 0;
  font-size: 14px;
  line-height: 24px;
  color: rgba(0, 0, 0, 0.48);
}
.lgweb-dl {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 6px;
  height: 32px;
  margin-top: auto;
  padding: 0 14px;
  border: none;
  border-radius: 8px;
  background: #2970ff;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  line-height: 20px;
  color: #fff;
  cursor: pointer;
  transition: background .15s, box-shadow .15s;
}
.lgweb-dl:hover { background: #1c5ce0; box-shadow: 0 2px 8px rgba(41, 112, 255, 0.28); }
.lgweb-dl svg { width: 14px; height: 14px; flex: 0 0 auto; }

/* ---------- 右侧产品截图（底部有意溢出，由卡片 overflow 裁切） ---------- */
.lgweb-card-r {
  flex: 1 1 auto;
  min-width: 0;
  padding: 46px 8px 0 0;
  box-sizing: border-box;
}
.lgweb-shot {
  height: 268px;
  padding: 16px 14px;
  box-sizing: border-box;
  border: 1px solid rgba(0, 0, 0, 0.04);
  border-radius: 10px 10px 0 0;
  background: #fff;
  box-shadow: 0 2px 12px rgba(23, 26, 56, 0.06);
  overflow: hidden;
}
.lgweb-bubble {
  display: block;
  max-width: 90%;
  margin: 0 0 0 auto;
  padding: 7px 11px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  font-size: 11px;
  line-height: 16px;
  color: rgba(0, 0, 0, 0.82);
}
.lgweb-shot-tx {
  margin: 14px 0 0;
  font-size: 11px;
  line-height: 16px;
  color: rgba(0, 0, 0, 0.62);
}
.lgweb-chip {
  display: inline-block;
  margin: 0 2px;
  padding: 0 4px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.05);
  font-family: "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 10px;
  color: rgba(0, 0, 0, 0.72);
}
.lgweb-code {
  position: relative;
  margin: 10px 0 0;
  padding: 10px 12px;
  border-radius: 8px;
  background: #1B1B1F;
  overflow: hidden;
}
.lgweb-code pre {
  margin: 0;
  font-family: "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 9px;
  line-height: 13px;
  color: #d4d4d4;
  white-space: pre;
  overflow: hidden;
}
.lgweb-copy {
  position: absolute;
  top: 6px;
  right: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  padding: 0;
  border: none;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  transition: background .15s, color .15s;
}
.lgweb-copy:hover { background: rgba(255, 255, 255, 0.16); color: #fff; }
.lgweb-copy svg { width: 12px; height: 12px; }
/* 代码着色 */
.lgweb-t-doc  { color: #808080; }
.lgweb-t-tag  { color: #569cd6; }
.lgweb-t-attr { color: #9cdcfe; }
.lgweb-t-str  { color: #ce9178; }
.lgweb-t-sel  { color: #d7ba7d; }
.lgweb-t-var  { color: #4ec9b0; }

/* ---------- 底部能力胶囊 ---------- */
.lgweb-modes {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 22px 0 0;
}
.lgweb-mode {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 13px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 999px;
  background: #fff;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  line-height: 20px;
  color: rgba(0, 0, 0, 0.78);
  white-space: nowrap;
  cursor: pointer;
  transition: border-color .15s, box-shadow .15s, color .15s;
}
.lgweb-mode:hover {
  border-color: rgba(0, 0, 0, 0.16);
  color: rgba(0, 0, 0, 0.88);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}
.lgweb-mode svg { width: 16px; height: 16px; flex: 0 0 auto; }
.lgweb-mode--skill svg { color: #2970ff; }
.lgweb-mode--agent svg { color: #FF7A1A; }
.lgweb-mode--app   svg { color: #7C5CFF; }
  