body {
  -webkit-font-smoothing: antialiased;
}

html {
  scroll-behavior: smooth;
}

:root {
  --motion-duration-base: 0.8s;
  --motion-duration-slow: 1.2s;
  --motion-ease-enter: cubic-bezier(0.22, 1, 0.36, 1);
  --motion-ease-gentle: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* 轮播图过渡效果 */
.carousel-item {
  transition: opacity var(--motion-duration-base) ease-in-out, transform 6s linear;
  opacity: 0;
  z-index: 0;
  transform: scale(1);
}

.carousel-item.active {
  opacity: 1;
  z-index: 10;
  transform: scale(1.03);
}

.hero-section .carousel-item {
  will-change: opacity, transform;
}

.hero-slide-media,
.hero-slide-overlay,
.hero-slide-content,
.hero-metrics-inner {
  will-change: transform, opacity;
}

.motion-section {
  overflow: clip;
}

/* 渐变遮罩 */
.hero-gradient {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.3) 50%, rgba(0, 0, 0, 0.6) 100%);
}

/* 滚动条隐藏 */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}

.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Logo 灰度转彩色 */
.partner-logo {
  filter: grayscale(100%);
  opacity: 0.7;
  transition: all 0.3s;
}

.partner-logo:hover {
  filter: grayscale(0%);
  opacity: 1;
}

.partner-marquee-track {
  animation: partner-marquee 28s linear infinite;
}

.partner-marquee:hover .partner-marquee-track {
  animation-play-state: paused;
}

.news-nav-btn.is-disabled {
  opacity: 0.45;
  cursor: default;
  pointer-events: none;
}

@keyframes partner-marquee {
  from {
    transform: translate3d(0, 0, 0);
  }

  to {
    transform: translate3d(-50%, 0, 0);
  }
}

#navbar .logo img {
  width: 200px;
  filter: brightness(0) invert(1);
}

#navbar.backdrop-blur .logo img,
#navbar.backdrop-blur-md .logo img {
  filter: none;
}

.footer-logo {
  filter: brightness(0) invert(1);
}

/* about */
.hero-bg {
  /* 使用PDF P1 风格的背景图 */
  background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../images/about_hero_bg.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.text-justify-inter {
  text-align: justify;
  text-justify: inter-ideograph;
}

.curve-mask {
  position: absolute;
  top: 0;
  right: -50px;
  width: 100px;
  height: 100%;
  background: #f8fafc;
  border-radius: 50% 0 0 50%;
  z-index: 20;
}

#dituContent .map_pic{
  width: 100%;
  height: 100%;
  object-fit: cover;
}
@media (min-width: 1024px) {
  .history-section {
    overflow: visible;
  }

  .history-layout {
    align-items: flex-start;
  }

  .history-sidebar {
    align-self: flex-start;
    flex-shrink: 0;
  }

  .history-sidebar-inner {
    height: calc(100vh - 80px);
  }

  .history-content-wrap {
    min-height: 100vh;
  }
}

/* 移动端适配：取消高度限制 */
@media (max-width: 1023px) {
  .curve-mask {
    display: none;
  }

  .history-section {
    overflow: hidden;
  }

  .history-sidebar {
    position: relative;
    top: auto;
    height: auto;
  }

  .history-sidebar-inner {
    position: relative;
    top: auto;
    height: auto;
    min-height: auto;
  }

  .history-content-wrap {
    min-height: auto;
  }

  .history-year {
    width: 100%;
  }

  .history-year .text-2xl {
    font-size: 1.75rem;
    line-height: 1.2;
  }

  .hero-metrics-inner {
    gap: 1.5rem;
  }

  .news-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html:focus-within {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .carousel-item,
  .carousel-item.active,
  .hero-slide-media,
  .hero-slide-overlay,
  .hero-slide-content,
  .hero-metrics-inner,
  .partner-marquee-track,
  .news-card {
    transform: none !important;
    opacity: 1 !important;
  }

  .partner-marquee-track {
    animation: none !important;
  }
}