:root {
  --page-line: rgba(15, 61, 78, 0.12);
  --page-line-strong: rgba(15, 61, 78, 0.2);
  --page-text: #0f172a;
  --page-text-soft: #4f5f72;
  --page-muted: #6b7d90;
  --page-accent: #0085a1;
}

/* Neutralize previous page wrappers */
.view-about main.mb-4 > .container.px-4.px-lg-5,
.view-contact main.mb-4 > .container.px-4.px-lg-5 {
  position: relative;
  z-index: 2;
  border: 0;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  padding-top: 0;
  padding-bottom: 0;
  margin-top: -4.2rem;
  margin-bottom: 2rem;
}

.view-about main.mb-4 > .container.px-4.px-lg-5::before,
.view-contact main.mb-4 > .container.px-4.px-lg-5::before {
  content: none;
}

.view-about .about-page,
.view-contact .contact-page {
  font-family: "Open Sans", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

.view-about .about-shell,
.view-contact .contact-shell {
  border-radius: 1.08rem;
  border: 1px solid var(--page-line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(251, 253, 255, 1)),
    radial-gradient(circle at right top, rgba(0, 133, 161, 0.08), transparent 58%);
  box-shadow: 0 16px 30px rgba(11, 35, 54, 0.07);
  padding: 1.08rem 1.08rem 1.15rem;
  animation: about-contact-rise 0.48s cubic-bezier(0.22, 1, 0.36, 1) both;
  will-change: transform, opacity;
}

.view-about .about-hero,
.view-contact .contact-hero {
  position: relative;
  padding: 0.28rem 0 0.9rem;
  border-bottom: 1px solid rgba(15, 61, 78, 0.1);
}

.view-about .about-hero::before,
.view-contact .contact-hero::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 56px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 205, 120, 0.35), rgba(0, 133, 161, 0.65));
}

.view-about .about-eyebrow,
.view-contact .contact-eyebrow {
  margin: 0;
  color: #5d7388;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 800;
}

.view-about .about-title,
.view-contact .contact-title {
  margin: 0.54rem 0 0;
  color: var(--page-text);
  font-family: "Open Sans", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: clamp(1.35rem, 2.3vw, 1.9rem);
  line-height: 1.34;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.view-about .about-summary,
.view-contact .contact-summary {
  margin: 0.58rem 0 0;
  color: var(--page-text-soft);
  font-size: 0.93rem;
  line-height: 1.75;
  max-width: 62ch;
}

.view-about .about-grid,
.view-contact .contact-grid {
  margin-top: 0.95rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.78rem;
}

.view-about .about-card,
.view-contact .contact-card {
  border-radius: 0.92rem;
  border: 1px solid var(--page-line);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 18px rgba(11, 35, 54, 0.04);
  padding: 0.86rem 0.9rem;
  min-width: 0;
  opacity: 0;
  transform: translateY(16px);
  animation: about-contact-rise 0.46s cubic-bezier(0.22, 1, 0.36, 1) both;
  will-change: transform, opacity;
}

.view-about .about-card:nth-child(1),
.view-contact .contact-card:nth-child(1) {
  animation-delay: 0.06s;
}

.view-about .about-card:nth-child(2),
.view-contact .contact-card:nth-child(2) {
  animation-delay: 0.12s;
}

.view-about .about-card:nth-child(3),
.view-contact .contact-card:nth-child(3) {
  animation-delay: 0.18s;
}

.view-about .about-card h3,
.view-contact .contact-card h3 {
  margin: 0;
  color: #0f172a;
  font-size: 0.95rem;
  font-weight: 800;
}

.view-about .about-card p,
.view-contact .contact-card p {
  margin: 0.62rem 0 0;
  color: #5a6a7e;
  font-size: 0.88rem;
  line-height: 1.72;
}

.view-about .about-card ul,
.view-contact .contact-list,
.view-contact .contact-steps {
  margin: 0.62rem 0 0;
  padding-left: 1.05rem;
}

.view-about .about-card li,
.view-contact .contact-list li,
.view-contact .contact-steps li {
  color: #506074;
  font-size: 0.86rem;
  line-height: 1.7;
  margin-top: 0.34rem;
}

.view-about .about-card li::marker,
.view-contact .contact-list li::marker,
.view-contact .contact-steps li::marker {
  color: rgba(0, 133, 161, 0.7);
}

.view-contact .contact-list {
  list-style: none;
  padding: 0;
}

.view-contact .contact-list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.55rem;
  margin-top: 0.45rem;
  padding-top: 0.45rem;
  border-top: 1px dashed rgba(15, 61, 78, 0.16);
}

.view-contact .contact-list li:first-child {
  margin-top: 0.58rem;
}

.view-contact .contact-list a {
  color: #3c6077;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.view-contact .contact-list a:hover,
.view-contact .contact-list a:focus {
  color: var(--page-accent);
  border-bottom-color: rgba(0, 133, 161, 0.35);
}

.view-contact .contact-label {
  color: #738399;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.view-contact .contact-tip {
  margin: 0.7rem 0 0;
  padding: 0.6rem 0.7rem;
  border-radius: 0.72rem;
  border: 1px solid rgba(0, 133, 161, 0.16);
  background: rgba(248, 251, 253, 0.92);
  color: #4a5f76;
  font-size: 0.82rem;
  line-height: 1.6;
}

@keyframes about-contact-rise {
  from {
    opacity: 0;
    transform: translateY(14px);
    filter: blur(2px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@media (max-width: 991.98px) {
  .view-about main.mb-4 > .container.px-4.px-lg-5,
  .view-contact main.mb-4 > .container.px-4.px-lg-5 {
    margin-top: -2.8rem;
    margin-bottom: 1.5rem;
  }

  .view-about .about-shell,
  .view-contact .contact-shell {
    padding: 0.92rem 0.92rem 1rem;
  }

  .view-about .about-grid,
  .view-contact .contact-grid {
    grid-template-columns: 1fr;
    gap: 0.62rem;
  }
}

@media (max-width: 767.98px) {
  .view-about main.mb-4 > .container.px-4.px-lg-5,
  .view-contact main.mb-4 > .container.px-4.px-lg-5 {
    margin-top: -2rem;
  }

  .view-about .about-title,
  .view-contact .contact-title {
    font-size: 1.2rem;
  }

  .view-about .about-summary,
  .view-contact .contact-summary {
    font-size: 0.88rem;
  }

  .view-about .about-card,
  .view-contact .contact-card {
    padding: 0.78rem 0.8rem;
  }

  .view-contact .contact-list li {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.3rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .view-about .about-shell,
  .view-contact .contact-shell,
  .view-about .about-card,
  .view-contact .contact-card {
    animation: none;
    opacity: 1;
    transform: none;
  }
}
