/* =========================================================
   关于我们 —— 品牌叙事编排（与主页构图刻意不同）
   主页：底对齐 Hero / 左右分栏 / 卡片网格
   本页：竖排开篇 / 窄栏长文 / 大字宣言 / 横滑年份 / 图上数字
   ========================================================= */

/* 供产品页复用的通用 page-hero（保留） */
.page-hero,
.about-page .ab-open,
.about-page .ab-story,
.about-page .ab-manifesto,
.about-page .ab-values,
.about-page .ab-years,
.about-page .ab-impact,
.about-page .ab-gate,
.final-cta {
  position: relative;
  z-index: 2;
}

.page-hero {
  position: relative;
  z-index: 2;
  min-height: 52vh;
  display: flex;
  align-items: flex-end;
  padding: calc(var(--nav-h) + var(--safe-top, 0px) + var(--space-5)) 0 var(--space-6);
  overflow: hidden;
}

.page-hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.85) brightness(0.65);
}

.page-hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(6, 10, 18, 0.92) 0%, rgba(6, 10, 18, 0.55) 55%, rgba(6, 10, 18, 0.35) 100%),
    linear-gradient(180deg, transparent 40%, var(--bg) 100%);
}

.page-hero-content {
  position: relative;
  z-index: 2;
  max-width: 640px;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  margin: 0 0 var(--space-2);
  line-height: 1.05;
}

.page-hero-content > p:last-of-type {
  margin: 0;
  color: var(--muted);
  font-size: var(--text-lg);
  max-width: 40ch;
}

.page-hero-cta {
  margin-top: var(--space-3);
}

.ab-kicker {
  font-size: var(--text-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 12px;
  font-weight: 600;
}

/* —— 开篇：左竖排标题 + 右出血大图 —— */
.ab-open {
  display: grid;
  grid-template-columns: minmax(240px, 0.9fr) 1.4fr;
  min-height: 100vh;
  min-height: 100dvh;
  padding-top: calc(var(--nav-h) + var(--safe-top, 0px));
}

.ab-open-text {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--space-6) var(--space-4) var(--space-6) max(24px, calc((100vw - var(--max)) / 2));
  background: var(--bg);
}

.ab-open-label {
  font-size: var(--text-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 var(--space-4);
}

.ab-open h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3.2rem, 8vw, 6rem);
  line-height: 0.92;
  letter-spacing: -0.05em;
  margin: 0 0 var(--space-4);
}

.ab-open h1 span {
  display: block;
}

.ab-open-lead {
  margin: 0;
  color: var(--muted);
  font-size: var(--text-lg);
  line-height: 1.55;
  max-width: 18ch;
}

.ab-open-visual {
  margin: 0;
  position: relative;
  overflow: hidden;
  min-height: 420px;
}

.ab-open-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.9) brightness(0.78);
}

.ab-open-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--bg) 0%, transparent 28%);
  pointer-events: none;
}

/* —— 故事：窄栏居中长文 —— */
.ab-story {
  padding: var(--space-7) 0;
}

.ab-story-rail {
  width: min(100% - 48px, 640px);
  margin-inline: auto;
}

.ab-story-rail h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  letter-spacing: -0.03em;
  margin: 0 0 var(--space-4);
  line-height: 1.15;
}

.ab-story-body {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.85;
}

.ab-story-body p {
  margin: 0 0 1.25em;
}

.ab-story-body p:last-child {
  margin-bottom: 0;
}

.ab-story-bleed {
  margin: var(--space-6) 0;
  width: min(100% - 32px, 1100px);
  margin-inline: auto;
}

.ab-story-bleed img {
  width: 100%;
  aspect-ratio: 21 / 9;
  object-fit: cover;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  display: block;
}

.ab-story-bleed figcaption {
  margin-top: 10px;
  font-size: var(--text-xs);
  color: var(--muted);
  letter-spacing: 0.06em;
}

.ab-pull {
  width: min(100% - 48px, 720px);
  margin: var(--space-6) auto;
  padding: var(--space-4) 0 var(--space-4) var(--space-4);
  border-left: 3px solid var(--accent);
}

