/* ============================================================
   navbar.css — 首页顶部导航 + 轮播图 + hero
   ============================================================ */

/* ============ 顶部固定导航 ============ */
.navbar {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  z-index: 999;
  background: rgba(11, 13, 17, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 0.6rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}
.navbar .brand {
  font-weight: 700;
  color: var(--gold);
  font-size: 1.1rem;
  letter-spacing: 1px;
  margin-right: 0.5rem;
}
.navbar a {
  color: var(--muted-2);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  padding: 0.3rem 0;
  border-bottom: 2px solid transparent;
  transition: 0.25s ease;
  white-space: nowrap;
}
.navbar a:hover,
.navbar a.active {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

/* ============ 首页 hero ============ */
.hero {
  text-align: center;
  padding: 2rem 0 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 2.5rem;
}
.hero h1 {
  font-size: 4rem;
  font-weight: 700;
  letter-spacing: 4px;
  background: linear-gradient(135deg, #f5e6a3, #d4b87a);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}
.hero .sub {
  font-size: 1.1rem;
  color: var(--muted-2);
  letter-spacing: 2px;
  font-weight: 300;
}
.hero .sub span { color: var(--gold); font-weight: 400; }

/* ============ 轮播图 ============ */
.hero-carousel {
  position: relative;
  max-width: 1000px;
  margin: 0 auto 2rem;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4);
  aspect-ratio: 16 / 7;
}
.hero-carousel-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.hero-carousel-slide {
  min-width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-slide-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(11, 13, 17, 0.15);
  z-index: 0;
}
.hero-slide-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 2rem;
  max-width: 800px;
}
.hero-slide-year {
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--gold-light);
  text-shadow: 0 0 30px rgba(212, 184, 122, 0.3);
  letter-spacing: 2px;
}
.hero-slide-title {
  font-size: 2.2rem;
  font-weight: 600;
  color: #ffffff;
  margin-top: 0.3rem;
  letter-spacing: 3px;
}
.hero-slide-sub {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 0.8rem;
  letter-spacing: 4px;
  font-weight: 300;
}
.hero-carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 1.2rem;
  cursor: pointer;
  transition: 0.3s;
  z-index: 10;
  backdrop-filter: blur(4px);
}
.hero-carousel-btn:hover { background: rgba(212, 184, 122, 0.4); }
.hero-carousel-btn.prev { left: 16px; }
.hero-carousel-btn.next { right: 16px; }

.hero-carousel-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 10;
}
.hero-carousel-dots .hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: 0.3s;
}
.hero-carousel-dots .hero-dot.active {
  background: var(--gold);
  width: 30px;
  border-radius: 5px;
}

/* ============ 响应式 ============ */
@media (max-width: 768px) {
  .hero-carousel { aspect-ratio: 16 / 9; border-radius: 12px; }
  .hero-slide-year { font-size: 2.2rem; }
  .hero-slide-title { font-size: 1.4rem; }
  .hero-slide-sub { font-size: 0.65rem; letter-spacing: 2px; }
  .hero-carousel-btn { width: 34px; height: 34px; font-size: 0.8rem; }
  .hero-carousel-btn.prev { left: 8px; }
  .hero-carousel-btn.next { right: 8px; }
}

@media (max-width: 640px) {
  .navbar { gap: 0.3rem 0.6rem; padding: 0.4rem 0.6rem; }
  .navbar a { font-size: 0.7rem; }
  .navbar .brand { font-size: 0.85rem; margin-right: 0; }
  .hero h1 { font-size: 2.8rem; }
}

@media (max-width: 480px) {
  .hero-carousel { aspect-ratio: 4 / 3; border-radius: 8px; margin: 0 0 1rem; }
  .hero-slide-year { font-size: 1.6rem; }
  .hero-slide-title { font-size: 1rem; }
  .hero-slide-sub { font-size: 0.5rem; letter-spacing: 1px; margin-top: 0.4rem; }
  .hero-slide-content { padding: 1rem; }
  .hero-carousel-btn { width: 28px; height: 28px; font-size: 0.6rem; }
  .hero-carousel-dots { bottom: 10px; gap: 8px; }
  .hero-carousel-dots .hero-dot { width: 8px; height: 8px; }
  .hero-carousel-dots .hero-dot.active { width: 20px; }
}