:root {
  --primary: #1a365d;
  --accent: #f97316;
  --accentLight: #fed7aa;
}

* {
  font-family: ui-sans-serif, system-ui, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 3.75rem;
}

button:active {
  outline: none;
}

select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333333' d='M1.5 4.5l4.5 4.5 4.5-4.5z'/%3E%3C/svg%3E")
    no-repeat right 12px center;
  padding-right: 30px;
  &::-ms-expand {
    display: none;
  }
}

[id] {
  scroll-margin-top: 3.75rem;
}

/* Hero Banner Slider */
.hero-slider {
  position: relative;
  height: 100vh;
  max-height: 42.5rem;
  min-height: 20rem;
  padding-top: 5rem;
  overflow: hidden;
}
.hero-slide {
  height: calc(100vh - 5rem);
  max-height: 37.5rem;
  min-height: 15rem;
}
.hero-slide img {
  object-fit: cover;
  object-position: center;
}
.swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  cursor: pointer;
  background-color: #fff;
  opacity: 1;
  transition: all 0.3s;
}

/* Number counter animation */
.counter {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease;
}
.counter.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Card hover effect */
.card-hover {
  transition: all 0.3s ease;
}
.card-hover:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

/* Navigation */
.nav-fixed {
  backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.95);
  color: var(--primary);
}

/* Dropdown Menu */
.nav-dropdown {
  position: relative;
}
.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  min-width: 200px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  padding: 8px 0;
  z-index: 100;
  margin-top: 8px;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  margin-top: 16px;
}
.nav-dropdown-item {
  display: block;
  padding: 10px 20px;
  color: #374151;
  font-size: 16px;
  font-weight: 500;
  transition: all 0.2s;
  text-decoration: none;
}
.nav-dropdown-item:hover {
  background: #f97316;
  color: white;
  padding-left: 24px;
}
.nav-dropdown-item .icon {
  margin: -2px 4px 0 0;
  display: inline-block;
  vertical-align: middle;
}
.nav-dropdown-item:hover .icon {
  fill: #fff;
}
/* 下拉箭头 */
.nav-dropdown-arrow {
  display: inline-block;
  margin-left: 4px;
  font-size: 10px;
  transition: transform 0.3s;
}
.nav-dropdown:hover .nav-dropdown-arrow {
  transform: rotate(180deg);
}

/* Fade in animation - 默认可见，JS 启用后才有动画 */
.fade-up {
  opacity: 1;
  transform: translateY(0);
}
.js-ready .fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}
.js-ready .fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Mobile menu */
.mobile-menu {
  transform: translateX(100%);
  transition: transform 0.3s ease;
}
.mobile-menu.open {
  transform: translateX(0);
}

/* Floating sidebar */
.floating-bar {
  position: fixed;
  right: 20px;
  bottom: 100px;
  z-index: 50;
}

/* Back to top */
.back-top {
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s;
  z-index: 999;
}
.back-top.show {
  opacity: 1;
  pointer-events: all;
}

/* Page switching */
.nav-link.active {
  color: #1a365d;
  font-weight: 600;
}

/* Honor scroll animation */
.honor-scroll-container {
  position: relative;
}
.honor-scroll-container::before,
.honor-scroll-container::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 80px;
  z-index: 10;
  pointer-events: none;
}
.honor-scroll-container::before {
  left: 0;
  background: linear-gradient(to right, white, transparent);
}
.honor-scroll-container::after {
  right: 0;
  background: linear-gradient(to left, white, transparent);
}
.honor-scroll-track {
  animation: scrollX 30s linear infinite;
}
.honor-scroll-track:hover {
  animation-play-state: paused;
}
@keyframes scrollX {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}
.honor-card {
  transition: all 0.3s ease;
}
.honor-card:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Timeline */
.timeline-line {
  position: absolute;
  top: 8px;
  left: 0;
  right: 0;
  height: 2px;
  background: #e2e8f0;
}
.timeline-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #f97316;
  border: 3px solid white;
  box-shadow: 0 0 0 3px #f97316;
}
