/*
 * 系统详情页 —— 1:1 对应设计稿 Astra 6月 / Residential 923:777（四个节点同一套页面）
 *
 *   首屏 923:778        整幅 1920×960，左对齐深色文案（走 page-banner 的左对齐款）
 *   规格表 1215:1707    白底 py120，标题 36/40 + 首段 100px 红的 2px 分割线 + 8 行两列表 + 两个按钮
 *   组件轮播 1215:3196  #F9F9F9 py120，卡片 414×604 间距 40，两边出血，hover 转红
 *   产品优势 923:912    #333 py120，2×2 白卡 708×234
 *   系统架构 1223:3435  白底 py120，页签 28/34 + 大图 1600×760
 *   下一步 933:2111     #141414 py120，2 张白卡 708×321
 *   应用场景 935:2435   #F9F9F9 pt96 pb120，一张底图 + 四等分面板，hover 去蒙版
 *   包装 1223:3405      白底 py120，四列 345 宽，图文上下交替
 *
 * 尺寸/字号一律走 CSS 变量，由组件的响应式控制项按断点写入，
 * 本文件只放控制项没覆盖的排布与状态。
 */

.astra-syd {
  --syd-primary: #e60012;
  --syd-primary-dark: #c1000f;
  --syd-text: #333333;
  --syd-strong: #000000;
  --syd-muted: #808080;
  --syd-subtle: #999999;
  --syd-border: #dedfe0;
  --syd-card-border: #e5e5e5;
  --syd-table-border: #e5e7eb;
  --syd-table-alt: #f7f7f7;
  --syd-pack-border: #fdf1f1;

  font-family: inherit;
  color: var(--syd-text);
}

/* ==================================================== 通用 */

/* 居中区块标题：48/53 + 红线 100×4，可选副标题 */
.astra-syd__header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  width: 100%;
  text-align: center;
}

.astra-syd__title {
  margin: 0;
  width: 100%;
  font-size: var(--syd-title-size, 48px);
  line-height: var(--syd-title-line, 53px);
  font-weight: 700;
  letter-spacing: -1.92px;
  color: var(--syd-strong);
  overflow-wrap: break-word;
}

.astra-syd__rule {
  display: block;
  flex: 0 0 auto;
  width: 100px;
  height: 4px;
  background: var(--syd-primary);
}

.astra-syd__sub {
  margin: 0;
  width: 100%;
  font-size: var(--syd-sub-size, 24px);
  line-height: var(--syd-sub-line, 32px);
  font-weight: 600;
  letter-spacing: -0.24px;
  color: var(--syd-subtle);
}

/* ASTRA / Button（Figma 467:510 大号款），高 56、图标 20 */
.astra-syd__btn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  padding: 0 24px;
  border: 1px solid var(--syd-primary);
  background: transparent;
  font-size: 16px;
  line-height: 20px;
  font-weight: 700;
  letter-spacing: -0.16px;
  color: var(--syd-primary);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.3s, background-color 0.3s, border-color 0.3s;
}

.astra-syd__btn:hover,
.astra-syd__btn:focus-visible {
  background: var(--syd-primary);
  color: #ffffff;
}

.astra-syd__btn--solid {
  background: var(--syd-primary);
  color: #ffffff;
}

.astra-syd__btn--solid:hover,
.astra-syd__btn--solid:focus-visible {
  background: var(--syd-primary-dark);
  border-color: var(--syd-primary-dark);
}

.astra-syd__btn-icon {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  display: block;
}

.astra-syd__btn-icon path {
  stroke: currentColor;
}

/* 「Learn More +箭头」文字链，14/20 红 */
.astra-syd__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  color: var(--syd-primary);
  text-decoration: none;
}

.astra-syd__link .astra-syd__btn-icon {
  transition: transform 0.3s;
}

.astra-syd__link:hover .astra-syd__btn-icon {
  transform: translateX(3px);
}

