:root {
  --subpage-accent: #e34549;
  --subpage-ink: #17202a;
  --subpage-muted: #6f7882;
  --subpage-surface: #f5f6f7;
  --subpage-line: #e4e7ea;
  --subpage-max: 1520px;
}

.subpage-hero,
.subpage-hero * {
  box-sizing: border-box;
}

.subpage-hero {
  position: relative;
  isolation: isolate;
  width: 100%;
  height: clamp(420px, 38vw, 620px);
  min-height: 420px;
  overflow: hidden;
  background: #17212b;
  color: #fff;
}

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

.subpage-hero__media img {
  display: block;
  object-fit: cover;
  object-position: center;
  transform: scale(1.01);
  animation: subpage-image-in 1.1s cubic-bezier(.2,.75,.25,1) both;
}

.subpage-hero__inner {
  position: relative;
  z-index: 2;
  display: flex;
  width: min(var(--subpage-max), 86%);
  height: 100%;
  margin: 0 auto;
  padding-top: 90px;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

.subpage-hero__eyebrow {
  margin: 0 0 18px;
  color: rgba(255, 255, 255, .74);
  font-family: "Century Gothic", Arial, sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .26em;
  line-height: 1.4;
}

.subpage-hero__eyebrow span {
  margin: 0 .45em;
  color: var(--subpage-accent);
}

.subpage-hero h1 {
  margin: 0;
  color: #fff;
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  font-size: clamp(42px, 4vw, 66px);
  font-weight: 500;
  letter-spacing: .08em;
  line-height: 1.15;
  text-shadow: 0 3px 24px rgba(0, 0, 0, .24);
  text-wrap: balance;
}

.subpage-hero__line {
  display: block;
  width: 52px;
  height: 2px;
  margin: 26px 0 20px;
  background: var(--subpage-accent);
  box-shadow: 0 0 18px rgba(227, 69, 73, .45);
}

.subpage-hero__en {
  margin: 0;
  color: rgba(255, 255, 255, .84);
  font-family: "Century Gothic", Arial, sans-serif;
  font-size: clamp(15px, 1.25vw, 20px);
  font-weight: 400;
  letter-spacing: .22em;
  line-height: 1.5;
  text-transform: uppercase;
}

.subpage-hero__en:empty {
  display: none;
}

.subpage-context,
.subpage-context * {
  box-sizing: border-box;
}

.subpage-context {
  position: relative;
  z-index: 3;
  border-bottom: 1px solid var(--subpage-line);
  background: rgba(255, 255, 255, .97);
  box-shadow: 0 12px 28px rgba(29, 41, 53, .05);
}

.subpage-context__inner {
  display: grid;
  width: min(var(--subpage-max), 88%);
  min-height: 76px;
  margin: 0 auto;
  align-items: center;
  gap: 28px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.subpage-tabs {
  min-width: 0;
  overflow: hidden;
}

.subpage-tabs ul {
  display: flex;
  margin: 0;
  padding: 0;
  gap: clamp(24px, 3.2vw, 56px);
  list-style: none;
  overflow-x: auto;
  scrollbar-width: none;
}

.subpage-tabs ul::-webkit-scrollbar {
  display: none;
}

.subpage-tabs li {
  position: relative;
  flex: 0 0 auto;
}

.subpage-tabs a {
  position: relative;
  display: flex;
  min-height: 76px;
  align-items: center;
  color: #3f4851;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
  text-decoration: none;
  transition: color .22s ease;
}

.subpage-tabs a::after {
  position: absolute;
  right: 50%;
  bottom: 0;
  left: 50%;
  height: 3px;
  background: var(--subpage-accent);
  content: "";
  transition: right .25s ease, left .25s ease;
}

.subpage-tabs .is-active a,
.subpage-tabs a:hover,
.subpage-tabs a:focus-visible {
  color: var(--subpage-accent);
}

.subpage-tabs .is-active a::after,
.subpage-tabs a:hover::after,
.subpage-tabs a:focus-visible::after {
  right: 0;
  left: 0;
}

.subpage-tabs a:focus-visible,
.subpage-breadcrumb a:focus-visible {
  border-radius: 2px;
  outline: 2px solid var(--subpage-accent);
  outline-offset: 4px;
}

.subpage-breadcrumb {
  display: flex;
  align-items: center;
  color: var(--subpage-muted);
  font-size: 13px;
  line-height: 1.5;
  white-space: nowrap;
}

.subpage-breadcrumb__home {
  display: inline-flex;
  width: 18px;
  height: 18px;
  margin-right: 8px;
  align-items: center;
  justify-content: center;
}

.subpage-breadcrumb__home svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: #8b949d;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.subpage-breadcrumb__label {
  margin-right: 8px;
  color: #8b949d;
}

.subpage-breadcrumb__path a {
  color: #505a64;
  text-decoration: none;
  transition: color .2s ease;
}

.subpage-breadcrumb__path a:hover,
.subpage-breadcrumb__path a:last-child {
  color: var(--subpage-accent);
}

.subpage-context--breadcrumb-only .subpage-context__inner {
  display: flex;
  justify-content: flex-end;
}

@keyframes subpage-image-in {
  from { opacity: .55; transform: scale(1.055); }
  to { opacity: 1; transform: scale(1.01); }
}

@media (max-width: 1180px) {
  .subpage-hero {
    height: clamp(360px, 52vw, 500px);
    min-height: 360px;
    margin-top: 72px;
  }

  .subpage-hero__inner {
    padding-top: 0;
  }

  .subpage-context__inner {
    width: 92%;
  }
}

@media (max-width: 860px) {
  .subpage-context__inner {
    display: flex;
    min-height: 0;
    gap: 0;
    align-items: stretch;
    flex-direction: column-reverse;
  }

  .subpage-breadcrumb {
    min-height: 48px;
    border-bottom: 1px solid var(--subpage-line);
    overflow-x: auto;
  }

  .subpage-tabs a {
    min-height: 60px;
    font-size: 15px;
  }

  .subpage-context--breadcrumb-only .subpage-context__inner {
    align-items: stretch;
  }
}

@media (max-width: 768px) {
  .subpage-hero {
    height: 330px;
    min-height: 330px;
  }

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

  .subpage-hero__inner {
    width: 88%;
  }

  .subpage-hero__eyebrow {
    margin-bottom: 14px;
    font-size: 10px;
    letter-spacing: .2em;
  }

  .subpage-hero h1 {
    font-size: clamp(32px, 9vw, 44px);
    letter-spacing: .06em;
  }

  .subpage-hero__line {
    width: 42px;
    margin: 20px 0 15px;
  }

  .subpage-hero__en {
    font-size: 13px;
    letter-spacing: .13em;
  }

  .subpage-context__inner {
    width: calc(100% - 32px);
  }

  .subpage-breadcrumb__label {
    display: none;
  }

  .subpage-breadcrumb__path {
    font-size: 12px;
  }

  .subpage-tabs ul {
    gap: 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .subpage-hero__media img {
    animation: none;
  }

  .subpage-tabs a,
  .subpage-tabs a::after,
  .subpage-breadcrumb__path a {
    transition: none;
  }
}
