/* ============================================================
   about-history.css — about-history.html 专属样式
   从 about.css 拆分 (2026-07-15)
   ============================================================ */

/* ===== about-history4 Hero Replica ===== */
.about-history4-hero {
  background: var(--color-black, #0a0a0a);
  padding: clamp(80px, 12vw, 160px) 0 clamp(60px, 8vw, 100px);
  overflow: hidden;
}

.history4-hero-grid {
  display: grid;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

@media (min-width: 1024px) {
  .history4-hero-grid {
    grid-template-columns: 0.85fr 1.15fr;
  }
}

.history4-hero-content {
  max-width: 520px;
}

.history4-hero-label {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-gold, #c9a96e);
  margin-bottom: 20px;
}

.history4-hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  font-weight: 600;
  line-height: 1.1;
  color: var(--color-white, #ffffff);
  margin-bottom: 24px;
}

.history4-hero-desc {
  font-size: clamp(0.9375rem, 1.2vw, 1.0625rem);
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 32px;
}

/* 英文环境下两端对齐，避免右边参差不齐 */
html:lang(en) .history4-hero-desc {
  text-align: justify;
  hyphens: auto;
  -webkit-hyphens: auto;
}

.history4-hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 32px;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-gold, #c9a96e);
  background: transparent;
  border: 1.5px solid var(--color-gold, #c9a96e);
  border-radius: 2px;
  text-decoration: none;
  transition: all 0.25s ease;
}

.history4-hero-cta:hover {
  background: var(--color-gold, #c9a96e);
  color: var(--color-black, #0a0a0a);
}

.history4-hero-media {
  position: relative;
  --history4-peek: 100px;
}

.history4-hero-carousel {
  border-radius: 4px;
  overflow: hidden;
  line-height: 0;
}

.history4-hero-track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.history4-hero-slide {
  flex: 0 0 calc(100% - var(--history4-peek));
  width: calc(100% - var(--history4-peek));
  padding-right: 16px;
  box-sizing: border-box;
}

.history4-hero-slide img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
  border-radius: 4px;
}

.history4-hero-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
}

.history4-hero-btn {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 2px;
  background: var(--color-gold, #c9a96e);
  color: var(--color-black, #0a0a0a);
  cursor: pointer;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.history4-hero-btn:hover:not(:disabled) {
  transform: scale(1.08);
}

.history4-hero-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.history4-hero-btn svg {
  width: 18px;
  height: 18px;
}

.history4-hero-indicator {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.75);
  margin-left: 8px;
  letter-spacing: 0.06em;
}

@media (max-width: 1023px) {
  .history4-hero-grid {
    grid-template-columns: 1fr;
  }

  .history4-hero-content {
    max-width: none;
  }
}

@media (max-width: 767px) {
  .about-history4-hero {
    padding: 72px 0 56px;
  }

  .history4-hero-media {
    --history4-peek: 64px;
  }

  .history4-hero-slide {
    padding-right: 10px;
  }

  .history4-hero-title {
    font-size: clamp(1.75rem, 8vw, 2.25rem);
  }

  .history4-hero-controls {
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .history4-hero-cta,
  .history4-hero-btn {
    transition: none;
  }
}

/* ===== About History Timeline ===== */
.history-timeline {
  position: relative;
  background: var(--color-charcoal);
  padding: clamp(120px, 14vw, 200px) 0;
  overflow: hidden;
}

.history-timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  max-width: 1000px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201, 169, 110, 0.25), transparent);
}

.history-timeline-grid {
  display: grid;
  gap: clamp(40px, 7vw, 96px);
}

@media (min-width: 1024px) {
  .history-timeline-grid {
    grid-template-columns: 320px 1fr;
  }
}

@media (min-width: 1280px) {
  .history-timeline-grid {
    grid-template-columns: 360px 1fr;
  }
}

.history-year-rail {
  position: relative;
}

@media (min-width: 1024px) {
  .history-year-rail {
    position: sticky;
    top: 120px;
    align-self: start;
  }
}

.history-year-rail .section-label {
  display: inline-block;
  font-size: 0.975rem;
  margin-bottom: 56px;
}

.history-year-list {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding-left: 28px;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.history-year-current {
  font-size: clamp(80px, 9vw, 120px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.03em;
  background: linear-gradient(180deg, var(--color-gold-light) 0%, var(--color-gold) 50%, var(--color-gold-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.history-year-adjacent {
  font-size: clamp(44px, 5.5vw, 72px);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.35);
  line-height: 1.1;
  transition: color 0.25s ease;
}

.history-year-adjacent:hover {
  color: rgba(255, 255, 255, 0.55);
}

.history-timeline-controls {
  display: flex;
  gap: 12px;
  margin-top: 56px;
  padding-left: 28px;
}

.history-timeline-btn {
  width: 52px;
  height: 52px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  color: rgba(255, 255, 255, 0.65);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.history-timeline-btn:hover {
  border-color: var(--color-gold);
  color: var(--color-gold-light);
  background: rgba(201, 169, 110, 0.08);
  transform: translateY(-2px);
}

.history-timeline-btn:active {
  transform: translateY(0) scale(0.94);
}

.history-timeline-btn svg {
  width: 20px;
  height: 20px;
}

.history-events-wrapper {
  min-width: 0;
}

.history-events {
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.history-events.is-changing {
  opacity: 0;
  transform: translateY(-16px);
}

.history-event {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 40px;
  padding: 40px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  opacity: 0;
  transform: translateY(20px);
  animation: history-event-in 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: calc(var(--event-index, 0) * 60ms);
}

@keyframes history-event-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.history-event:hover {
  transform: translateX(8px);
  border-top-color: rgba(201, 169, 110, 0.22);
}

.history-event:hover .history-event-text {
  color: rgba(255, 255, 255, 0.95);
}

.history-event:active {
  transform: translateX(8px) scale(0.99);
}

.history-event-month {
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--color-gold);
  font-variant-numeric: tabular-nums;
  line-height: 1.85;
}

.history-event-text {
  font-size: 1.0625rem;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.72);
  transition: color 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (max-width: 1023px) {
  .history-timeline-grid {
    gap: 48px;
  }

  .history-year-rail {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 24px;
    align-items: start;
  }

  .history-year-rail .section-label {
    margin-bottom: 0;
    grid-column: 1 / -1;
  }

  .history-year-list {
    padding-left: 20px;
    margin-bottom: 0;
  }

  .history-timeline-controls {
    padding-left: 0;
    margin-top: 0;
    flex-direction: column;
  }
}

@media (max-width: 767px) {
  .history-year-current {
    font-size: clamp(56px, 12vw, 80px);
  }

  .history-year-adjacent {
    font-size: clamp(28px, 7vw, 40px);
  }

  .history-event {
    grid-template-columns: 48px 1fr;
    gap: 16px;
    padding: 24px 0;
  }

  .history-event-month {
    line-height: 1.6;
  }

  .history-event-text {
    line-height: 1.75;
  }
}

@media (prefers-reduced-motion: reduce) {
  .history-event {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .history-events {
    transition: none;
  }

  .history-events.is-changing {
    opacity: 1;
    transform: none;
  }
}