/* 定宽内容盒：左右各留 16 防窄屏贴边，max-width 把这 32 加回去 */
.astra-syd__inner {
  width: 100%;
  max-width: calc(var(--syd-content-width, 1280px) + 32px);
  margin: 0 auto;
  padding: 0 16px;
}

/* ==================================================== 首屏 923:778 */
/* 设计稿的底图是「按宽度放到 108.71% 再贴底」，不是等高铺满：
 * 用 cover 会把图放大 8.5% 又居中上移，产品会压到左边文案上。
 * 图顶上那条空白由区块底色 #F9F9F9 补，跟设计稿一致。 */
.astra-syd-hero .astra-banner__bg img {
  width: var(--syd-hero-img-scale, 108.71%);
  /* Elementor 全局给 img 上了 max-width:100%，不解开这条图放不到 108.71% */
  max-width: none;
  height: auto;
  object-fit: fill;
  position: absolute;
  left: 0;
  right: auto;
  top: auto;
  bottom: 0;
}

/* ==================================================== 规格表 1215:1707 */
.astra-syd-spec {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--syd-spec-gap, 48px);
  padding: var(--syd-spec-padding, 120px) 0;
  background: #ffffff;
}

.astra-syd-spec__stack {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.astra-syd-spec__head {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.astra-syd-spec__title {
  margin: 0;
  font-size: var(--syd-spec-title-size, 36px);
  line-height: var(--syd-spec-title-line, 40px);
  font-weight: 700;
  letter-spacing: -0.72px;
  color: #262a2f;
}

/* 设计稿是一条 2px 灰线，最左 100px 为主题色 */
.astra-syd-spec__rule {
  display: block;
  width: 100%;
  height: 2px;
  background: linear-gradient(
    to right,
    var(--syd-primary) 0,
    var(--syd-primary) var(--syd-rule-lead, 100px),
    var(--syd-border) var(--syd-rule-lead, 100px)
  );
}

.astra-syd-spec__table {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
}

.astra-syd-spec__cell {
  display: flex;
  align-items: flex-start;
  min-height: 49px;
  /* 设计稿行高 49 是含底边线的，CSS 描边额外占位，所以下内边距收 1 */
  padding: 12px 18px 11px;
  border-bottom: 1px solid var(--syd-table-border);
  font-size: var(--syd-spec-text-size, 18px);
  line-height: 25px;
  font-weight: 700;
  letter-spacing: -0.36px;
  color: var(--syd-text);
  overflow-wrap: break-word;
}

.astra-syd-spec__cell--label {
  border-right: 1px solid var(--syd-table-border);
}

.astra-syd-spec__cell--alt {
  background: var(--syd-table-alt);
}

.astra-syd-spec__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

/* ==================================================== 组件轮播 1215:3196 */
.astra-syd-comp {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--syd-comp-gap, 96px);
  padding: var(--syd-comp-padding, 120px) 0;
  background: #f9f9f9;
}

/* 卡片两边出血：不用 100vw（含滚动条会溢出），按容器百分比往两侧顶 */
.astra-syd-comp__viewport {
  --syd-bleed: 16.667%;
  align-self: stretch;
  margin-left: calc(var(--syd-bleed) * -1);
  margin-right: calc(var(--syd-bleed) * -1);
}

.astra-syd-comp__viewport .swiper {
  overflow: hidden;
}

.astra-syd-comp__viewport .swiper-slide {
  width: var(--syd-comp-card, 414px);
  height: auto;
  display: flex;
}

.astra-syd-comp__card {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  min-height: var(--syd-comp-height, 604px);
  padding: 20px;
  background: #ffffff;
  border-bottom: 2px solid var(--syd-border);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.astra-syd-comp__card:hover {
  border-bottom-color: var(--syd-primary);
  box-shadow: 14px 14px 2.4px rgba(0, 0, 0, 0.02);
}

.astra-syd-comp__media {
  flex: 0 0 auto;
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #ebebeb;
}

.astra-syd-comp__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.astra-syd-comp__info {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  text-align: center;
}

.astra-syd-comp__name {
  margin: 0;
  font-size: var(--syd-comp-name-size, 24px);
  line-height: 32px;
  font-weight: 600;
  letter-spacing: -0.24px;
  color: var(--syd-text);
  transition: color 0.3s;
}

.astra-syd-comp__card:hover .astra-syd-comp__name {
  color: var(--syd-primary);
}

.astra-syd-comp__specs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.astra-syd-comp__spec {
  padding: 0 10px;
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  color: var(--syd-text);
  white-space: nowrap;
}

.astra-syd-comp__spec + .astra-syd-comp__spec {
  border-left: 1px solid var(--syd-border);
}

.astra-syd-comp__more {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 20px 0;
  font-size: 18px;
  line-height: 25px;
  font-weight: 700;
  letter-spacing: -0.36px;
  color: var(--syd-strong);
  transition: color 0.3s;
}

.astra-syd-comp__card:hover .astra-syd-comp__more {
  color: var(--syd-primary);
}

/* ==================================================== 产品优势 923:912 */
.astra-syd-apart {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--syd-apart-gap, 96px);
  padding: var(--syd-apart-padding, 120px) 0;
  background: #333333;
}

.astra-syd-apart .astra-syd__title {
  color: #ffffff;
}

.astra-syd-apart__grid {
  display: grid;
  grid-template-columns: repeat(var(--syd-apart-columns, 2), minmax(0, 1fr));
  gap: 20px;
  width: 100%;
}

.astra-syd-apart__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: var(--syd-apart-card-height, 234px);
  padding: 20px 24px;
  background: #ffffff;
  border: 1px solid var(--syd-card-border);
  transition: border-color 0.3s, box-shadow 0.3s;
}

