/**
 * 关于我们页 — 通栏布局
 */
.layout .main:has(> .about-page--ref) {
  padding-top: 0;
}

.main > .about-page--ref {
  padding-left: 0;
  padding-right: 0;
  max-width: none;
  width: 100%;
}

.about-page--ref {
  margin: 0;
  padding-bottom: clamp(32px, 5vw, 56px);
  background: var(--bg);
}

.about-page--ref .about-load-error {
  margin: clamp(16px, 3vw, 24px) var(--page-pad, 16px) 0;
  padding: 12px 16px;
  border-radius: var(--radius, 12px);
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
  text-align: center;
}

.about-page--ref:has(.about-section--partner-strip--page-end) {
  padding-bottom: 0;
}

/* —— 区块标题 —— */
.about-page--ref .about-section-title {
  margin: 0 0 clamp(22px, 3.5vw, 32px);
  font-family: var(
    --about-typo-section-title-family,
    var(--site-font-serif, Georgia, "Times New Roman", serif)
  );
  font-size: var(--about-typo-section-title-size, clamp(1.35rem, 3.2vw, 1.85rem));
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
  color: var(--about-typo-section-title-color, var(--text));
  letter-spacing: 0.04em;
}

.about-page--ref .about-section-title::after {
  content: "";
  display: block;
  width: 52px;
  height: 3px;
  margin: 0.65em auto 0;
  border-radius: 2px;
  background: linear-gradient(90deg, #8bc34a, #7cb342);
}

/* —— 内页区块 —— */
.about-page--ref .about-section--inset {
  box-sizing: border-box;
  padding-left: max(var(--content-gutter), var(--safe-left));
  padding-right: max(var(--content-gutter), var(--safe-right));
  max-width: min(1200px, 100%);
  margin-left: auto;
  margin-right: auto;
}

.about-page--ref .about-section {
  margin-bottom: clamp(40px, 6vw, 64px);
}

.about-page--ref .about-section--brief {
  margin-top: 0;
  padding-top: clamp(32px, 5vw, 52px);
  padding-bottom: clamp(32px, 5vw, 48px);
  background: var(--card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.06);
  max-width: none;
}

@media (prefers-color-scheme: dark) {
  .about-page--ref .about-section--brief {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
  }
}

.about-page--ref .about-section--brief .about-enterprise-brief {
  max-width: min(1200px, 100%);
  margin: 0 auto;
  padding-left: max(var(--content-gutter), var(--safe-left));
  padding-right: max(var(--content-gutter), var(--safe-right));
  box-sizing: border-box;
}

/* 企业简介 */
.about-enterprise-brief {
  display: flex;
  flex-direction: column;
  max-width: 100%;
}

.about-enterprise-brief__head {
  margin: 0 0 clamp(18px, 2.8vw, 26px);
}

.about-enterprise-brief__body {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: clamp(24px, 3.5vw, 44px);
  align-items: start;
}

.about-enterprise-brief__body:has(.about-enterprise-brief__media[hidden]) {
  grid-template-columns: 1fr;
}

.about-enterprise-brief__body .about-prose--brief {
  min-width: 0;
}

.about-enterprise-brief__media {
  min-width: 0;
  width: 100%;
  border-radius: calc(var(--radius) + 4px);
  overflow: hidden;
  background: var(--input-bg);
  border: 1px solid var(--border);
  box-shadow: 0 10px 36px var(--shadow-card);
  aspect-ratio: 4 / 3;
}

.about-enterprise-brief__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.about-prose--brief {
  font-family: var(--about-typo-intro-body-family, inherit);
  font-size: var(--about-typo-intro-body-size, clamp(15px, 2.1vw, 16px));
  line-height: 1.9;
  color: var(--about-typo-intro-body-color, var(--text));
  max-width: 100%;
}

.about-prose--brief p {
  margin: 0 0 0.9em;
}

.about-prose--brief p:last-child {
  margin-bottom: 0;
}

.about-company-title {
  margin: 0;
  font-family: var(
    --about-typo-company-title-family,
    var(--site-font-sans, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif)
  );
  font-size: var(--about-typo-company-title-size, clamp(1.5rem, 3.5vw, 2.15rem));
  font-weight: 700;
  line-height: 1.35;
  color: var(--about-typo-company-title-color, var(--text));
}

.about-prose {
  line-height: 1.9;
  font-size: clamp(15px, 2.2vw, 16px);
  color: var(--text);
}

.about-prose p {
  margin: 0 0 1em;
}

.about-prose p:last-child {
  margin-bottom: 0;
}

/* 实力卡片 */
.about-section--strength {
  padding-bottom: clamp(24px, 4vw, 40px);
}

.about-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(14px, 2.2vw, 22px);
}

.about-pillar-card {
  text-align: center;
  padding: clamp(20px, 3vw, 28px) clamp(12px, 2vw, 18px);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 2px);
  transition: box-shadow 0.22s ease, transform 0.22s ease, border-color 0.22s ease;
}

.about-pillar-card:hover {
  box-shadow: 0 12px 32px var(--shadow-card);
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--accent2) 35%, var(--border));
}

