.subpage-header {
  --subpage-accent: #c9342f;
  position: relative;
  isolation: isolate;
  width: 100%;
  height: clamp(340px, 31.25vw, 500px);
  min-height: 340px;
  overflow: hidden;
  background:
    radial-gradient(circle at 76% 32%, rgba(201, 52, 47, 0.36), transparent 34%),
    linear-gradient(115deg, #3b1112 0%, #71191a 52%, #a61f20 100%);
  color: #fff;
}

.subpage-header__media,
.subpage-header__media picture,
.subpage-header__media img,
.subpage-header__overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.subpage-header__media {
  z-index: -2;
}

.subpage-header__media picture {
  display: block;
}

.subpage-header__media img {
  display: block;
  object-fit: cover;
  object-position: center;
  transform: scale(1.002);
}

.subpage-header__overlay {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(3, 16, 29, 0.76) 0%, rgba(3, 18, 31, 0.44) 38%, rgba(3, 18, 31, 0.08) 72%),
    linear-gradient(0deg, rgba(1, 13, 24, 0.42) 0%, transparent 48%);
}

.subpage-header__title {
  box-sizing: border-box;
  width: min(1392px, 90%);
  height: 100%;
  margin: 0 auto;
  padding: clamp(82px, 10vw, 150px) 0 112px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.subpage-header__title h1 {
  max-width: 14em;
  margin: 0;
  color: #fff;
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", Arial, sans-serif;
  font-size: clamp(34px, 3.1vw, 54px);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.035em;
  text-wrap: balance;
  text-shadow: 0 3px 18px rgba(1, 15, 28, 0.28);
}

.subpage-header__title > span {
  display: block;
  width: 64px;
  height: 4px;
  margin-top: 27px;
  background: var(--subpage-accent);
}

.subpage-breadcrumb {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 72px;
  background: rgba(5, 20, 33, 0.52);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.subpage-breadcrumb__inner {
  box-sizing: border-box;
  width: min(1600px, 90%);
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
}

.subpage-breadcrumb__icon {
  align-self: stretch;
  width: 72px;
  min-width: 72px;
  margin-right: 30px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--subpage-accent);
}

.subpage-breadcrumb__icon svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.subpage-breadcrumb .position {
  float: none;
  margin: 0;
  padding: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
  line-height: 1.6;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.subpage-breadcrumb .position a {
  color: rgba(255, 255, 255, 0.72);
  font-size: inherit;
  transition: color 0.22s ease;
}

.subpage-breadcrumb .position a:last-child {
  color: #fff;
  font-weight: 600;
}

.subpage-breadcrumb .position a:hover,
.subpage-breadcrumb .position a:focus-visible {
  color: #fff;
  text-decoration: none;
}

.subpage-breadcrumb .position a:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 4px;
}

@media (max-width: 768px) {
  .subpage-header {
    height: clamp(270px, 68vw, 360px);
    min-height: 270px;
  }

  .subpage-header__media img {
    object-position: center;
  }

  .subpage-header__overlay {
    background:
      linear-gradient(90deg, rgba(3, 16, 29, 0.69), rgba(3, 18, 31, 0.16)),
      linear-gradient(0deg, rgba(1, 13, 24, 0.46), transparent 55%);
  }

  .subpage-header__title {
    width: 90%;
    padding: 52px 0 86px;
  }

  .subpage-header__title h1 {
    font-size: clamp(28px, 8vw, 38px);
  }

  .subpage-header__title > span {
    width: 48px;
    height: 3px;
    margin-top: 19px;
  }

  .subpage-breadcrumb {
    height: 58px;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
  }

  .subpage-breadcrumb__inner {
    width: 100%;
  }

  .subpage-breadcrumb__icon {
    width: 58px;
    min-width: 58px;
    margin-right: 18px;
  }

  .subpage-breadcrumb__icon svg {
    width: 22px;
    height: 22px;
  }

  .subpage-breadcrumb .position {
    padding-right: 5%;
    font-size: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .subpage-breadcrumb .position a {
    transition: none;
  }
}