.astra-syd-apart__card:hover {
  border-color: var(--syd-primary);
  box-shadow: 12px 12px 6px rgba(0, 0, 0, 0.05);
}

.astra-syd-apart__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  width: 100%;
  max-width: var(--syd-apart-body-width, 550px);
}

.astra-syd-apart__icon {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  display: block;
}

.astra-syd-apart__icon img {
  width: 100%;
  height: 100%;
  display: block;
}

.astra-syd-apart__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
}

.astra-syd-apart__name {
  margin: 0;
  width: 100%;
  font-size: var(--syd-apart-name-size, 28px);
  line-height: 34px;
  font-weight: 600;
  letter-spacing: -0.56px;
  color: var(--syd-strong);
}

.astra-syd-apart__desc {
  margin: 0;
  width: 100%;
  font-size: var(--syd-apart-desc-size, 16px);
  line-height: 20px;
  font-weight: 700;
  letter-spacing: -0.16px;
  color: var(--syd-muted);
}

/* ==================================================== 系统架构 1223:3435 */
.astra-syd-arch {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  padding: var(--syd-arch-padding, 120px) 0;
  background: #ffffff;
}

.astra-syd-arch__tabs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 32px;
  width: 100%;
}

.astra-syd-arch__tab {
  appearance: none;
  -webkit-appearance: none;
  margin: 0;
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  padding: 16px 40px 14px;
  font-family: inherit;
  font-size: var(--syd-arch-tab-size, 28px);
  line-height: 34px;
  font-weight: 600;
  letter-spacing: -0.56px;
  color: var(--syd-strong);
  cursor: pointer;
  transition: color 0.3s, border-color 0.3s;
}

.astra-syd-arch__tab:hover {
  color: var(--syd-primary);
}

.astra-syd-arch__tab.is-active {
  color: var(--syd-primary);
  border-bottom-color: var(--syd-primary);
}

.astra-syd-arch__stage {
  width: 100%;
  max-width: calc(var(--syd-arch-width, 1600px) + 32px);
  margin: 0 auto;
  padding: 0 16px;
}

/* 架构图用 contain 完整显示，上下留白就交给区块底色，别再垫一层灰 */
.astra-syd-arch__panel {
  position: relative;
  width: 100%;
  height: var(--syd-arch-height, 760px);
  overflow: hidden;
}

.astra-syd-arch__panel[hidden] {
  display: none;
}