.about-pillar-card__icon {
  font-size: clamp(1.6rem, 3.2vw, 2rem);
  line-height: 1;
  margin-bottom: 12px;
}

.about-pillar-card h3 {
  margin: 0 0 8px;
  font-family: var(--about-typo-pillar-title-family, inherit);
  font-size: var(--about-typo-pillar-title-size, clamp(1rem, 2.2vw, 1.1rem));
  color: var(--about-typo-pillar-title-color, inherit);
  font-weight: 700;
}

.about-pillar-card p {
  margin: 0;
  font-family: var(--about-typo-pillar-text-family, inherit);
  font-size: var(--about-typo-pillar-text-size, clamp(13px, 2vw, 14px));
  color: var(--about-typo-pillar-text-color, var(--muted));
  line-height: 1.6;
}

/* 数据条 */
.about-stats-band {
  width: 100%;
  background: linear-gradient(
    90deg,
    var(--about-stats-bg-start, #689f38) 0%,
    var(--about-stats-bg-mid, #7cb342) 40%,
    var(--about-stats-bg-end, #9ccc65) 100%
  );
  color: var(--about-stats-text-color, #fff);
  background-size: 200% 100%;
  padding: clamp(24px, 3.5vw, 36px) 0;
  margin-bottom: 0;
}

.about-stats-band.is-live {
  animation: about-stats-shimmer 12s ease-in-out infinite;
}

@keyframes about-stats-shimmer {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.about-page--ref .about-section--partner-strip--page-end {
  margin-bottom: 0;
}

.about-stats-band__viewport {
  width: 100%;
  overflow: hidden;
}

.about-stats-band.is-ticker .about-stats-band__viewport {
  display: flex;
  width: max-content;
  animation: about-stats-ticker var(--about-stats-duration, 48s) linear infinite;
}

.about-stats-band.is-ticker .about-stats-band__list {
  flex: 0 0 auto;
}

@keyframes about-stats-ticker {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(var(--about-stats-shift, -50%), 0, 0);
  }
}

.about-stats-band__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  max-width: min(1200px, 100%);
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.about-stats-band__item {
  text-align: center;
  color: var(--about-stats-text-color, #fff);
  padding: 8px clamp(8px, 1.5vw, 16px);
  border-right: 1px solid rgba(255, 255, 255, 0.35);
  box-sizing: border-box;
  opacity: 0;
  transform: translateY(8px);
}

.about-stats-band.is-live .about-stats-band__item {
  animation: about-stats-item-in 0.55s ease forwards;
  animation-delay: calc(var(--stat-i, 0) * 0.08s);
}

.about-stats-band.is-ticker .about-stats-band__list {
  display: flex;
  flex-wrap: nowrap;
  width: max-content;
  grid-template-columns: unset;
  max-width: none;
  margin: 0;
}

.about-stats-band.is-ticker .about-stats-band__item {
  flex: 0 0 auto;
  min-width: clamp(128px, 16vw, 200px);
}

@keyframes about-stats-item-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.about-stats-band__item:last-child {
  border-right: none;
}

.about-stats-band__figure {
  margin: 0;
  font-family: var(--about-typo-stats-figure-family, inherit);
  font-size: var(--about-typo-stats-figure-size, clamp(1.35rem, 3.2vw, 2rem));
  color: var(--about-typo-stats-figure-color, inherit);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.02em;
}

.about-stats-band__figure span {
  font-size: 0.65em;
  font-weight: 600;
  margin-left: 0.15em;
}

.about-stats-band__label {
  margin: 6px 0 0;
  font-family: var(--about-typo-stats-label-family, inherit);
  font-size: var(--about-typo-stats-label-size, clamp(12px, 2vw, 14px));
  color: var(--about-typo-stats-label-color, inherit);
  opacity: 0.95;
  line-height: 1.35;
}

/* 企业视频 */
.about-video-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 2.5vw, 28px);
  max-width: min(1100px, 100%);
  margin: 0 auto;
}

.about-video-shell {
  background: #000;
  border-radius: calc(var(--radius) + 4px);
  overflow: hidden;
  box-shadow: 0 10px 36px var(--shadow-card);
}

.about-video-inner {
  position: relative;
  width: 100%;
  background: #000;
}

.about-video-iframe-wrap {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
}

.about-video-iframe-wrap iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.about-video-native {
  width: 100%;
  max-height: min(70vh, 520px);
  display: block;
}

/* 资质荣誉 */
.about-honors-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: clamp(14px, 2.2vw, 22px);
}

.about-honor-card {
  text-align: center;
}

.about-honor-card__frame {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px;
  box-shadow: 0 6px 20px var(--shadow-card);
  overflow: hidden;
  aspect-ratio: 3 / 4;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.about-honor-card:hover .about-honor-card__frame {
  transform: translateY(-4px);
  box-shadow: 0 14px 28px var(--shadow-card);
}

.about-honor-card__frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.about-honor-card__caption {
  margin: 10px 0 0;
  font-family: var(--about-typo-honor-caption-family, inherit);
  font-size: var(--about-typo-honor-caption-size, clamp(12px, 1.9vw, 13px));
  color: var(--about-typo-honor-caption-color, var(--muted));
  line-height: 1.45;
}

/* 企业掠影：页顶通栏 */
.about-page--ref .about-section--showcase {
  padding-left: 0;
  padding-right: 0;
  max-width: none;
}

.about-section--showcase-top {
  margin-top: 0;
  margin-bottom: 0;
}

.about-showcase-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  border: none;
  background: var(--carousel-bg);
  min-height: clamp(280px, 44vw, 520px);
}

.about-showcase-carousel::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 40%;
  pointer-events: none;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.35), transparent);
  z-index: 1;
}

