/**
 * 企业历程页 — 三栏开幕 Hero（左文 · 中轴 · 右图）+ 时间轴增强
 */

/* ---------- 编辑式 Hero ---------- */
body[data-page="story"] .story-hero {
  position: relative;
  padding: clamp(2rem, 4vw, 3rem) 0 clamp(2rem, 3.5vw, 2.75rem);
  background: linear-gradient(180deg, #faf9f6 0%, #ffffff 72%);
  border-bottom: 1px solid rgba(212, 175, 55, 0.14);
  overflow: hidden;
}

body[data-page="story"] .story-hero::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.55), transparent);
  pointer-events: none;
}

/* 三栏紧凑编排：文案 | 纵向里程碑 | 主视觉 */
body[data-page="story"] .story-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(6.75rem, 8.25rem) minmax(0, 0.98fr);
  align-items: center;
  gap: clamp(1.15rem, 2.2vw, 1.85rem);
  max-width: 1060px;
}

body[data-page="story"] .story-hero-copy {
  position: relative;
  z-index: 1;
  text-align: left;
  min-width: 0;
}

body[data-page="story"] .story-hero-eyebrow {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: rgba(184, 150, 46, 0.92);
}

body[data-page="story"] .story-hero-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.2vw, 2.35rem);
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1.38;
  color: #1a1a1a;
}

body[data-page="story"] .story-hero-lead {
  margin: 0.85rem 0 0;
  font-size: clamp(0.88rem, 1.6vw, 0.98rem);
  line-height: 1.85;
  letter-spacing: 0.07em;
  color: #5a5a5a;
}

body[data-page="story"] .story-hero-rule {
  display: block;
  width: min(68%, 10rem);
  height: 1px;
  margin: 1.1rem 0 0;
  background: linear-gradient(90deg, rgba(212, 175, 55, 0.72), transparent);
}

body[data-page="story"] .story-hero-intro {
  margin: 1rem 0 0;
  max-width: 26rem;
  font-size: 0.88rem;
  line-height: 1.95;
  letter-spacing: 0.04em;
  color: #666666;
}

/* 中轴纵向里程碑：填充原文案与图片之间的空白 */
body[data-page="story"] .story-hero-spine {
  position: relative;
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100%;
  padding: 0.35rem 0;
}

body[data-page="story"] .story-hero-spine-list {
  list-style: none;
  margin: 0;
  padding: 0.25rem 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(1.35rem, 2.8vw, 2rem);
  position: relative;
}

body[data-page="story"] .story-hero-spine-list::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0.65rem;
  bottom: 0.65rem;
  width: 1px;
  transform: translateX(-50%);
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(212, 175, 55, 0.42) 12%,
    rgba(212, 175, 55, 0.42) 88%,
    transparent 100%
  );
}

body[data-page="story"] .story-hero-spine-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.45rem;
}

body[data-page="story"] .story-hero-spine-dot {
  position: relative;
  z-index: 1;
  width: 0.62rem;
  height: 0.62rem;
  border-radius: 50%;
  background: var(--color-gold);
  box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.16);
}

body[data-page="story"] .story-hero-spine-value {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.8vw, 1.18rem);
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--color-gold-dark);
  line-height: 1.3;
}

body[data-page="story"] .story-hero-spine-label {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: #777777;
  line-height: 1.45;
}

body[data-page="story"] .story-hero-visual {
  position: relative;
  margin: 0;
  width: 100%;
  min-width: 0;
  justify-self: stretch;
}

body[data-page="story"] .story-hero-watermark {
  position: absolute;
  right: 0.15rem;
  top: -0.65rem;
  z-index: 0;
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.04em;
  color: rgba(212, 175, 55, 0.1);
  pointer-events: none;
  user-select: none;
}

body[data-page="story"] .story-hero-frame {
  position: relative;
  z-index: 1;
  padding: 0.55rem;
  background: #ffffff;
  border: 1px solid rgba(212, 175, 55, 0.28);
  box-shadow:
    0 16px 42px rgba(26, 26, 26, 0.09),
    inset 0 0 0 1px rgba(255, 255, 255, 0.65);
}