.ab-pull p {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.8vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.35;
  margin: 0 0 14px;
  color: var(--text);
}

.ab-pull cite {
  font-style: normal;
  font-size: var(--text-sm);
  color: var(--muted);
}

/* —— 使命 / 愿景：全宽大字 —— */
.ab-manifesto-item {
  padding: var(--space-7) max(24px, calc((100vw - var(--max)) / 2));
  border-top: 1px solid var(--line);
}

.ab-manifesto-item h2 {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  margin: 8px 0 var(--space-3);
}

.ab-manifesto-idx {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  letter-spacing: 0.14em;
  color: var(--accent);
}

.ab-manifesto-line {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4.2vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.15;
  margin: 0 0 var(--space-3);
  max-width: 16em;
  color: var(--text);
}

.ab-manifesto-sub {
  margin: 0;
  color: var(--muted);
  font-size: var(--text-md);
  max-width: 42ch;
}

.ab-manifesto-vision {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: flex-end;
  padding: 0;
  overflow: hidden;
  border-top: none;
}

.ab-manifesto-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.45) saturate(0.85);
}

.ab-manifesto-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 10, 18, 0.2) 0%, rgba(6, 10, 18, 0.88) 70%);
}

.ab-manifesto-inner {
  position: relative;
  z-index: 1;
  padding: var(--space-7) max(24px, calc((100vw - var(--max)) / 2));
  width: 100%;
}

/* —— 价值观：宽屏等分五列；窄屏横滑且末项留足右边距 —— */
.ab-values {
  padding: var(--space-7) 0 var(--space-6);
  border-top: 1px solid var(--line);
}

.ab-values-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  letter-spacing: -0.03em;
  margin: 0;
}

.ab-values-track {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: var(--space-3);
  width: min(100% - 48px, var(--max));
  margin-inline: auto;
  padding: var(--space-5) 0;
  box-sizing: border-box;
}

.ab-value {
  min-width: 0;
  padding: var(--space-4) var(--space-2) var(--space-4) 0;
  border-top: 1px solid var(--line);
  min-height: 220px;
}

.ab-value span {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 2.5vw, 2.5rem);
  font-weight: 800;
  color: rgba(94, 200, 255, 0.35);
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: var(--space-3);
}

.ab-value h3 {
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.2vw, 1.2rem);
  margin: 0 0 10px;
  letter-spacing: -0.02em;
}

.ab-value p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

@media (max-width: 1100px) {
  .ab-values-track {
    display: flex;
    gap: var(--space-3);
    width: auto;
    max-width: none;
    margin: 0;
    overflow-x: auto;
    padding: var(--space-5) 0;
    padding-left: max(24px, calc((100vw - var(--max)) / 2));
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  /* overflow 容器的 padding-right 常失效，用伪元素撑出右侧留白 */
  .ab-values-track::after {
    content: "";
    flex: 0 0 max(24px, calc((100vw - var(--max)) / 2));
  }

  .ab-values-track::-webkit-scrollbar {
    height: 4px;
  }

  .ab-values-track::-webkit-scrollbar-thumb {
    background: rgba(94, 200, 255, 0.35);
    border-radius: 4px;
  }

  .ab-value {
    flex: 0 0 min(260px, 72vw);
    scroll-snap-align: start;
    padding: var(--space-4) var(--space-3);
  }

  .ab-value span {
    font-size: 2.5rem;
  }

  .ab-value h3 {
    font-size: 1.25rem;
  }
}

.ab-values-strip {
  margin-top: var(--space-2);
}

.ab-values-strip img {
  width: 100%;
  aspect-ratio: 3 / 1;
  object-fit: cover;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  display: block;
}

/* —— 历程：轮播（无滚动条） —— */
.ab-years {
  padding: var(--space-7) 0;
  background: linear-gradient(180deg, rgba(10, 18, 32, 0.5), rgba(6, 10, 18, 0.9));
  border-block: 1px solid var(--line);
}

.ab-years-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  letter-spacing: -0.03em;
  margin: 0;
}

.ab-carousel {
  margin-top: var(--space-5);
  max-width: 720px;
}

.ab-carousel-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}

