/* 全局变量与基础设置 */
:root {
  --font-sans: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-serif: "Songti SC", "SimSun", "Times New Roman", Times, serif;
  --color-text: #333333;
  --color-bg: #fafafa;
}

body {
  font-family: var(--font-sans);
  background-color: var(--color-bg);
  color: var(--color-text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* 字体工具类 */
.font-serif-custom {
  font-family: var(--font-serif);
}

/* 顶部导航栏 - 磨砂玻璃效果 */
.glass-nav {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.03);
  transition: transform 0.3s ease, background 0.3s ease;
}

/* 导航链接 - 下划线微动效 */
.nav-link {
  position: relative;
  text-decoration: none;
  color: var(--color-text);
  padding-bottom: 4px;
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 1px;
  bottom: 0;
  left: 0;
  background-color: var(--color-text);
  transition: width 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* 全屏轮播图 */
.carousel-container {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 2s ease-in-out;
  background-size: cover;
  background-position: center;
  z-index: 1;
}

.carousel-slide.active {
  opacity: 1;
  z-index: 2;
}

/* 极简导航圆点 */
.carousel-indicators {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 1rem;
  z-index: 10;
}

.indicator {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all 0.3s ease;
}

.indicator.active {
  background-color: #fff;
  transform: scale(1.2);
}

/* 图片悬停交互 - 缓慢缩放 */
.img-hover-container {
  overflow: hidden;
  position: relative;
  display: block;
}

.img-hover-zoom {
  transition: transform 1.2s cubic-bezier(0.19, 1, 0.22, 1), filter 0.5s ease;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.img-hover-container:hover .img-hover-zoom {
  transform: scale(1.03);
  filter: brightness(0.98);
}

/* 文本与内容动效 - 向上渐入 */
.fade-in-up {
  animation: fadeInUp 1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  opacity: 0;
  transform: translateY(30px);
}

.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-500 { animation-delay: 0.5s; }

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 模态框与遮罩 */
.modal-overlay {
  background-color: rgba(255, 255, 255, 0.98);
  z-index: 50;
  transition: opacity 0.3s ease;
}

.modal-content {
  max-height: 90vh;
  max-width: 90vw;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.05);
}

/* 优雅的选中态 */
::selection {
  background: rgba(0, 0, 0, 0.08);
  color: inherit;
}

/* 预置内容槽位 - 保持DOM结构稳定 */
.content-slot {
  display: contents;
}