/* 区块标题（Section Heading）组件样式：幽灵字、标签与标题排版。
 * 公共标准版式与方案首页（solutions.html）的 .aoyea-solutions-section-heading 完全一致：
 * 幽灵字使用 BBH Bartle 描边字体，标签与标题颜色继承所在区块的正文色（深色底为白字）。
 */
.aoyea-component-section-heading {
  position: relative;
  width: 740px;
  max-width: 100%;
  height: 133px;
  margin: 0 auto;
  text-align: center;
}

/* 幽灵字（Ghost Text） */
.aoyea-component-section-heading .aoyea-section-heading-ghost {
  position: absolute;
  top: 26px;
  left: 50%;
  margin: 0;
  color: #202020;
  font-family: "BBH Bartle", sans-serif;
  font-size: 72px;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
  transform: translateX(-50%);
}

.aoyea-component-section-heading .aoyea-section-heading-label {
  position: absolute;
  top: 3px;
  left: 50%;
  min-width: 177px;
  height: 45px;
  margin: 0;
  padding: 9px 20px;
  transform: translateX(-50%);
  /* 文字色继承区块正文色：深色底自动为白字，浅色底自动为深色字 */
  border: 1.5px solid var(--aoyea-color-border);
  font-family: var(--aoyea-font-ui);
  font-size: 18px;
  line-height: 24px;
  white-space: nowrap;
}

.aoyea-component-section-heading .aoyea-section-heading-label::before {
  position: absolute;
  top: -4px;
  left: -7px;
  width: 13px;
  height: 7px;
  background: var(--aoyea-color-brand);
  box-shadow: 0 45px 0 var(--aoyea-color-brand);
  content: "";
}

.aoyea-component-section-heading .aoyea-section-heading-label::after {
  position: absolute;
  top: -4px;
  right: -7px;
  width: 13px;
  height: 7px;
  background: var(--aoyea-color-brand);
  box-shadow: 0 45px 0 var(--aoyea-color-brand);
  content: "";
}

.aoyea-component-section-heading .aoyea-section-heading-title {
  position: absolute;
  top: 75px;
  left: 50%;
  margin: 0;
  transform: translateX(-50%);
  /* 文字色继承区块正文色：深色底自动为白字，浅色底自动为深色字 */
  font-family: var(--aoyea-font-display);
  font-size: 48px;
  font-weight: 700;
  line-height: 54px;
  white-space: nowrap;
}

/* 移动端（Mobile） */
@media (max-width: 767px) {
  .aoyea-component-section-heading {
    width: 100%;
    height: 116px;
  }

  .aoyea-component-section-heading .aoyea-section-heading-ghost {
    top: 31px;
    font-size: 49px;
  }

  .aoyea-component-section-heading .aoyea-section-heading-label {
    min-width: 158px;
    height: 41px;
    padding: 8px 16px;
    font-size: 16px;
  }

  .aoyea-component-section-heading .aoyea-section-heading-label::before,
  .aoyea-component-section-heading .aoyea-section-heading-label::after {
    box-shadow: 0 41px 0 var(--aoyea-color-brand);
  }

  .aoyea-component-section-heading .aoyea-section-heading-title {
    top: 66px;
    font-size: 37px;
    line-height: 46px;
  }
}

/*
 * 后台正文组件（图文区块内插入的栏目标题）文字色锁定：
 * 组件默认就是一个自带底色的深色标题条，文字色必须与组件自身设定一致 ——
 * 标签与标题固定白色、背景大字固定深灰，且不继承网站模板的文字色，
 * 也不被其它组件的全局样式或组件属性（颜色 / 附加类名）改写。
 * 只作用于正文组件实例（.aoyea-content-component-block），页面里手写的栏目标题不受影响。
 */
.aoyea-content-component-block .aoyea-component-section-heading .aoyea-section-heading-ghost {
  color: #202020 !important;
}

.aoyea-content-component-block .aoyea-component-section-heading .aoyea-section-heading-label,
.aoyea-content-component-block .aoyea-component-section-heading .aoyea-section-heading-title {
  color: #fff !important;
}