.astra-syd-arch__panel img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* ==================================================== 下一步方案 933:2111 */
.astra-syd-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--syd-cta-gap, 96px);
  padding: var(--syd-cta-padding, 120px) 0;
  background: #141414;
}

.astra-syd-cta .astra-syd__title {
  color: #ffffff;
}

.astra-syd-cta__grid {
  display: grid;
  grid-template-columns: repeat(var(--syd-cta-columns, 2), minmax(0, 1fr));
  gap: 20px;
  width: 100%;
}

.astra-syd-cta__card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--syd-cta-card-height, 321px);
  padding: 40px 48px;
  background: #ffffff;
  border: 1px solid var(--syd-card-border);
  border-bottom: 2px solid var(--syd-card-border);
  transition: border-color 0.3s, box-shadow 0.3s;
}

.astra-syd-cta__card:hover {
  border-bottom-color: var(--syd-primary);
  box-shadow: 12px 12px 6px rgba(0, 0, 0, 0.05);
}

.astra-syd-cta__text {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  text-align: center;
}

.astra-syd-cta__name {
  margin: 0;
  width: 100%;
  font-size: var(--syd-cta-name-size, 36px);
  line-height: 40px;
  font-weight: 700;
  letter-spacing: -0.72px;
  color: var(--syd-strong);
}

.astra-syd-cta__desc {
  margin: 0;
  width: 100%;
  font-size: var(--syd-cta-desc-size, 24px);
  line-height: 32px;
  font-weight: 600;
  letter-spacing: -0.24px;
  color: var(--syd-muted);
}

/* 卡片里的按钮比通用款矮一档：12/20 内边距，图标 16 */
.astra-syd-cta__btn {
  min-height: 44px;
  padding: 0 20px;
  gap: 8px;
}

.astra-syd-cta__btn .astra-syd__btn-icon {
  width: 16px;
  height: 16px;
}

/* ==================================================== 应用场景 935:2435 */
.astra-syd-apps {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--syd-apps-gap, 96px);
  padding: var(--syd-apps-padding-top, 96px) 0 var(--syd-apps-padding-bottom, 120px);
  background: #f9f9f9;
}

/* 高度用 min-height：窄屏面板换行堆叠时控制项给 0，条子要能被内容撑开，
 * 写死 height 会连同 overflow:hidden 把四块全裁没 */
.astra-syd-apps__strip {
  position: relative;
  display: flex;
  width: 100%;
  min-height: var(--syd-apps-height, 775px);
  overflow: hidden;
}

.astra-syd-apps__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.astra-syd-apps__bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.astra-syd-apps__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.36);
}

.astra-syd-apps__panel {
  position: relative;
  z-index: 1;
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: var(--syd-apps-panel-top, 260px) 16px 24px;
  background: rgba(0, 0, 0, 0.5);
  border-top: 6px solid transparent;
  text-decoration: none;
  transition: background-color 0.4s ease, border-color 0.4s ease;
}

.astra-syd-apps__panel:hover,
.astra-syd-apps__panel:focus-within {
  background: transparent;
  border-top-color: var(--syd-primary);
}

.astra-syd-apps__body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  width: 100%;
  max-width: var(--syd-apps-body-width, 256px);
  text-align: center;
}

.astra-syd-apps__name {
  margin: 0;
  width: 100%;
  font-size: var(--syd-apps-name-size, 32px);
  line-height: 38px;
  font-weight: 600;
  letter-spacing: -0.64px;
  color: var(--syd-muted);
  transition: color 0.4s ease;
}

.astra-syd-apps__desc {
  margin: 0;
  width: 100%;
  font-size: var(--syd-apps-desc-size, 18px);
  line-height: 25px;
  font-weight: 700;
  letter-spacing: -0.36px;
  color: var(--syd-muted);
  transition: color 0.4s ease;
}

.astra-syd-apps__panel:hover .astra-syd-apps__name,
.astra-syd-apps__panel:hover .astra-syd-apps__desc,
.astra-syd-apps__panel:focus-within .astra-syd-apps__name,
.astra-syd-apps__panel:focus-within .astra-syd-apps__desc {
  color: #ffffff;
}