body[data-page="story"] .story-hero-frame::before {
  content: '';
  position: absolute;
  inset: 0.3rem;
  border: 1px solid rgba(212, 175, 55, 0.16);
  pointer-events: none;
}

body[data-page="story"] .story-hero-frame img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 42%;
}

body[data-page="story"] .story-hero-badge {
  position: absolute;
  left: 0.85rem;
  bottom: -0.65rem;
  z-index: 2;
  margin: 0;
  padding: 0.4rem 0.95rem;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: #ffffff;
  background: linear-gradient(180deg, var(--color-gold) 0%, var(--color-gold-dark) 100%);
  border: 1px solid rgba(184, 150, 46, 0.45);
  box-shadow: 0 8px 22px rgba(184, 150, 46, 0.28);
}

body[data-page="story"] .section-story-body {
  padding-top: clamp(2rem, 3.5vw, 2.75rem);
}

/* ---------- 时间轴编辑增强 ---------- */
body[data-page="story"] .story-milestone-label {
  padding: 0.4rem 1.15rem;
  border: 1px solid rgba(212, 175, 55, 0.35);
  background: linear-gradient(180deg, #fffefb 0%, #f8f6f2 100%);
  letter-spacing: 0.16em;
}

body[data-page="story"] .story-figure-media {
  border: 1px solid rgba(212, 175, 55, 0.22);
  box-shadow: 0 12px 36px rgba(26, 26, 26, 0.08);
}

body[data-page="story"] .story-figure-media img {
  max-height: clamp(220px, 32vw, 320px);
}

body[data-page="story"] .story-cta-module {
  margin-top: 1rem;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border-light);
}

body[data-page="story"] .story-cta-module .cta-jump--wide {
  max-width: 42rem;
}

/* ---------- 响应式 ---------- */
@media (max-width: 960px) {
  body[data-page="story"] .story-hero-inner {
    grid-template-columns: 1fr;
    gap: 1.65rem;
    max-width: 34rem;
  }

  body[data-page="story"] .story-hero-copy {
    text-align: center;
  }

  body[data-page="story"] .story-hero-rule,
  body[data-page="story"] .story-hero-intro {
    margin-left: auto;
    margin-right: auto;
  }

  body[data-page="story"] .story-hero-rule {
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.72), transparent);
  }

  body[data-page="story"] .story-hero-spine {
    align-self: auto;
    padding: 0;
  }

  body[data-page="story"] .story-hero-spine-list {
    flex-direction: row;
    justify-content: center;
    gap: 0;
    padding: 0.85rem 0.5rem;
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 999px;
    background: linear-gradient(180deg, #ffffff 0%, #fafaf8 100%);
    box-shadow: 0 8px 24px rgba(26, 26, 26, 0.04);
  }

  body[data-page="story"] .story-hero-spine-list::before {
    display: none;
  }

  body[data-page="story"] .story-hero-spine-item {
    flex: 1 1 0;
    min-width: 0;
    padding: 0 0.35rem;
    border-right: 1px solid rgba(212, 175, 55, 0.18);
  }

  body[data-page="story"] .story-hero-spine-item:last-child {
    border-right: none;
  }

  body[data-page="story"] .story-hero-spine-dot {
    width: 0.45rem;
    height: 0.45rem;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.14);
  }

  body[data-page="story"] .story-hero-spine-value {
    font-size: 0.98rem;
  }

  body[data-page="story"] .story-hero-spine-label {
    font-size: 0.68rem;
  }

  body[data-page="story"] .story-hero-visual {
    max-width: 22rem;
    margin: 0 auto;
  }
}

@media (max-width: 420px) {
  body[data-page="story"] .story-hero-title {
    letter-spacing: 0.08em;
  }

  body[data-page="story"] .story-hero-spine-list {
    border-radius: 1rem;
    flex-wrap: wrap;
    row-gap: 0.65rem;
  }

  body[data-page="story"] .story-hero-spine-item {
    flex: 1 1 calc(33.33% - 0.5rem);
    border-right: none;
  }
}