.ab-carousel-btn {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: rgba(13, 22, 38, 0.8);
  color: var(--text);
  font-size: 1.1rem;
  cursor: pointer;
  transition: border-color var(--dur-fast), color var(--dur-fast), background var(--dur-fast);
  flex-shrink: 0;
}

.ab-carousel-btn:hover {
  border-color: rgba(94, 200, 255, 0.45);
  color: var(--accent);
}

.ab-carousel-btn:disabled {
  opacity: 0.35;
  cursor: default;
}

.ab-carousel-dots {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.ab-carousel-dots button {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: border-color var(--dur-fast), color var(--dur-fast), background var(--dur-fast);
}

.ab-carousel-dots button.is-active {
  color: var(--accent-ink);
  background: var(--accent);
  border-color: var(--accent);
}

.ab-carousel-dots button:hover:not(.is-active) {
  color: var(--text);
  border-color: var(--line-strong);
}

.ab-carousel-viewport {
  overflow: hidden;
  border-top: 2px solid var(--line);
  position: relative;
}

.ab-carousel-track {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  transition: transform 0.45s var(--ease);
  will-change: transform;
}

.ab-carousel-slide {
  flex: 0 0 100%;
  min-width: 100%;
  box-sizing: border-box;
  padding: var(--space-4) 4px 0 0;
  position: relative;
  opacity: 0.35;
  transform: translateY(6px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}

.ab-carousel-slide.is-active {
  opacity: 1;
  transform: none;
}

.ab-carousel-slide::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(94, 200, 255, 0.15);
}

.ab-carousel-slide time {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.6rem, 3vw, 2rem);
  color: var(--accent);
  letter-spacing: -0.03em;
  margin-bottom: 14px;
}

.ab-carousel-slide h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin: 0 0 10px;
  letter-spacing: -0.02em;
}

.ab-carousel-slide p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
  max-width: 48ch;
}

.ab-carousel-status {
  margin: var(--space-3) 0 0;
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  color: var(--muted);
}

/* —— 数据：压在全幅图上 —— */
.ab-impact {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.ab-impact-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.4) saturate(0.8);
}

.ab-impact-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 10, 18, 0.25) 0%, rgba(6, 10, 18, 0.92) 75%);
}

.ab-impact-content {
  position: relative;
  z-index: 1;
  padding-block: var(--space-7);
  width: min(100% - 48px, var(--max));
}

.ab-impact-content h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  letter-spacing: -0.03em;
  margin: 0 0 var(--space-5);
}

.ab-impact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
}

.ab-impact-grid strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.5rem);
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.05em;
  line-height: 1;
  margin-bottom: 10px;
}

.ab-impact-grid span {
  color: rgba(232, 238, 246, 0.75);
  font-size: var(--text-sm);
}

/* —— CTA：左右对切 —— */
.ab-gate {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line);
}

.ab-gate-panel {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 12px;
  min-height: 320px;
  padding: var(--space-6) var(--space-4);
  transition: background var(--dur) var(--ease);
}

.ab-gate-panel:hover {
  background: rgba(94, 200, 255, 0.06);
}

.ab-gate-panel strong {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  letter-spacing: -0.03em;
  font-weight: 800;
}

.ab-gate-go {
  color: var(--accent);
  font-weight: 600;
  font-size: var(--text-sm);
}

.ab-gate-product {
  border-left: 1px solid var(--line);
  background: rgba(10, 18, 32, 0.55);
}

