/* 风尚映画 - 自定义样式 */

/* ========== 字体引入 ========== */
@import url('https://fonts.loli.net/css2?family=Noto+Sans+SC:wght@300;400;500&display=swap');

/* ========== 全局样式重置 ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 300;
  color: #1a1a1a;
  background: #fafafa;
  overflow-x: hidden;
  line-height: 1.6;
}

/* ========== 平滑滚动 ========== */
html {
  scroll-behavior: smooth;
}

/* ========== 导航栏样式 ========== */
.nav-link {
  position: relative;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  width: 0;
  height: 1px;
  background: #1a1a1a;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateX(-50%);
}

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

/* ========== 图片容器样式 ========== */
.image-container {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.image-container img {
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-container:hover img {
  transform: scale(1.02);
}

.image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
  opacity: 0;
  transition: opacity 0.4s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-container:hover .image-overlay {
  opacity: 1;
}

/* ========== 轮播容器 ========== */
.hero-slider {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}

.hero-slide.active {
  opacity: 1;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ========== 横向滚动容器 ========== */
.horizontal-scroll {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  gap: 2rem;
  padding: 2rem 0;
}

.horizontal-scroll::-webkit-scrollbar {
  display: none;
}

.horizontal-scroll-item {
  flex: 0 0 auto;
  scroll-snap-align: start;
}

/* ========== 加载动画 ========== */
.loading-placeholder {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* ========== 页面切换动画 ========== */
.page-section {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.page-section.active {
  opacity: 1;
  transform: translateY(0);
}

/* ========== 文字效果 ========== */
.text-elegant {
  letter-spacing: 0.05em;
  line-height: 1.8;
}

.title-large {
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 300;
  letter-spacing: 0.02em;
}

/* ========== 按钮样式 ========== */
.btn-minimal {
  position: relative;
  padding: 0.75rem 2rem;
  border: 1px solid #1a1a1a;
  background: transparent;
  color: #1a1a1a;
  transition: all 0.3s ease;
  overflow: hidden;
}

.btn-minimal::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: #1a1a1a;
  transition: left 0.3s ease;
  z-index: -1;
}

.btn-minimal:hover {
  color: #fff;
}

.btn-minimal:hover::before {
  left: 0;
}

/* ========== 响应式断点 ========== */
@media (max-width: 768px) {
  .horizontal-scroll {
    gap: 1rem;
  }
  
  .title-large {
    font-size: 2rem;
  }
}