.about-carousel-slides {
  position: relative;
  min-height: inherit;
}

.about-carousel-slide {
  display: none;
}

.about-carousel-slide.active {
  display: block;
}

.about-carousel-slide img {
  width: 100%;
  height: clamp(280px, 44vw, 520px);
  object-fit: cover;
  display: block;
}

.about-carousel-dots {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 2;
}

.about-carousel-dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  padding: 0;
  transition: background 0.2s ease, transform 0.2s ease;
}

.about-carousel-dots button.active {
  background: #fff;
  transform: scale(1.1);
}

/* 业务场景 */
.about-scenario-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: clamp(18px, 2.8vw, 24px);
}

.about-scenario-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 2px);
  overflow: hidden;
  box-shadow: 0 6px 24px var(--shadow-card);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.about-scenario-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 36px var(--shadow-card);
}

.about-scenario-img {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--input-bg);
}

.about-scenario-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.about-scenario-body {
  padding: clamp(14px, 2.2vw, 18px) clamp(16px, 2.5vw, 20px);
}

.about-scenario-body h3 {
  margin: 0 0 8px;
  font-family: var(--about-typo-scenario-title-family, inherit);
  font-size: var(--about-typo-scenario-title-size, 1.05rem);
  color: var(--about-typo-scenario-title-color, inherit);
  font-weight: 700;
}

.about-scenario-body p {
  margin: 0;
  font-family: var(--about-typo-scenario-desc-family, inherit);
  font-size: var(--about-typo-scenario-desc-size, 14px);
  color: var(--about-typo-scenario-desc-color, var(--muted));
  line-height: 1.65;
}

/* 横向滚动条通栏 */
.about-page--ref .about-section--partner-strip {
  padding-left: 0;
  padding-right: 0;
}

.about-page--ref .about-section--partner-strip:not(.about-section--partner-strip--page-end) {
  margin-bottom: clamp(28px, 4vw, 48px);
}

.about-page--ref .about-section--partner-strip--page-end {
  margin-top: 0;
  margin-bottom: 0;
}

.about-page--ref .about-partner-marquee {
  border-radius: 0;
  border-left: none;
  border-right: none;
  -webkit-mask-image: none;
  mask-image: none;
  background: var(--bg);
  padding: clamp(14px, 2.5vw, 22px) 0;
}

.about-page--ref .about-partner-marquee-item img {
  height: clamp(140px, 22vw, 240px);
  max-width: min(380px, 48vw);
  border-radius: 8px;
}

@media (max-width: 1024px) {
  .about-pillars {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .about-stats-band__list {
    grid-template-columns: repeat(3, 1fr);
  }

  .about-stats-band__item:nth-child(3) {
    border-right: none;
  }

  .about-stats-band__item:nth-child(n + 4) {
    border-top: 1px solid rgba(255, 255, 255, 0.35);
    border-right: 1px solid rgba(255, 255, 255, 0.35);
  }

  .about-stats-band__item:nth-child(5) {
    border-right: none;
  }
}

@media (max-width: 900px) {
  .about-enterprise-brief__body {
    grid-template-columns: 1fr;
    gap: clamp(20px, 4vw, 28px);
  }

  .about-enterprise-brief__media {
    max-width: min(480px, 100%);
    margin: 0 auto;
  }

  .about-honors-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .about-video-grid {
    grid-template-columns: 1fr;
    max-width: min(640px, 100%);
  }
}

@media (max-width: 640px) {
  .about-pillars {
    grid-template-columns: 1fr;
  }

  .about-honors-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .about-stats-band__list {
    grid-template-columns: 1fr 1fr;
  }

  .about-stats-band__item {
    border-right: 1px solid rgba(255, 255, 255, 0.35);
  }

  .about-stats-band__item:nth-child(2n) {
    border-right: none;
  }

  .about-stats-band__item:nth-child(n + 3) {
    border-top: 1px solid rgba(255, 255, 255, 0.35);
  }
}

@media (max-width: 400px) {
  .about-honors-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .about-stats-band.is-live {
    animation: none;
    background-size: 100% 100%;
  }

  .about-stats-band.is-ticker .about-stats-band__viewport {
    animation: none;
    display: block;
    width: 100%;
  }

  .about-stats-band__item,
  .about-stats-band.is-live .about-stats-band__item {
    opacity: 1;
    transform: none;
    animation: none;
  }
}
