:root {
  --page-bg: #ffffff;
  --card-bg: #f5f5f5;
  --text: #151515;
  --muted: #666666;
  --accent: #e85f23;
  --nav-bg: #f5f5f5;
  --nav-stroke: #1d1d1d;
  --nav-disabled: #c7c7c7;
  --max-width: 1920px;
  --side: clamp(24px, 4.17vw, 80px);
  --gap: clamp(18px, 1.67vw, 32px);
}

* { box-sizing: border-box; }
html { font-size: 16px; }
body {
  margin: 0;
  background: var(--page-bg);
  color: var(--text);
  font-family: Arial, "Microsoft YaHei", sans-serif;
}
img { display: block; max-width: 100%; }
button { font: inherit; }

.history {
  overflow: hidden;
  padding: clamp(72px, 6vw, 116px) 0 clamp(78px, 7vw, 132px);
}

.history-inner {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding-inline: var(--side);
}

.history-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: clamp(36px, 3.2vw, 60px);
}

.history-kicker {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 14px;
  line-height: 1.3;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.history-head h1 {
  margin: 0;
  font-size: clamp(38px, 3.5vw, 64px);
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: -0.035em;
}

.history-intro {
  max-width: 680px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

.history-nav {
  display: flex;
  flex: 0 0 auto;
  gap: 12px;
  padding-bottom: 2px;
}

.history-arrow {
  width: 56px;
  height: 56px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.history-arrow svg {
  width: 100%;
  height: 100%;
}

.history-arrow circle {
  fill: var(--nav-bg);
  stroke: transparent;
}

.history-arrow path {
  fill: none;
  stroke: var(--nav-stroke);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke 0.2s ease;
}

.history-arrow:hover:not(.swiper-button-disabled) path {
  stroke: var(--accent);
}

.history-arrow:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 50%;
}

.history-arrow.swiper-button-disabled {
  opacity: 1;
  cursor: default;
}

.history-arrow.swiper-button-disabled path {
  stroke: var(--nav-disabled);
}

.history-swiper {
  overflow: visible;
}

.history-slide {
  width: 30.5%;
  height: auto;
}

.history-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: clamp(24px, 2vw, 38px);
  border-radius: clamp(12px, 0.84vw, 16px);
  background: var(--card-bg);
}

.history-years {
  margin: 0 0 clamp(22px, 2vw, 34px);
  color: var(--accent);
  font-size: clamp(17px, 1.2vw, 22px);
  font-weight: 500;
  line-height: 1.3;
}

.history-image {
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: clamp(7px, 0.45vw, 9px);
  background: #e8e8e8;
}

.history-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.history-card:hover .history-image img {
  transform: scale(1.015);
}

.history-card h2 {
  min-height: 3.15em;
  margin: clamp(24px, 2vw, 34px) 0 0;
  padding-bottom: clamp(18px, 1.4vw, 26px);
  border-bottom: 1px solid var(--accent);
  font-size: clamp(21px, 1.55vw, 29px);
  font-weight: 500;
  line-height: 1.42;
  letter-spacing: -0.02em;
}

.history-desc {
  margin: clamp(18px, 1.45vw, 27px) 0 0;
  color: var(--muted);
  font-size: clamp(14px, 0.95vw, 17px);
  line-height: 1.72;
}

@media (max-width: 1280px) {
  .history-slide {
    width: 42%;
  }
}

@media (max-width: 767px) {
  :root {
    --side: 20px;
    --gap: 16px;
  }

  .history {
    padding: 58px 0 72px;
  }

  .history-head {
    align-items: flex-start;
    margin-bottom: 30px;
  }

  .history-kicker {
    margin-bottom: 8px;
    font-size: 12px;
  }

  .history-head h1 {
    font-size: 34px;
  }

  .history-intro {
    display: none;
  }

  .history-nav {
    gap: 8px;
    padding-top: 1px;
  }

  .history-arrow {
    width: 44px;
    height: 44px;
  }

  .history-swiper {
    margin-right: calc(var(--side) * -1);
  }

  .history-slide {
    width: 68.46vw;
    max-width: 300px;
  }

  .history-card {
    padding: 22px 18px 26px;
    border-radius: 12px;
  }

  .history-years {
    margin-bottom: 20px;
    font-size: 16px;
  }

  .history-image {
    aspect-ratio: 1.75 / 1;
    border-radius: 7px;
  }

  .history-card h2 {
    min-height: 3.05em;
    margin-top: 22px;
    padding-bottom: 18px;
    font-size: 21px;
    line-height: 1.45;
  }

  .history-desc {
    margin-top: 18px;
    font-size: 14px;
    line-height: 1.68;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
  }
}