@media (max-width: 900px) {
  .ab-open {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .ab-open-text {
    padding: var(--space-5) max(20px, var(--gutter, 24px));
    order: 2;
  }

  .ab-open-visual {
    order: 1;
    min-height: min(48vh, 420px);
  }

  .ab-open-visual::after {
    background: linear-gradient(180deg, transparent 45%, var(--bg) 100%);
  }

  .ab-open h1 {
    font-size: clamp(2.6rem, 14vw, 4rem);
  }

  .ab-open-lead {
    max-width: 28ch;
    font-size: 1.05rem;
  }

  .ab-story-rail {
    width: min(100% - 40px, 640px);
  }

  .ab-story-body {
    font-size: 1rem;
    line-height: 1.75;
  }

  .ab-story-bleed {
    width: min(100% - 24px, 1100px);
    margin: var(--space-5) auto;
  }

  .ab-story-bleed img {
    aspect-ratio: 16 / 10;
  }

  .ab-manifesto-item {
    padding: var(--space-5) max(20px, var(--gutter, 24px));
  }

  .ab-manifesto-inner {
    padding: var(--space-6) max(20px, var(--gutter, 24px));
  }

  .ab-manifesto-vision {
    min-height: 58vh;
  }

  .ab-manifesto-line {
    font-size: clamp(1.45rem, 6.5vw, 2.2rem);
    max-width: none;
  }

  .ab-values-strip img {
    aspect-ratio: 16 / 9;
  }

  .ab-carousel {
    max-width: none;
  }

  .ab-carousel-toolbar {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) 40px;
    align-items: center;
    gap: 8px;
  }

  .ab-carousel-dots {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 6px;
    max-width: none;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 2px 2px 4px;
  }

  .ab-carousel-dots::-webkit-scrollbar {
    display: none;
  }

  .ab-carousel-dots button {
    flex: 0 0 auto;
    padding: 7px 12px;
    font-size: 0.75rem;
    min-height: 36px;
    white-space: nowrap;
  }

  .ab-carousel-slide {
    padding: var(--space-3) 2px 0 0;
  }

  .ab-carousel-slide time {
    font-size: clamp(1.35rem, 7vw, 1.85rem);
    word-break: break-word;
  }

  .ab-carousel-slide h3 {
    font-size: 1.2rem;
  }

  .ab-carousel-slide p {
    font-size: 0.95rem;
    line-height: 1.65;
  }

  .ab-impact {
    min-height: 64vh;
  }

  .ab-impact-content {
    width: min(100% - 40px, var(--max));
    padding-block: var(--space-6);
  }

  .ab-impact-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3);
  }

  .ab-gate {
    grid-template-columns: 1fr;
  }

  .ab-gate-panel {
    min-height: 240px;
    padding: var(--space-5) max(20px, var(--gutter, 24px));
  }

  .ab-gate-product {
    border-left: none;
    border-top: 1px solid var(--line);
  }

  .page-hero {
    min-height: 44vh;
    padding: calc(var(--nav-h) + var(--safe-top, 0px) + var(--space-4)) 0 var(--space-5);
  }

  .page-hero-shade {
    background:
      linear-gradient(180deg, rgba(6, 10, 18, 0.35) 0%, rgba(6, 10, 18, 0.82) 55%, var(--bg) 100%);
  }

  .page-hero h1 {
    font-size: clamp(2rem, 9vw, 2.8rem);
  }

  .ab-values-head,
  .ab-years-head {
    width: min(100% - 40px, var(--max));
    margin-inline: auto;
  }
}

@media (max-width: 560px) {
  .ab-open-visual {
    min-height: min(42vh, 320px);
  }

  .ab-open-text {
    padding: var(--space-4) 20px calc(var(--space-5) + var(--safe-bottom, 0px));
  }

  .ab-value {
    flex: 0 0 min(240px, 78vw);
  }

  .ab-impact-grid {
    grid-template-columns: 1fr;
    gap: var(--space-3);
  }

  .ab-impact-grid strong {
    font-size: clamp(2rem, 10vw, 2.6rem);
  }

  .ab-gate-panel {
    min-height: 200px;
  }

  .ab-carousel-btn {
    width: 40px;
    height: 40px;
  }

  .ab-carousel-toolbar {
    grid-template-columns: 40px minmax(0, 1fr) 40px;
  }

  .ab-years-head {
    margin-bottom: var(--space-3);
  }

  .ab-years-head h2 {
    font-size: clamp(1.5rem, 7vw, 2rem);
  }
}

@media (max-height: 700px) and (max-width: 900px) {
  .ab-open-visual {
    min-height: min(36vh, 260px);
  }

  .ab-manifesto-vision {
    min-height: 48vh;
  }

  .ab-impact {
    min-height: 52vh;
  }
}
