/* 装饰背景贴合直接容器，低于文字及按钮。编辑态可点空白处或从页面结构选中。 */
:where(:has(> [data-design-backdrop])) { position: relative; }
/* 顶边柔光需要取到相邻区块的颜色，只有其它背景层需要隔离父容器。 */
:where(:has(> [data-design-backdrop]:not([data-backdrop-placement="SECTION_EDGE"]))) { isolation: isolate; }
[data-design-backdrop] {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  border-radius: inherit; background-repeat: no-repeat; background-position: center;
  background-size: var(--design-backdrop-size, cover);
}
[data-design-backdrop][data-design-editor-node] { pointer-events: auto; }
[data-design-backdrop][data-backdrop-empty] { opacity: 1 !important; outline: 1px dashed #8d81c3; outline-offset: -1px; }
@media (max-width: 760px) {
  [data-design-backdrop] { background-size: var(--design-backdrop-compact-size, var(--design-backdrop-size, cover)); }
}
@media (prefers-reduced-motion: no-preference) {
  [data-design-backdrop]:is([data-backdrop-motion="FLOAT"], [data-backdrop-motion="WAVE"], [data-backdrop-motion="BREATHE"]) {
    animation-duration: var(--design-backdrop-duration); animation-timing-function: ease-in-out;
    animation-iteration-count: infinite; animation-direction: alternate;
  }
  [data-design-backdrop][data-backdrop-motion="FLOAT"] { animation-name: design-backdrop-float; }
  [data-design-backdrop][data-backdrop-motion="WAVE"] { animation-name: design-backdrop-wave; }
  [data-design-backdrop][data-backdrop-motion="BREATHE"] { animation-name: design-backdrop-breathe; }
}
@keyframes design-backdrop-float { to { opacity: var(--design-backdrop-end-opacity); transform: translate3d(0,-16px,0) scale(1.06); } }
@keyframes design-backdrop-wave { to { opacity: var(--design-backdrop-end-opacity); transform: translate3d(0,-8px,0) scale(1.055); } }
@keyframes design-backdrop-breathe { to { opacity: var(--design-backdrop-end-opacity); transform: translate3d(0,-6px,0) scale(1.045) rotate(1.5deg); } }

/* 默认位置覆盖容器。两个渐隐位置随图层一起复制。 */
[data-design-backdrop] { opacity: var(--design-backdrop-opacity, 1); }
[data-design-backdrop][data-backdrop-placement="TOP"] {
  inset-block-end: 24%; mask-image: linear-gradient(#000 0%, #000 22%, transparent 100%);
}
[data-design-backdrop][data-backdrop-placement="RIGHT"] {
  inset-inline-start: auto; width: 72%; mask-image: linear-gradient(to right, transparent, #000 46%);
}
/* 遮罩在图片前面，封面文字和操作入口仍在最上层。仅使用此摆放方式的容器启用。 */
[data-design-backdrop][data-backdrop-placement="OVERLAY"] { z-index: 0; }
/* 垫底图层在首屏插图和盖在插图上方的遮罩下面。 */
[data-design-backdrop][data-backdrop-placement="UNDERLAY"] { z-index: -3; }
/* 高度可在画布拖动。始终让容器顶边落在柔光中点，与原型的前后叠色顺序一致。 */
[data-design-backdrop][data-backdrop-placement="SECTION_EDGE"] {
  inset-block-start: 0; inset-block-end: auto; height: 32px; translate: 0 -50%;
  z-index: auto; border-radius: 0; background-position: 0 0; background-size: auto;
}
/* 只有配置了窄屏渐变的图层才切换这个变量，旧稿继续直接使用原背景。 */
[data-backdrop-compact-gradient] { --design-backdrop-active-image: var(--design-backdrop-desktop-image); }
@media (max-width: 760px) {
  [data-backdrop-compact-gradient]:not([data-backdrop-compact-width="PHONE"]) {
    --design-backdrop-active-image: var(--design-backdrop-compact-image);
  }
}
@media (max-width: 600px) {
  /* 首页在 600 像素才换遮罩。切换的是本组件的窄屏值。 */
  [data-backdrop-compact-gradient][data-backdrop-compact-width="PHONE"] {
    --design-backdrop-active-image: var(--design-backdrop-compact-image);
  }
  [data-design-backdrop][data-backdrop-compact-width="PHONE"] {
    opacity: var(--design-backdrop-compact-opacity, var(--design-backdrop-opacity, 1));
  }
}
:where(:has(> [data-backdrop-placement="OVERLAY"])) > :where(:not([data-design-backdrop], img, picture)) {
  position: relative;
  z-index: 1;
}
[data-design-backdrop][data-backdrop-overlay] {
  background-size: cover, var(--design-backdrop-size, cover);
}
@media (max-width: 760px) {
  [data-design-backdrop]:not([data-backdrop-compact-width="PHONE"]) {
    opacity: var(--design-backdrop-compact-opacity, var(--design-backdrop-opacity, 1));
  }
  [data-design-backdrop][data-backdrop-placement="RIGHT"] {
    width: 130%; mask-image: linear-gradient(to right, transparent, #000 80%);
  }
  [data-design-backdrop][data-backdrop-overlay] {
    background-size: cover, var(--design-backdrop-compact-size, var(--design-backdrop-size, cover));
  }
}
[data-design-backdrop][data-backdrop-motion="HOVER_ZOOM"] { transition: transform .4s ease, opacity .4s ease; }
:hover > [data-design-backdrop][data-backdrop-motion="HOVER_ZOOM"] {
  opacity: var(--design-backdrop-end-opacity); transform: scale(1.04);
}
@media (prefers-reduced-motion: reduce) {
  [data-design-backdrop][data-backdrop-motion="HOVER_ZOOM"] { transition: none; }
}

/* 新闻列表的链接容器使用共用版式，封面、日期、标题、摘要和箭头仍是独立组件。 */
.news-feed {
  border-top: 1px solid #58638280;
}
:is(.feed-item, [data-site-link-style="NEWS_ROW"]) {
  display: grid;
  grid-template-columns: 104px minmax(0,1fr) 28px;
  align-items: center;
  gap: 34px;
  min-height: 138px;
  padding: 25px 16px 25px 5px;
  border-bottom: 1px solid #58638280;
  transition: background .2s,padding .2s;
}
:is(.feed-item, [data-site-link-style="NEWS_ROW"]):hover {
  padding-left: 17px;
  background: #171e31;
}
:is(.feed-item, [data-site-link-style="NEWS_ROW"]) time {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #acb8d3;
  font: 12px/1.35 ui-monospace,monospace;
  white-space: nowrap;
}
:is(.feed-item, [data-site-link-style="NEWS_ROW"]) time b {
  color: #a8a9d1;
  font: 500 52px/1 Inter,"PingFang SC",sans-serif;
  letter-spacing: -.07em;
}
:is(.feed-item, [data-site-link-style="NEWS_ROW"]) h3 {
  margin: 0;
  color: #f3f4fa;
  font-size: clamp(18px,1.75vw,25px);
  font-weight: 500;
  line-height: 1.42;
  letter-spacing: -.025em;
}
:is(.feed-item, [data-site-link-style="NEWS_ROW"]) p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  margin: 8px 0 0;
  color: #aeb9cc;
  font-size: 13px;
  line-height: 1.7;
}
.feed-arrow {
  align-self: start;
  margin-top: 10px;
  color: var(--accent);
  font-size: 20px;
  transition: transform .2s;
}
:is(.feed-item, [data-site-link-style="NEWS_ROW"]):hover .feed-arrow {
  transform: translate(3px,-3px);
}
:is(.news-feed .feed-item, [data-site-link-style="NEWS_ROW"]) {
  grid-template-columns: minmax(180px,232px) 78px minmax(0,1fr) 20px;
  gap: 24px;
  min-height: 172px;
  padding: 20px 12px 20px 0;
}
:is(.news-feed .feed-item, [data-site-link-style="NEWS_ROW"]):hover {
  padding-left: 10px;
}
.feed-cover {
  display: block;
  width: 100%;
  aspect-ratio: 16/9;
  height: auto;
  object-fit: cover;
  border: 1px solid #9dadd246;
  border-radius: 4px;
  background: #17223a;
  transition: transform .25s ease,filter .25s ease;
}
:is(.feed-item, [data-site-link-style="NEWS_ROW"]):hover .feed-cover {
  filter: brightness(1.08);
}
:is(.news-feed .feed-item, [data-site-link-style="NEWS_ROW"]) time b {
  font-size: 42px;
}
@media (max-width:900px) {
  :is(.news-feed .feed-item, [data-site-link-style="NEWS_ROW"]) {
    grid-template-columns: 170px 64px minmax(0,1fr) 18px;
    gap: 16px;
  }
  :is(.news-feed .feed-item, [data-site-link-style="NEWS_ROW"]) time b {
    font-size: 34px;
  }
}
@media (max-width:640px) {
  :is(.news-feed .feed-item, [data-site-link-style="NEWS_ROW"]) {
    grid-template-columns: 120px minmax(0,1fr);
    grid-template-rows: auto 1fr;
    gap: 7px 13px;
    align-items: start;
    padding: 18px 0;
  }
  :is(.news-feed .feed-item, [data-site-link-style="NEWS_ROW"]):hover {
    padding-left: 0;
  }
  .feed-cover {
    grid-column: 1;
    grid-row: 1 / 3;
    aspect-ratio: 4/3;
  }
  :is(.news-feed .feed-item, [data-site-link-style="NEWS_ROW"]) time {
    grid-column: 2;
    grid-row: 1;
    flex-direction: row;
    gap: 7px;
    align-items: baseline;
  }
  :is(.news-feed .feed-item, [data-site-link-style="NEWS_ROW"]) time b {
    font-size: 22px;
  }
  :is(.news-feed .feed-item, [data-site-link-style="NEWS_ROW"])>div {
    grid-column: 2;
    grid-row: 2;
  }
  :is(.news-feed .feed-item, [data-site-link-style="NEWS_ROW"]) h3 {
    font-size: 16px;
    line-height: 1.4;
  }
  :is(.news-feed .feed-item, [data-site-link-style="NEWS_ROW"]) p {
    font-size: 11px;
    line-height: 1.55;
  }
  :is(.news-feed .feed-arrow, [data-site-link-style="NEWS_ROW"] .feed-arrow) {
    display: none;
  }
}
@media (max-width:390px) {
  :is(.news-feed .feed-item, [data-site-link-style="NEWS_ROW"]) {
    grid-template-columns: 106px minmax(0,1fr);
    gap: 6px 11px;
  }
  :is(.news-feed .feed-item, [data-site-link-style="NEWS_ROW"]) h3 {
    font-size: 15px;
  }
}
@media (max-width:760px) {
  :is(.feed-item, [data-site-link-style="NEWS_ROW"]) {
    grid-template-columns: 72px minmax(0,1fr) 18px;
    gap: 17px;
    min-height: 118px;
    padding: 20px 4px;
  }
  :is(.feed-item, [data-site-link-style="NEWS_ROW"]) time b {
    font-size: 38px;
  }
  :is(.feed-item, [data-site-link-style="NEWS_ROW"]) time span {
    font-size: 10px;
  }
  :is(.feed-item, [data-site-link-style="NEWS_ROW"]) h3 {
    font-size: 18px;
  }
  :is(.feed-item, [data-site-link-style="NEWS_ROW"]) p {
    font-size: 12px;
  }
  .feed-arrow {
    font-size: 16px;
  }
}
@media (max-width:560px) {
  :is(.feed-item, [data-site-link-style="NEWS_ROW"]) {
    grid-template-columns: 55px minmax(0,1fr);
    gap: 12px;
  }
  :is(.feed-item, [data-site-link-style="NEWS_ROW"]) time b {
    font-size: 34px;
  }
  .feed-arrow {
    display: none;
  }
  :is(.feed-item, [data-site-link-style="NEWS_ROW"]) h3 {
    font-size: 17px;
    overflow-wrap: anywhere;
  }
}
:is(.news-feed .feed-item, [data-site-link-style="NEWS_ROW"]) {
  grid-template-columns: minmax(180px,232px) 78px minmax(0,1fr) 38px;
}
:is(.news-feed .feed-item, [data-site-link-style="NEWS_ROW"]):focus-visible {
  outline: 2px solid #bbb4ff;
  outline-offset: -3px;
  background: #171e31;
}
:is(.news-feed .feed-item, [data-site-link-style="NEWS_ROW"]):is(:hover,:focus-visible) h3 {
  color: #dedaff;
}
:is(.news-feed .feed-arrow, [data-site-link-style="NEWS_ROW"] .feed-arrow) {
  display: grid;
  place-items: center;
  align-self: center;
  width: 38px;
  height: 38px;
  margin: 0;
  border: 1px solid #a6a5ff70;
  border-radius: 50%;
  background: #24253c8c;
  font-size: 18px;
  line-height: 1;
  transition: transform .2s,background .2s,border-color .2s;
}
:is(.news-feed .feed-item, [data-site-link-style="NEWS_ROW"]):is(:hover,:focus-visible) .feed-arrow {
  background: #39395b;
  border-color: #bcb6ff;
  transform: translate(2px,-2px);
}
@media (max-width:900px) {
  :is(.news-feed .feed-item, [data-site-link-style="NEWS_ROW"]) {
    grid-template-columns: 170px 64px minmax(0,1fr) 38px;
  }
}
@media (max-width:640px) {
  :is(.news-feed .feed-item, [data-site-link-style="NEWS_ROW"]) {
    grid-template-columns: 120px minmax(0,1fr);
    grid-template-rows: auto 1fr;
  }
  :is(.news-feed .feed-arrow, [data-site-link-style="NEWS_ROW"] .feed-arrow) {
    display: none;
  }
}
@media (max-width:390px) {
  :is(.news-feed .feed-item, [data-site-link-style="NEWS_ROW"]) {
    grid-template-columns: 106px minmax(0,1fr);
  }
}

/* 产品卡片、卡片列表与卡片内布局共享同一版式。封面和遮罩来自独立图层。 */
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.catalog-card {
  /* 保持各页面使用相同的默认点缀色，组件文字仍可覆盖自己的颜色。 */
  --catalog-card-accent: #a6a5ff;
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  min-height: 330px;
  padding: 26px 24px 22px;
  overflow: hidden;
  border: 1px solid #8791bc4d;
  border-radius: 14px;
  background: #101724;
  box-shadow: inset 0 1px #ffffff16, 0 15px 40px #0307102e;
  transition: transform .25s, border-color .25s, background .25s;
}
.catalog-card:hover {
  transform: translateY(-5px);
  border-color: #b5b4ffb5;
  background: #141b2d;
}
.catalog-card-top, .catalog-card-foot {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #8bd4d6;
  font: 10px/1.5 ui-monospace, SFMono-Regular, monospace;
  letter-spacing: .13em;
}
.catalog-card-top span:last-child { color: #7f8aab; }
.catalog-card h3 {
  margin: 42px 0 18px;
  color: inherit;
  font-size: clamp(19px, 1.55vw, 24px);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -.025em;
}
.catalog-card h3 small {
  display: block;
  margin-top: 3px;
  color: var(--catalog-card-accent);
  font: 500 19px/1.4 Inter, "PingFang SC", sans-serif;
  letter-spacing: 0;
}
.catalog-card p { margin: 0; color: #c0cadb; font-size: 13px; line-height: 1.85; }
.catalog-card-foot { align-items: center; margin-top: auto; padding-top: 28px; color: #9aa7c2; }
.catalog-card-foot span { font-size: 17px; color: var(--catalog-card-accent); }
.catalog-card > * { position: relative; z-index: 2; }
.catalog-card h3 a { color: inherit; }
.catalog-card:focus-within { border-color: #c8c2ff; outline: 2px solid #c8c2ff; outline-offset: 3px; }

/* 标题所在的块通常是定位边界。链接选择整卡时，把定位边界交给外层卡片。 */
.catalog-card h3 a[href]:where(:not([data-site-link-hit-area]), [data-site-link-hit-area="TITLE"], [data-site-link-hit-area="CARD"])::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
}
.catalog-card > h3:has(a[data-site-link-hit-area="CARD"]) { position: static; z-index: 3; }
/* 编辑时覆盖区域不接收鼠标，文字、封面和遮罩都能单独点选。 */
.catalog-card h3 a[data-design-editor-node]::after { pointer-events: none; }

@media (max-width: 1000px) {
  .catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .catalog-card { min-height: 290px; }
}
@media (max-width: 560px) {
  .catalog-grid { grid-template-columns: 1fr; }
  .catalog-card { min-height: 245px; }
  .catalog-card h3 { margin-top: 27px; }
}

/* 旧发布版本仍能回放旧封面。重建卡片关闭旧画法，也不会计算按顺序生成的图片地址。 */
.catalog-card:where(:not([data-design-background-layers], [data-design-explicit-gradient])):nth-child(1){--catalog-art:url("/media/uploads/4c6aa4715a886692b8a9de0068e86dda--%E5%AE%98%E7%BD%91%E7%B4%A0%E6%9D%90-product-application-art.webp")}
.catalog-card:where(:not([data-design-background-layers], [data-design-explicit-gradient])):nth-child(2){--catalog-art:url("/media/uploads/2303fb092bbdcdcffc76340c1cc14757--%E5%AE%98%E7%BD%91%E7%B4%A0%E6%9D%90-product-aos-art.webp")}
.catalog-card:where(:not([data-design-background-layers], [data-design-explicit-gradient])):nth-child(3){--catalog-art:url("/media/uploads/55e0b58a56858eec8fc71b2ca0139784--%E5%AE%98%E7%BD%91%E7%B4%A0%E6%9D%90-product-bos-art.webp")}
.catalog-card:where(:not([data-design-background-layers], [data-design-explicit-gradient])):nth-child(4){--catalog-art:url("/media/uploads/b8bd26ba3def999593eb55815d33d935--%E5%AE%98%E7%BD%91%E7%B4%A0%E6%9D%90-product-cos-art.webp")}
.catalog-card::before {
  content: "";
  position: absolute;
  inset: 0 0 24%;
  z-index: 0;
  background: var(--catalog-art) center top / cover no-repeat;
  filter: brightness(.65) saturate(.85);
  opacity: .82;
  mask-image: linear-gradient(#000 0%, #000 22%, transparent 100%);
  pointer-events: none;
  transition: transform .4s ease, opacity .4s ease;
}
.catalog-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, #0e142292 0%, #101725b8 38%, #101724ef 68%, #101724 100%);
  pointer-events: none;
}
.catalog-card:hover::before { transform: scale(1.04); opacity: .95; }
@media (prefers-reduced-motion: reduce) {
  .catalog-card::before { transition: none; }
}

/* 已切换的卡片和新闻标题只使用画布里的图层，历史稿保留旧版渲染。 */
.catalog-card[data-design-background-layers]::before,
.detail-heading[data-design-background-layers]::before { content: none; }
/* 目录卡片由父容器统一裁圆角。图层再裁一次会改变图片边缘的像素。 */
.catalog-card[data-design-background-layers] > [data-design-backdrop] { position: absolute; z-index: 0; border-radius: 0; }
.detail-heading[data-design-background-layers] > [data-backdrop-placement="RIGHT"] { z-index: -2; }
/* 显式迁移的容器只绘制实际图层。删掉渐变后不补回原样式，历史稿保留旧画面。 */
:is(.catalog-card, .detail-heading, .detail-hero, .sub-cta-section)[data-design-explicit-gradient]::after,
.detail-hero[data-design-explicit-gradient]::before { content: none; }
.detail-hero[data-design-explicit-gradient] > [data-backdrop-placement="OVERLAY"] { z-index: -1; }
.catalog-card[data-design-explicit-gradient] > [data-backdrop-placement="OVERLAY"] { z-index: 1; }
.detail-heading[data-design-explicit-gradient] > [data-backdrop-placement="OVERLAY"] { z-index: -1; }
/* 新草稿的流程卡片由自己的底色图层绘制。原本的边框以及文字和箭头位置继续沿用版式。 */
:is(.aos-journey > div, .bos-path > div, .cos-rail, .cos-rail > .cos-step, .solution-flow > li)[data-design-background-layers] {
  background-image: var(--design-surface-draw-image, none);
}
/* BOS 配图单独保存遮罩。删掉遮罩后只露出原图，历史版本仍按原来的方式绘制。 */
.bos-app figure[data-design-explicit-gradient]::after { content: none; }

/* 业务应用图文卡片的版式由卡片和两块插槽内容决定。独立复制与同页移动都使用这套规则。 */
.bos-app-list {
  display: grid;
  gap: 18px;
}
.bos-app {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 390px;
  height: 410px;
  overflow: hidden;
  border: 1px solid #8e97bc55;
  border-radius: 16px;
  background: #111b2e;
  box-shadow: 0 18px 42px #03071338;
}
/* 历史草稿按奇偶排版。已迁移的卡片自行存储底色，并按插槽内的顺序摆放配图和说明。 */
.bos-app:where(:not([data-design-explicit-child-order])):nth-child(even) {
  background: #181b34;
}
.bos-app:where(:not([data-design-explicit-child-order])):nth-child(even) figure {
  grid-column: 2;
  grid-row: 1;
}
.bos-app:where(:not([data-design-explicit-child-order])):nth-child(even) .bos-app-copy {
  grid-column: 1;
  grid-row: 1;
}
.bos-app figure {
  position: relative;
  min-width: 0;
  min-height: 0;
  margin: 0;
  overflow: hidden;
  background: #0b1526;
}
.bos-app figure::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg,#071020a8,transparent 40%),linear-gradient(90deg,#0a102026,transparent 50%);
  pointer-events: none;
}
.bos-app img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.bos-app figcaption {
  position: absolute;
  z-index: 1;
  left: 24px;
  top: 22px;
  color: #e0eaff;
  font: 10px ui-monospace,monospace;
  letter-spacing: .12em;
  text-shadow: 0 2px 12px #06101d;
}
.bos-app-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  min-width: 0;
  padding: clamp(28px,4vw,56px);
}
.bos-app-copy h3 {
  margin: 17px 0 7px;
  font-size: clamp(27px,3vw,42px);
  font-weight: 500;
  line-height: 1.2;
}
.bos-app-copy strong {
  color: #b8b0ff;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.6;
}
.bos-app-copy p {
  margin: 19px 0 0;
  color: #c6d1e0;
  font-size: 14px;
  line-height: 1.9;
}
.bos-app-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 25px;
}
.bos-app-tags span {
  padding: 6px 10px;
  border: 1px solid #a5a5ee5c;
  border-radius: 5px;
  background: #a6a5ff12;
  color: #d4d9f8;
  font-size: 11px;
}
.bos-app-copy small {
  color: #a8d8ee;
  font: 10px ui-monospace,monospace;
  letter-spacing: .12em;
}

/* 窄屏把配图放到说明之前。历史快照保留奇偶比例，重建稿的特殊比例保存在配图字段里。 */
@media (max-width: 1000px) {
  .bos-app { height: auto; grid-template-columns: 1fr; }
  .bos-app > figure,
  .bos-app:where(:not([data-design-explicit-child-order])):nth-child(even) > figure {
    grid-column: 1;
    grid-row: 1;
    aspect-ratio: 1.7;
  }
  .bos-app > .bos-app-copy,
  .bos-app:where(:not([data-design-explicit-child-order])):nth-child(even) > .bos-app-copy {
    grid-column: 1;
    grid-row: 2;
  }
}
@media (max-width: 760px) {
  .bos-app > figure,
  .bos-app:where(:not([data-design-explicit-child-order])):nth-child(even) > figure { aspect-ratio: 1.5; }
  .bos-app-copy { padding: 28px; }
  .bos-app-copy p { margin-top: 14px; }
}
@media (max-width: 480px) {
  .bos-app > figure { aspect-ratio: 1.25; }
}

/* 有详情链接的重建卡片保留整卡点击。链接地址、文字与焦点仍由独立链接提供。 */
.bos-app[data-design-explicit-child-order] {
  position: relative;
}
.bos-app[data-design-explicit-child-order] .bos-app-detail-link {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  margin-top: 20px;
  padding-bottom: 6px;
  border-bottom: 1px solid #aba3f080;
  color: #dad4ff;
  font-size: 13px;
}
.bos-app[data-design-explicit-child-order] .bos-app-detail-link::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: 16px;
}
.bos-app[data-design-explicit-child-order]:has(.bos-app-detail-link):hover {
  border-color: #b4a6ff;
  box-shadow: 0 14px 42px #070b194d,inset 0 0 0 1px #b4a6ff24;
}
.bos-app[data-design-explicit-child-order]:has(.bos-app-detail-link:focus-visible) {
  outline: 2px solid #c4baff;
  outline-offset: 5px;
}
.bos-app[data-design-explicit-child-order]:has(.bos-app-detail-link) .bos-app-copy {
  padding-block: 28px;
}
.bos-app[data-design-explicit-child-order]:has(.bos-app-detail-link) {
  height: auto;
  min-height: 410px;
}
.bos-app[data-design-explicit-child-order]:has(.bos-app-detail-link) .bos-app-tags {
  margin-top: 16px;
}
.bos-app[data-design-explicit-child-order]:has(.bos-app-detail-link) .bos-app-copy h3 {
  margin-top: 12px;
}

/* 手机里的详情卡片留出一致的说明边距，跨页后也按同一宽度处理。 */
@media (max-width: 600px) {
  .bos-app[data-design-explicit-child-order]:has(.bos-app-detail-link) .bos-app-copy { padding: 26px; }
}

:is(.detail-grid--image-cards, .bos-capabilities) .detail-card[data-design-background-layers],
:is(.detail-flow--bos-visual, .detail-flow--bos-stages, .detail-flow--cos-visual) > div[data-design-background-layers],
#case-slac .bos-case-agent-grid--three article[data-design-background-layers] { background-image: none; }
#case-slac .bos-case-agent-grid--three article[data-design-background-layers]:not(:has(> [data-design-surface-key])) { overflow: hidden; }

/* 联络区开启独立图层后，删除图层也不会恢复版式原有的紫色渐变。 */
.sub-cta-section[data-design-background-layers] { background-image: none; }
.sub-cta-section[data-design-background-layers]:has(> [data-design-surface-key]) {
  background-image: var(--design-surface-draw-image, none);
}

/* 同一个容器可分别保存底图和压暗层。每层的变量写在直接容器上，避免借用外层卡片的底图。 */
:where(:has(> [data-design-surface-key])) {
  --design-surface-draw-image: var(--design-surface-image, none);
  --design-surface-draw-size: var(--design-surface-size, cover);
  --design-surface-draw-compact-size: var(--design-surface-compact-size, var(--design-surface-size, cover));
}
:where(:has(> [data-design-surface-tint])) {
  --design-surface-draw-image: var(--design-surface-tint, none), var(--design-surface-image, none);
  --design-surface-draw-size: cover, var(--design-surface-size, cover);
  --design-surface-draw-compact-size: cover, var(--design-surface-compact-size, var(--design-surface-size, cover));
}
:where(:has(> [data-design-surface-tint]):not(:has(> [data-design-surface-key]:not([data-design-surface-tint])))) {
  --design-surface-image: initial;
  --design-surface-position: initial;
  --design-surface-size: initial;
  --design-surface-compact-size: initial;
}

/* 贴边静态图层只把经过校验的图片、位置与大小交给直接容器。
   背景在容器原有边框下绘制，保留圆角、半透明边框及内阴影的叠色。 */
:where(:has(> [data-design-surface-key])),
:is(.detail-grid--image-cards .detail-card, .bos-capabilities .detail-card,
    :is(.detail-flow--bos-visual, .detail-flow--bos-stages, .detail-flow--cos-visual) > div,
    #case-slac .bos-case-agent-grid--three article)[data-design-background-layers]:has(> [data-design-surface-key]) {
  background-image: var(--design-surface-draw-image, none);
  background-position: var(--design-surface-position, center);
  background-size: var(--design-surface-draw-size, cover);
  /* 平铺方式沿用父容器，避免在分数像素宽度下改变图片取样。 */
}
@media (max-width: 760px) {
  :where(:has(> [data-design-surface-key])),
  :is(.detail-grid--image-cards .detail-card, .bos-capabilities .detail-card,
      :is(.detail-flow--bos-visual, .detail-flow--bos-stages, .detail-flow--cos-visual) > div,
      #case-slac .bos-case-agent-grid--three article)[data-design-background-layers]:has(> [data-design-surface-key]) {
    background-size: var(--design-surface-draw-compact-size, cover);
  }
}
[data-design-surface-key]:not([data-design-editor-node]) { display: none; }
/* 编辑器可在卡片空白处点中压暗层。底图从页面结构点选，两者都不盖住文字。 */
[data-design-surface-tint][data-design-editor-node] { z-index: 0; }
:where(:has(> [data-design-surface-tint][data-design-editor-node])) > :where(:not([data-design-backdrop])) { position: relative; z-index: 1; }

/* 原型的编号和箭头用可选中的组件绘制。旧稿还是由各自的样式生成。 */
.detail-flow[data-design-explicit-flow-marks] > div::before,
.aos-journey[data-design-explicit-flow-marks] > div:not(:last-child)::after,
.bos-path[data-design-explicit-flow-marks] > div:not(:last-child)::after,
.cos-rail[data-design-explicit-flow-marks] > .cos-step::after,
.product-dos-flow[data-design-explicit-flow-marks] li::before,
.solution-flow[data-design-explicit-flow-marks] li::before { content: none; }

/* 迁移后的清单和标签只显示实际组件。旧横线原占 1 像素，用留白补足原有行高。 */
.detail-panel ul[data-design-explicit-list-marks] > li { border-top: 0; padding-top: 17px; }
.detail-panel ul[data-design-explicit-list-marks] > li::before,
.bos-overview-tags[data-design-explicit-list-marks] span:not(:last-child)::after { content: none; }
/* 已拆成组件的标题只画草稿里保留的色块。旧版仍用原来的样式。 */
:is(.eyebrow, .detail-kicker)[data-design-explicit-accent]::before { content: none; }
[data-design-flow-mark] { position: absolute; font-style: normal; }
[data-design-flow-mark] > b { font: inherit; }
[data-design-flow-mark] > [data-mark-narrow] { display: none; }
[data-design-flow-mark="NUMBER"] {
  top: 25px; left: 25px; color: var(--cyan, #9ee3e6);
  font: 11px ui-monospace, monospace; text-shadow: 0 1px 10px #06101d;
}
[data-design-flow-mark="RIGHT_MIDDLE"] {
  z-index: 2; right: -16px; top: 50%; color: var(--cyan, #9ee3e6); font-size: 21px;
}
[data-design-flow-mark="RIGHT_UPPER"] {
  z-index: 1; right: -16px; top: 45px; color: #a7a2f6; font-size: 21px;
}
[data-design-flow-mark="GLOW"] {
  left: calc(100% + 5px); top: 119px; width: 25px; color: #9fe8ff;
  font: 32px/1 Inter, sans-serif; text-shadow: 0 0 14px #54c9ff;
}
[data-design-flow-mark="GRID"] { left: -8px; color: #a5a0da; }
[data-design-flow-mark="STACK"] { left: -17px; top: calc(50% - 13px); color: #a59dff; }
/* 箭头使用清单行的自然文字高度。连接符留在行内，与前面的标签一起排版。 */
[data-design-flow-mark="LIST_LEADING"] { left: 0; color: var(--accent, currentColor); }
[data-design-flow-mark="INLINE_SEPARATOR"] { position: static; margin-inline-start: 9px; color: #666d9f; }
@media (min-width: 761px) and (prefers-reduced-motion: no-preference) {
  [data-design-flow-mark="GLOW"][data-mark-animated] { animation: design-flow-mark-glow 3s ease-in-out infinite; }
  [data-design-flow-mark="GLOW"][data-mark-animated][data-mark-offset] { animation-delay: -1.5s; }
}
@keyframes design-flow-mark-glow { 50% { opacity: .42; transform: translateX(4px); } }
@media (max-width: 1000px) {
  [data-design-flow-mark]:is([data-design-flow-mark="RIGHT_MIDDLE"], [data-design-flow-mark="RIGHT_UPPER"]) { display: none; }
  [data-design-flow-mark="STACK"] { left: -13px; }
}
@media (max-width: 760px) {
  [data-design-flow-mark][data-mark-compact-hidden], [data-design-flow-mark] > [data-mark-wide] { display: none; }
  [data-design-flow-mark] > [data-mark-narrow] { display: inline; }
  [data-design-flow-mark="GLOW"] { top: calc(100% + 5px); left: calc(50% - 12px); transform: rotate(90deg); }
  [data-design-flow-mark="STACK"] { left: calc(50% - 4px); top: -23px; }
}

/* 减少动效时背景仍随滚动位置变化，但不加过渡。 */
@media (prefers-reduced-motion: reduce) {
  [data-site-scroll-backdrop] { transition: none !important; }
}

/* 导航容器显式开启后才绘制高亮。具体断点由页眉版式决定。 */
[data-site-nav-highlight-marker] { display: none; }
@media (min-width: 941px) {
  :where([data-site-nav-highlight]) { position: relative; isolation: isolate; }
  [data-site-nav-highlight-marker]:not([hidden]) {
    display: block;
    box-sizing: border-box;
    position: absolute;
    inset: 0 auto auto 0;
    z-index: -1;
    pointer-events: none;
    border-radius: 5px;
    background: linear-gradient(180deg, #c3c0ff1c, #9b9dff12);
    border: 1px solid #c3c0ff26;
    box-shadow: inset 0 1px #ddd9ff18, 0 6px 18px #0002;
  }
}
@media (prefers-reduced-motion: no-preference) {
  [data-site-nav-highlight-marker][data-nav-highlight-positioned] {
    transition: transform .32s cubic-bezier(.2, .8, .2, 1), width .32s, height .32s;
  }
}

/* 反馈层只绘制光圈和波纹，不抢按钮、触屏或拖放事件。坐标始终是当前视口坐标。 */
[data-site-feedback-layer] {
  position: fixed;
  inset: 0;
  overflow: hidden;
  z-index: 90;
  pointer-events: none;
}
[data-site-feedback-halo], [data-site-feedback-ripple] {
  position: absolute;
  left: var(--feedback-x);
  top: var(--feedback-y);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}
[data-site-feedback-halo] {
  width: 22px;
  height: 22px;
  border: 1px solid #9b9dff85;
  opacity: 0;
  transition: width .18s, height .18s, background .18s, opacity .15s;
  mix-blend-mode: screen;
}
[data-site-feedback-halo][data-feedback-visible] { opacity: 1; }
[data-site-feedback-halo][data-feedback-action] {
  width: 38px;
  height: 38px;
  background: #9b9dff12;
  border-color: #9b9dff;
}
[data-site-feedback-halo]::after {
  content: "";
  position: absolute;
  inset: 50% auto auto 50%;
  width: 3px;
  height: 3px;
  background: #b7e7e9;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}
[data-site-feedback-ripple] {
  width: 18px;
  height: 18px;
  border: 1px solid #9b9dff;
  box-shadow: 0 0 15px #9b9dff30;
  animation: site-feedback-ripple .6s ease-out forwards;
}
@keyframes site-feedback-ripple {
  from { opacity: .9; transform: translate(-50%, -50%) scale(.4); }
  to { opacity: 0; transform: translate(-50%, -50%) scale(3.4); }
}
@media (prefers-reduced-motion: reduce) {
  [data-site-feedback-layer] { display: none; }
}

/* 原型右侧拖拽条可用于任意页面版式。触屏保留系统滚动条。 */
@media (hover:hover) and (pointer:fine) {
  html.hx-has-scroll-rail { scrollbar-width:none; }
  html.hx-has-scroll-rail::-webkit-scrollbar { width:0; height:0; }
  .hx-scroll-rail {
    position:fixed;inset:0 0 0 auto;width:30px;z-index:80;
    opacity:0;transition:opacity .22s ease;cursor:pointer;
    touch-action:none;user-select:none;
  }
  .hx-scroll-rail:hover,.hx-scroll-rail:focus-visible,.hx-scroll-rail.is-dragging { opacity:1; }
  .hx-scroll-rail:focus-visible { outline:2px solid #aaa6ff;outline-offset:-2px; }
  .hx-scroll-rail-track {
    position:absolute;right:8px;top:88px;bottom:24px;width:5px;
    border-radius:99px;background:#b4b6e638;box-shadow:0 0 0 1px #080c18a6;
  }
  .hx-scroll-rail-thumb {
    display:block;width:7px;height:var(--rail-thumb-height,40px);margin-left:-1px;
    border-radius:99px;background:linear-gradient(#a7d7ef,#aaa6ff);
    box-shadow:0 0 0 1px #eeeaff55,0 0 13px #9698ff9a;
    transform:translateY(var(--rail-thumb-top,0px));will-change:transform;
  }
}
@media (hover:none), (pointer:coarse) { .hx-scroll-rail { display:none; } }
@media (prefers-reduced-motion:reduce) { .hx-scroll-rail { transition:none; } }

/* 播放用图与矢量图同放一个容器。图片占同一块区域，所有点击仍由原矢量节点接收。 */
:where(:has(> img[data-flow-playback-image])) { position: relative; }
img[data-flow-playback-image] {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain;
  pointer-events: none; display: none; opacity: 0;
}
img[data-flow-playback-image][data-flow-playback-loading] { display: block; }
img[data-flow-playback-image][data-flow-playback-active] { opacity: 1; }
/* 编辑时放在同一区域供选择，避免素材在正文额外占一行。 */
img[data-flow-playback-image][data-flow-playback-editor] { display: block; opacity: 1; pointer-events: auto; }
/* Puck 强制开启编辑节点的点击。仅在可编辑矢量图旁关闭动图命中，仍保留属性栏入口。 */
:where(:has(> svg[data-vector-editing-layers])) > img[data-flow-playback-image][data-flow-playback-editor] { opacity: 0; pointer-events: none !important; }
/* 点卡片背景选择步骤图层，点文字仍选择该段文字。 */
svg[data-vector-editing-layers] [data-flow-node] > [data-flow-paint="CARD"] { pointer-events: auto; }
:where(:has(> img[data-flow-playback-image][data-flow-playback-active])) > svg { opacity: 0; }

/* 矢量图元按清单指定的用途显示默认和高亮外观。步骤标识由流程脚本读取，样式可跨页复用。 */
svg [data-flow-node]:has(> [data-flow-paint="CARD"]) { cursor: pointer; outline: none; }
svg [data-flow-paint="CARD"] { fill: #0e1622; stroke: #303c51; transition: fill .35s, stroke .35s; }
svg [data-flow-paint="BAR"] { fill: #35445e; stroke: #35445e; }
svg [data-flow-paint="LABEL"] { fill: #8d98ad; }
svg [data-flow-paint="CHANNEL"] { stroke: #202b3d; transition: stroke .3s; }
svg [data-flow-paint="PARTICLE"] { opacity: 0; filter: drop-shadow(0 0 4px #99adff); }
/* 图形节点有键盘焦点时标出卡片轮廓，选中状态继续用同一组图元显示。 */
svg [data-flow-node]:is(:hover, :focus-visible) > [data-flow-paint="CARD"] { stroke: #b5a2ff; stroke-width: 2; }
svg [data-flow-node][aria-pressed="true"] > [data-flow-paint="CARD"] { fill: #1a1c35; stroke: #b5a2ff; }
svg [data-flow-node][aria-pressed="true"] > [data-flow-paint="BAR"] { fill: #b5a2ff; stroke: #b5a2ff; }
svg [data-flow-node][aria-pressed="true"] > [data-flow-paint="LABEL"] { fill: #78baff; }
svg [data-flow-paint="CHANNEL"][data-flow-active] { stroke: #645e94; }
svg [data-flow-paint="PARTICLE"][data-flow-active] { opacity: 1; }

/* 协同流程自带版式，布局、图片、步骤和状态文字仍可以独立编辑。 */
[data-site-flow-style="PROTOTYPE"] {
  box-sizing: border-box; width: min(90.6%, 1320px); margin-inline: auto;
  padding-block: 64px; border-bottom: 1px solid #293143; scroll-margin-top: 100px;
  color: #f1f3f8; font-size: 14px; line-height: 1.75;
}
[data-site-flow-style="PROTOTYPE"] .hxf-intro {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: 28px;
}
[data-site-flow-style="PROTOTYPE"] .hxf-intro h2 {
  font-size: clamp(25px, 3.1vw, 40px); margin: 14px 0 12px; letter-spacing: -1px;
}
[data-site-flow-style="PROTOTYPE"] .hxf-intro p { font-size: 14px; line-height: 1.8; color: #969faf; margin: 0; }
[data-site-flow-style="PROTOTYPE"] .hx-index { font: 12px ui-monospace, monospace; letter-spacing: 2px; color: #8cd1d6; }
[data-site-flow-style="PROTOTYPE"] .hxf-title-same-color { color: inherit; margin-left: .5em; }
[data-site-flow-style="PROTOTYPE"] .hxf-layout {
  display: grid; grid-template-columns: minmax(0, 3fr) minmax(240px, 1fr); gap: 30px;
}
[data-site-flow-style="PROTOTYPE"] .hxf-scroll { overflow-x: auto; scrollbar-color: #625a88 #0a1019; }
[data-site-flow-style="PROTOTYPE"] .hxf-diagram { background: #0b1019; min-width: 660px; }
[data-site-flow-style="PROTOTYPE"] .hxf-diagram svg { display: block; width: 100%; height: auto; }
[data-site-flow-style="PROTOTYPE"] .hxf-feedback-dot { filter: drop-shadow(0 0 4px #78baff); }
[data-site-flow-style="PROTOTYPE"] .hxf-options { display: flex; flex-direction: column; justify-content: space-between; gap: 0; }
[data-site-flow-style="PROTOTYPE"] .hxf-option {
  appearance: none; border: 0; border-top: 1px solid #2a3343; background: transparent;
  color: #8d98ad; text-align: left; padding: 22px 0 20px; cursor: pointer;
  display: grid; grid-template-columns: 30px 1fr; gap: 0 8px;
  font: inherit; text-decoration: none; transition: color .25s, border-color .25s;
}
[data-site-flow-style="PROTOTYPE"] .hxf-option:is(:hover, :focus-visible, [data-flow-active]) { color: #edf0fa; }
[data-site-flow-style="PROTOTYPE"] .hxf-option:focus-visible { outline: 2px solid #b5a2ff; outline-offset: 4px; }
[data-site-flow-style="PROTOTYPE"] .hxf-option[data-flow-active] { border-color: #b5a2ff; }
[data-site-flow-style="PROTOTYPE"] .hxf-option > span { font: 11px ui-monospace, monospace; color: #78baff; padding-top: 7px; }
[data-site-flow-style="PROTOTYPE"] .hxf-option strong { font-size: 22px; line-height: 1.3; font-weight: 500; }
[data-site-flow-style="PROTOTYPE"] .hxf-option em { display: block; font-style: normal; font-size: 13px; margin-top: 8px; }
[data-site-flow-style="PROTOTYPE"] .hxf-option[data-flow-active] em,
[data-site-flow-style="PROTOTYPE"][data-flow-playing="true"] .hxf-option em { color: #b5a2ff; }
[data-site-flow-style="PROTOTYPE"][data-flow-playing="true"] .hxf-option { color: #edf0fa; border-color: #2a3343; }
[data-site-flow-style="PROTOTYPE"] .hxf-option p { font-size: 12px; line-height: 1.9; margin: 12px 0 0; color: #8d98ad; }
[data-site-flow-style="PROTOTYPE"] .hxf-footer {
  margin-top: 24px; padding-top: 18px; border-top: 1px solid #293143;
  display: flex; justify-content: space-between; gap: 20px; font-size: 11px; color: #7f8ba0; line-height: 1.7;
}
[data-site-flow-style="PROTOTYPE"] .hxf-status { color: #a9b7d8; }
[data-site-flow-style="PROTOTYPE"] .hxf-mobile-hint { display: none; }

/* 先缩为单栏，再改为每条步骤独占一行。矢量图始终在自己的区域内横向滚动。 */
@media (max-width: 1000px) {
  [data-site-flow-style="PROTOTYPE"] .hxf-layout { grid-template-columns: minmax(0, 1fr); }
  [data-site-flow-style="PROTOTYPE"] .hxf-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
  [data-site-flow-style="PROTOTYPE"] .hxf-option strong { font-size: 20px; }
}
@media (max-width: 760px) {
  [data-site-flow-style="PROTOTYPE"] { width: 88%; }
}
@media (max-width: 620px) {
  /* 原型的手机布局只收窄底部留白，标题前仍保留桌面的顶部间距。 */
  [data-site-flow-style="PROTOTYPE"] { padding-block-end: 40px; }
  [data-site-flow-style="PROTOTYPE"] .hxf-intro,
  [data-site-flow-style="PROTOTYPE"] .hxf-footer { display: block; }
  [data-site-flow-style="PROTOTYPE"] .hxf-options { grid-template-columns: minmax(0, 1fr); gap: 0; }
  [data-site-flow-style="PROTOTYPE"] .hxf-option { padding: 16px 0; }
  [data-site-flow-style="PROTOTYPE"] .hxf-option p { margin-top: 6px; }
  [data-site-flow-style="PROTOTYPE"] .hxf-footer > span { display: block; margin: 5px 0; }
  [data-site-flow-style="PROTOTYPE"] .hxf-mobile-hint { display: block; font-size: 11px; color: #8d98ad; margin: 0 0 12px; }
}
@media (prefers-reduced-motion: reduce) {
  [data-site-flow-style="PROTOTYPE"] .hxf-option { transition: none; }
}

/* 有序列表可选用灯光流程版式。步骤顺序按列表排列，图标框和文字保留独立的编辑入口。 */
[data-site-sequence] {
  box-sizing: border-box; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr);
  align-items: center; gap: 0; list-style: none; margin: 20px 0 0; padding: 28px 20px;
  border: 1px solid #9d95df55; border-radius: 12px;
  background: linear-gradient(125deg, #141e32, #1a1c35); overflow: hidden;
}
[data-site-sequence] > li {
  position: relative; min-width: 0; display: flex; align-items: center; flex-direction: column;
  gap: 14px; padding: 0 8px;
}
[data-site-sequence] > li > [data-site-sequence-icon] {
  position: relative; z-index: 1; display: grid; place-items: center;
  box-sizing: border-box; width: 60px; height: 60px; border: 1px solid #a9a1ef66; border-radius: 17px;
  background: linear-gradient(145deg, #313553, #172338); color: #bbb6ff;
  box-shadow: inset 0 1px #ffffff14;
  animation: site-sequence-icon var(--sequence-cycle, 5s) ease-in-out infinite;
  animation-delay: var(--sequence-delay, 0s); animation-play-state: paused;
}
[data-site-sequence] > li > [data-site-sequence-icon] svg {
  width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.65;
  stroke-linecap: round; stroke-linejoin: round;
}
[data-site-sequence] > li > span {
  font-size: 14px; line-height: 1.5; color: #e6e6fa; text-align: center; overflow-wrap: anywhere;
}
/* 历史流程仍用旧的装饰。使用独立标记时，步骤只显示插槽内留下的线和光点。 */
[data-site-sequence-mark] { display: inline-block; pointer-events: none; }
[data-site-sequence-mark="LINE"] { width: 64px; height: 2px; background-image: var(--sequence-mark-wide-paint, none); }
[data-site-sequence-mark="LIGHT"] { width: 6px; height: 6px; border-radius: 50%; }

[data-site-sequence]:not([data-sequence-explicit-marks]) > li:not(:last-child)::before,
[data-site-sequence] > li > [data-site-sequence-mark="LINE"] {
  position: absolute; top: 29px; left: calc(50% + 37px);
  width: max(0px, 100% - 74px); height: 2px; pointer-events: none;
}
[data-site-sequence]:not([data-sequence-explicit-marks]) > li:not(:last-child)::before {
  content: ""; background: linear-gradient(90deg, #8bcfdf3d, #a594e966);
}
[data-site-sequence]:not([data-sequence-explicit-marks]) > li:not(:last-child)::after,
[data-site-sequence] > li > [data-site-sequence-mark="LIGHT"] {
  position: absolute; top: 27px; left: calc(50% + 37px);
  width: 6px; height: 6px; border-radius: 50%; pointer-events: none;
}
[data-site-sequence]:not([data-sequence-explicit-marks]) > li:not(:last-child)::after {
  content: ""; background: #c3f4ff; box-shadow: 0 0 8px #8edfff, 0 0 15px #ab94ff99;
}
[data-site-sequence]:not([data-sequence-explicit-marks]) > li:not(:last-child)::after,
[data-site-sequence] > li > [data-site-sequence-mark="LIGHT"][data-sequence-mark-motion] {
  opacity: 0; animation: site-sequence-signal var(--sequence-cycle, 5s) linear infinite;
  animation-delay: var(--sequence-delay, 0s); animation-play-state: paused;
}
[data-site-sequence][data-play-on-enter="true"].is-visible > li > [data-site-sequence-icon],
[data-site-sequence]:not([data-sequence-explicit-marks])[data-play-on-enter="true"].is-visible > li::after,
[data-site-sequence][data-play-on-enter="true"].is-visible > li > [data-sequence-mark-motion] { animation-play-state: running; }

@keyframes site-sequence-icon {
  0%, 22%, 100% { color: #bbb6ff; border-color: #a9a1ef66; box-shadow: inset 0 1px #ffffff14; }
  5%, 15% { color: #c3f4ff; border-color: #b0dfffbd; box-shadow: inset 0 1px #ffffff22, 0 0 18px #8fc7ff26; }
}
@keyframes site-sequence-signal {
  0% { left: calc(50% + 37px); opacity: 0; }
  2% { opacity: 1; }
  17% { left: calc(150% - 43px); opacity: 1; }
  19%, 100% { left: calc(150% - 43px); opacity: 0; }
}

/* 手机改成纵排，连线和移动光点一起换方向。 */
@media (max-width: 760px) {
  [data-site-sequence] { grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: minmax(0, 1fr); padding: 24px; }
  [data-site-sequence] > li {
    display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 20px; padding: 0 0 34px;
  }
  [data-site-sequence] > li:last-child { padding-bottom: 0; }
  [data-site-sequence] > li > [data-site-sequence-icon] { width: 52px; height: 52px; border-radius: 15px; }
  [data-site-sequence] > li > span { text-align: left; }
  [data-site-sequence]:not([data-sequence-explicit-marks]) > li:not(:last-child)::before,
  [data-site-sequence] > li > [data-site-sequence-mark="LINE"] { top: 59px; left: 25px; width: 2px; height: 20px; }
  [data-site-sequence]:not([data-sequence-explicit-marks]) > li:not(:last-child)::before {
    background: linear-gradient(#8bcfdf66, #a594e966);
  }
  [data-site-sequence-mark="LINE"] { background-image: var(--sequence-mark-narrow-paint, var(--sequence-mark-wide-paint, none)); }
  [data-site-sequence]:not([data-sequence-explicit-marks]) > li:not(:last-child)::after,
  [data-site-sequence] > li > [data-site-sequence-mark="LIGHT"] { top: 59px; left: 23px; }
  [data-site-sequence]:not([data-sequence-explicit-marks]) > li:not(:last-child)::after,
  [data-site-sequence] > li > [data-site-sequence-mark="LIGHT"][data-sequence-mark-motion] { animation-name: site-sequence-signal-vertical; }
}
@keyframes site-sequence-signal-vertical {
  0% { top: 59px; opacity: 0; }
  2% { opacity: 1; }
  17% { top: 75px; opacity: 1; }
  19%, 100% { top: 75px; opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  [data-site-sequence] > li > [data-site-sequence-icon] { animation: none; }
  [data-site-sequence]:not([data-sequence-explicit-marks]) > li::after,
  [data-site-sequence] > li > [data-sequence-mark-motion] { display: none; }
}

/* 选项卡的隐藏状态高于面板版式中的显示方式。 */
[data-site-tab-panel][hidden] { display: none !important; }

/* 设备覆盖仅在填写字段的元素生效。隐藏的选项卡仍由切换状态控制，卡片宽度同步作用于轨道。 */
@media (max-width: 600px) {
  [data-design-size~="mobile-width"] { width: var(--design-mobile-width) !important; }
  [data-design-size~="mobile-height"] { height: var(--design-mobile-height) !important; }
  [data-design-size~="mobile-aspect-ratio"] { aspect-ratio: var(--design-mobile-aspect-ratio) !important; }
  [data-design-size~="mobile-max-width"] { max-width: var(--design-mobile-max-width) !important; }
  [data-design-size~="mobile-min-height"] { min-height: var(--design-mobile-min-height) !important; }
  [data-design-size~="mobile-display"]:not([hidden]) { display: var(--design-mobile-display) !important; }
  [data-design-size~="mobile-direction"] { flex-direction: var(--design-mobile-direction) !important; }
  [data-design-size~="mobile-columns"] { grid-template-columns: var(--design-mobile-columns) !important; }
  [data-design-size~="mobile-gap"] { gap: var(--design-mobile-gap) !important; }
  [data-design-size~="mobile-padding"] { padding: var(--design-mobile-padding) !important; }
  [data-design-size~="mobile-margin"] { margin: var(--design-mobile-margin) !important; }
  [data-site-rail-item][data-design-size~="mobile-width"] { flex-basis: var(--design-mobile-width) !important; }
}
@media (600px < width <= 1024px) {
  [data-design-size~="tablet-width"] { width: var(--design-tablet-width) !important; }
  [data-design-size~="tablet-height"] { height: var(--design-tablet-height) !important; }
  [data-design-size~="tablet-aspect-ratio"] { aspect-ratio: var(--design-tablet-aspect-ratio) !important; }
  [data-design-size~="tablet-max-width"] { max-width: var(--design-tablet-max-width) !important; }
  [data-design-size~="tablet-min-height"] { min-height: var(--design-tablet-min-height) !important; }
  [data-design-size~="tablet-display"]:not([hidden]) { display: var(--design-tablet-display) !important; }
  [data-design-size~="tablet-direction"] { flex-direction: var(--design-tablet-direction) !important; }
  [data-design-size~="tablet-columns"] { grid-template-columns: var(--design-tablet-columns) !important; }
  [data-design-size~="tablet-gap"] { gap: var(--design-tablet-gap) !important; }
  [data-design-size~="tablet-padding"] { padding: var(--design-tablet-padding) !important; }
  [data-design-size~="tablet-margin"] { margin: var(--design-tablet-margin) !important; }
  [data-site-rail-item][data-design-size~="tablet-width"] { flex-basis: var(--design-tablet-width) !important; }
}
