.about-page {
  --site-page-background: #f7f8fa;
  --about-hero-height: 490px;
  --about-section-gap: 160px;
  background: linear-gradient(
    #fff 0 calc(var(--about-hero-height) - 20px),
    var(--site-page-background) calc(var(--about-hero-height) + 80px)
  );
}

.about-page::before {
  position: absolute;
  z-index: 1;
  inset: 0 0 auto;
  height: var(--about-hero-height);
  background: linear-gradient(180deg, #fff, #fff6e8 102.04%);
  clip-path: ellipse(96% 100% at 50% 0);
  pointer-events: none;
  content: '';
}

.about-hero,
.about-content {
  position: relative;
  z-index: 2;
}

.about-hero {
  min-height: calc(var(--about-hero-height) - 80px);
  padding: 80px 0 48px;
  text-align: center;
}

.about-hero h1 {
  margin: 0;
  font-size: clamp(32px, 4vw, 46px);
  line-height: 1.326;
}

.about-hero p {
  margin: 24px 0 0;
  font-size: clamp(16px, 2.5vw, 24px);
  line-height: 32px;
}

.about-hero__stats {
  display: flex;
  width: min(100%, 624px);
  margin: 48px auto 0;
}

.about-hero__stats div {
  display: flex;
  flex: 1;
  flex-direction: column-reverse;
  gap: 16px;
  padding: 0 10px;
}

.about-hero__stats div + div {
  border-left: 1px solid rgb(253 170 3 / 20%);
}

.about-hero__stats dt {
  color: #666;
  font-size: clamp(13px, 2vw, 20px);
  line-height: 26px;
}

.about-hero__stats dd {
  margin: 0;
  color: #fb9900;
  font-size: clamp(23px, 4vw, 32px);
  font-weight: 700;
  line-height: 42px;
}

.about-content {
  display: grid;
  gap: var(--about-section-gap);
  padding: 80px 0 100px;
}

.about-section {
  min-width: 0;
  scroll-margin-top: 24px;
}

.about-section h2 {
  margin: 0 0 56px;
  font-size: clamp(26px, 4vw, 40px);
  line-height: 1.325;
  text-align: center;
}

.about-panel {
  border-radius: 40px;
  padding: 56px;
  background: #fff;
}

.about-panel h2 {
  margin-bottom: 48px;
}

.about-intro {
  padding-inline: 64px;
}

.about-intro__grid {
  display: grid;
  min-height: 296px;
  grid-template-columns: minmax(0, 565fr) minmax(0, 476fr);
  gap: clamp(32px, 6vw, 111px);
}

.about-intro__grid h3,
.about-intro__mission dt {
  margin: 0 0 16px;
  font-size: 24px;
  font-weight: 700;
  line-height: 32px;
}

.about-intro__grid p,
.about-intro__mission dd,
.about-careers p {
  margin: 0;
  font-size: 16px;
  line-height: 1.8;
}

.about-intro__grid p + p {
  margin-top: 16px;
}

.about-intro__mission {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  margin: 0;
  scroll-margin-top: 24px;
}

.about-intro__mission dt {
  position: relative;
  padding-left: 21px;
}

.about-intro__mission dt::before {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 0;
  width: 4px;
  border-radius: 2px;
  background: #477dff;
  content: '';
}

.about-intro__mission div:nth-child(2) dt::before {
  background: #00b465;
}

.about-intro__mission div:nth-child(3) dt::before {
  background: #ff6154;
}

.about-card {
  --about-card-hover-shadow: 0 0 20px rgb(0 0 0 / 10%);
  border-radius: 16px;
  background: #fff;
}

.about-card:is(:focus-visible, :has(:focus-visible)) {
  box-shadow: var(--about-card-hover-shadow);
}

@media (hover: hover) {
  .about-card:hover {
    box-shadow: var(--about-card-hover-shadow);
  }
}

.about-carousel {
  --about-card-height: 302px;
  --about-dot-gap: 40px;
  position: relative;
}

.about-carousel--press {
  --about-card-height: 318px;
  --about-dot-gap: 32px;
}

.about-carousel__track,
.about-badges {
  display: grid;
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.about-carousel__track {
  --about-cards-per-page: 4;
  --about-track-inset: min(20px, var(--site-gutter));
  grid-auto-columns: calc((100% - 24px * (var(--about-cards-per-page) - 1)) / var(--about-cards-per-page));
  grid-auto-flow: column;
  overflow-x: auto;
  margin: calc(-1 * var(--about-track-inset));
  padding: var(--about-track-inset);
  scrollbar-width: none;
  scroll-padding-inline: var(--about-track-inset);
  scroll-snap-type: x mandatory;
}

.about-carousel__track[data-about-partial-page]::after {
  /* Let the last page align with the first, even when it has fewer cards. */
  grid-column: span var(--about-empty-columns);
  content: '';
}

.about-carousel__track li {
  min-width: 0;
  min-height: var(--about-card-height);
  scroll-snap-align: start;
}

.about-carousel__track[data-about-paged] li:not([data-about-page-start]) {
  scroll-snap-align: none;
}

.about-user-case {
  position: relative;
  padding: 32px;
}

.about-user-case::before {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 52px;
  height: 47px;
  background: url('https://resoure-cos.jielong.com/jielong/portal/assets/about/quote.webp') center / contain no-repeat;
  pointer-events: none;
  content: '';
}

.about-user-case article {
  position: relative;
}

.about-user-case header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-inline-end: 40px;
}

.about-user-case header img {
  flex: none;
  border-radius: 50%;
}

.about-testimonial header img {
  border: 1px solid #fdaa03;
  object-fit: cover;
}

.about-user-case h3 {
  margin: 0;
  color: #666;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
}

.about-user-case p,
.about-user-case blockquote {
  margin: 16px 0 0;
  font-size: 16px;
  line-height: 1.8;
}

.about-carousel__arrows {
  position: absolute;
  inset: calc(var(--about-card-height) / 2 - 20px) -56px auto;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
}

.about-carousel__arrows button {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid #ddd;
  border-radius: 50%;
  padding: 0;
  background: #fff;
  color: #666;
  cursor: pointer;
  pointer-events: auto;
}

.about-carousel__arrows span {
  width: 8px;
  height: 8px;
  border: solid currentColor;
  border-width: 0 1px 1px 0;
  transform: translateX(2px) rotate(135deg);
}

.about-carousel__arrows button:last-child span {
  transform: translateX(-2px) rotate(-45deg);
}

.about-carousel__arrows button:hover {
  border-color: #fdaa03;
  color: #a26400;
}

.about-carousel__arrows button[aria-disabled='true'] {
  opacity: 0.45;
  cursor: default;
}

:is(#testimonials, #press) .about-carousel__arrows {
  opacity: 0;
}

:is(#testimonials, #press) .about-carousel__arrows button {
  pointer-events: none;
}

:is(#testimonials, #press) .about-carousel__arrows:has(:focus-visible) {
  opacity: 1;
}

@media (hover: hover) {
  :is(#testimonials, #press):hover .about-carousel__arrows {
    opacity: 1;
  }

  :is(#testimonials, #press):hover .about-carousel__arrows button {
    pointer-events: auto;
  }
}

@media (min-width: 1392px) and (hover: hover) {
  :is(#testimonials, #press) {
    /* Keep the arrows reachable across the gap beside the cards. */
    margin-inline: -56px;
    padding-inline: 56px;
  }
}

.about-carousel__dots {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-top: var(--about-dot-gap);
}

.about-carousel__dots button {
  display: grid;
  width: 8px;
  height: 8px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  padding: 0;
  background: #ddd;
  cursor: pointer;
}

.about-carousel__dots button[aria-pressed='true'] {
  background: #fdaa03;
}

.about-carousel__arrows[hidden],
.about-carousel__dots[hidden] {
  display: none;
}

.about-honors {
  padding-inline: 80px 55px;
}

.about-honors__grid {
  display: grid;
  grid-template-columns: minmax(0, 456px) minmax(0, 594px);
  justify-content: space-between;
  gap: 32px;
}

.about-honors__photos {
  display: grid;
  grid-template-areas: 'ranking ranking awards' 'trophies ceremony ceremony';
  grid-template-columns: 160fr 104fr 160fr;
  grid-template-rows: repeat(2, auto);
  gap: 16px;
}

.about-honors__photos img {
  display: block;
  width: 100%;
  height: auto;
  border: 2px solid #fdaa03;
  border-radius: 24px;
}

.about-honors__photos img:nth-child(1) {
  grid-area: ranking;
}

.about-honors__photos img:nth-child(2) {
  grid-area: awards;
  align-self: end;
}

.about-honors__photos img:nth-child(3) {
  grid-area: trophies;
}

.about-honors__photos img:nth-child(4) {
  grid-area: ceremony;
}

.about-honors__list {
  display: grid;
  align-self: start;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: honor;
}

.about-honors__list li {
  display: flex;
  min-height: 68px;
  align-items: center;
  border-radius: 12px;
  padding: 12px 16px;
  background: #f4f5f7;
  font-size: 20px;
  line-height: 1.8;
  counter-increment: honor;
}

.about-honors__list li::before {
  flex: none;
  content: counter(honor) '、';
}

.about-story {
  display: flex;
  padding: 32px 32px 24px;
}

.about-story article {
  display: flex;
  width: 100%;
  flex-direction: column;
}

.about-story h3 {
  margin: 0 0 8px;
  font-size: 16px;
  line-height: 24px;
}

.about-story p {
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 1.8;
}

.about-story footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.about-story__source {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #666;
  font-size: 12px;
}

.about-story__source img {
  flex: none;
  border-radius: 50%;
}

.about-detail-link,
.about-badge__detail {
  color: #666;
  font-size: 14px;
  line-height: 22px;
}

.about-detail-link:is(:hover, :focus-visible),
.about-badge:is(:hover, :focus-visible) .about-badge__detail {
  color: var(--color-accent);
}

.about-badges {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.about-badge {
  display: flex;
  width: 100%;
  min-height: 124px;
  align-items: center;
  gap: 16px;
  border: 0;
  padding: 24px 32px;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.about-badge img {
  flex: none;
  border-radius: 50%;
}

.about-badge__body {
  display: grid;
  gap: 8px;
  font-size: 16px;
  line-height: 24px;
}

.about-careers__grid {
  display: grid;
  min-height: 376px;
  grid-template-columns: minmax(0, 516px) minmax(0, 562px);
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.about-careers__grid > img {
  display: block;
  width: 100%;
  height: auto;
  align-self: end;
  margin-top: -8px;
}

.about-careers__body {
  display: flex;
  min-height: 376px;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
}

.about-careers h3 {
  margin: 0 0 24px;
  font-size: 32px;
  line-height: 40px;
}

.about-careers p {
  max-width: 500px;
  color: #666;
}

.about-careers__link {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  gap: 8px;
  border-radius: 24px;
  padding: 10px 24px;
  background: #191919;
  color: #fff;
  line-height: 24px;
}

.about-careers__link:hover {
  background: #444;
}

.about-careers small {
  display: block;
  margin: 8px 0 0 12px;
  color: #666;
  font-size: 12px;
  line-height: 20px;
}

.about-dialog {
  width: min(540px, calc(100% - 32px));
  max-height: calc(100% - 32px);
  overflow: auto;
  overscroll-behavior: contain;
  border: 0;
  border-radius: 16px;
  padding: 0;
  background: #fff;
  color: #191919;
}

.about-dialog::backdrop {
  background: rgb(0 0 0 / 55%);
}

.about-dialog__header {
  position: sticky;
  z-index: 1;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px clamp(16px, 4vw, 28px);
  background: #fff;
}

.about-dialog__header h2 {
  margin: 0;
  font-size: clamp(18px, 4vw, 22px);
  line-height: 1.4;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.about-dialog__header h2:focus {
  outline: none;
}

.about-dialog__close {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  padding: 0;
  background: #f0f1f3;
  color: #555;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

.about-dialog__close:hover {
  background: #e7e9ed;
  color: #191919;
}

.about-dialog__body {
  padding: 0 clamp(16px, 4vw, 28px) 24px;
}

.about-dialog img {
  width: min(100%, 380px);
  height: auto;
  margin-inline: auto;
}

.about-dialog img:not([hidden]) {
  display: block;
}

.about-screen-reader {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (max-width: 1391px) {
  .about-carousel__arrows {
    inset: auto 0 -16px;
    justify-content: center;
    gap: 96px;
  }

  .about-user-case,
  .about-story {
    padding: 24px;
  }

  .about-user-case header {
    padding-inline-end: 48px;
  }
}

@media (max-width: 1000px) {
  .about-page {
    --about-section-gap: 96px;
  }

  .about-panel {
    padding: 40px;
  }

  .about-carousel__track {
    --about-cards-per-page: 2;
  }

  .about-honors__list li {
    font-size: 16px;
  }

  .about-badge {
    padding: 20px;
  }
}

@media (max-width: 700px) {
  .about-page {
    --about-hero-height: 385px;
    --about-section-gap: 64px;
  }

  .about-hero {
    min-height: calc(var(--about-hero-height) - 64px);
    padding-top: 40px;
  }

  .about-hero p {
    margin-top: 16px;
  }

  .about-hero__stats {
    margin-top: 24px;
  }

  .about-hero__stats div {
    gap: 4px;
  }

  .about-content {
    padding: 42px 0 70px;
  }

  .about-panel {
    border-radius: 24px;
    padding: 28px 24px;
  }

  .about-section h2,
  .about-panel h2 {
    margin-bottom: 28px;
  }

  .about-intro__grid,
  .about-honors__grid,
  .about-badges,
  .about-careers__grid {
    min-height: 0;
    grid-template-columns: minmax(0, 1fr);
  }

  .about-carousel {
    --about-card-height: 240px;
  }

  .about-carousel__track {
    --about-cards-per-page: 1;
  }

  .about-honors__photos img {
    border-radius: 16px;
  }

  .about-careers__body {
    min-height: 0;
  }

  .about-careers__grid > img {
    margin-top: 0;
  }

  .about-careers h3 {
    margin-bottom: 12px;
    font-size: 24px;
    line-height: 32px;
  }
}