/* 底部链接常驻占位，只做淡入，避免 hover 时整条重排 */
.astra-syd-apps__more {
  margin: 0;
  width: 100%;
  font-size: 18px;
  line-height: 25px;
  font-weight: 700;
  letter-spacing: -0.36px;
  color: #ffffff;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.astra-syd-apps__panel:hover .astra-syd-apps__more,
.astra-syd-apps__panel:focus-within .astra-syd-apps__more {
  opacity: 1;
}

/* ==================================================== 包装 1223:3405 */
.astra-syd-pack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--syd-pack-gap, 96px);
  padding: var(--syd-pack-padding, 120px) 0;
  background: #ffffff;
}

.astra-syd-pack__grid {
  display: grid;
  grid-template-columns: repeat(var(--syd-pack-columns, 4), minmax(0, 1fr));
  gap: 20px;
  width: 100%;
}

.astra-syd-pack__item {
  display: flex;
  flex-direction: column;
}

/* 偶数列图文上下对调（设计稿 1223:3386 / 1223:3395） */
.astra-syd-pack__item--flip {
  flex-direction: column-reverse;
}

.astra-syd-pack__media {
  position: relative;
  width: 100%;
  height: var(--syd-pack-media-height, 434px);
  overflow: hidden;
  border-bottom: 2px solid var(--syd-pack-border);
  background: #f4f4f4;
}

.astra-syd-pack__item--flip .astra-syd-pack__media {
  border-bottom: 0;
  border-top: 2px solid var(--syd-pack-border);
}

.astra-syd-pack__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.astra-syd-pack__label {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 82px;
  padding: 24px 12px;
  background: #ffffff;
}

.astra-syd-pack__name {
  margin: 0;
  width: 100%;
  font-size: var(--syd-pack-name-size, 28px);
  line-height: 34px;
  font-weight: 600;
  letter-spacing: -0.56px;
  color: var(--syd-strong);
  text-align: center;
}

/* 编辑器里没内容时的占位提示 */
.astra-syd__empty {
  margin: 0;
  padding: 24px 0;
  font-size: 18px;
  color: var(--syd-subtle);
  text-align: center;
}

/* ---------------------------------------------------------- 响应式 */
/* 设计稿只有 1920 桌面稿。字号、分栏数、留白由组件的响应式控制项按断点输出，
 * 本段只处理控制项没覆盖的排布。 */
@media (max-width: 1400px) {
  .astra-syd-comp__viewport {
    --syd-bleed: 10%;
  }
}

@media (max-width: 1200px) {
  .astra-syd-comp__viewport {
    --syd-bleed: 4.348%;
  }

  .astra-syd-arch__tab {
    padding: 12px 24px;
  }

  .astra-syd-cta__card {
    padding: 32px;
  }

  .astra-syd-apart__card {
    padding: 24px 20px;
  }
}

@media (max-width: 990px) {
  .astra-syd-apps__strip {
    flex-wrap: wrap;
  }

  .astra-syd-apps__panel {
    flex: 1 1 50%;
  }
}

@media (max-width: 768px) {
  .astra-syd__rule {
    height: 3px;
  }

  .astra-syd__btn {
    width: 100%;
  }

  .astra-syd-spec__actions .astra-syd__btn {
    flex: 1 1 100%;
  }

  .astra-syd-spec__cell {
    padding: 10px 12px;
  }

  .astra-syd-arch__tabs {
    gap: 8px;
  }

  .astra-syd-arch__tab {
    padding: 10px 16px;
  }

  .astra-syd-cta__card {
    padding: 24px 20px;
  }

  .astra-syd-cta__btn {
    width: auto;
  }

  .astra-syd-apps__panel {
    flex: 1 1 100%;
  }

  .astra-syd-apps__more {
    opacity: 1;
  }

  .astra-syd-pack__label {
    min-height: 0;
    padding: 16px 8px;
  }
}
