/* 
 * Fashion Showcase Global Styles
 * Design Philosophy: Minimalist, Modern, High-End
 * Author: HAISNAP
 */

/* 引入思源黑体作为中文后备字体，提升排版质感 */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@300;400;500&display=swap');

/* --- 全局变量与基础设置 --- */
:root {
  --font-primary: "Helvetica Neue", Helvetica, Arial, "Noto Sans SC", sans-serif;
  --color-text-main: #1a1a1a;
  --color-text-muted: #666666;
  --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-primary);
  color: var(--color-text-main);
  background-color: #ffffff;
  overflow-x: hidden; /* 防止水平滚动 */
}

/* --- 排版增强 --- */
h1, h2, h3, h4, h5, h6 {
  font-weight: 300; /* 细字体增加高级感 */
  letter-spacing: 0.05em;
  line-height: 1.2;
}

p {
  line-height: 1.8;
  letter-spacing: 0.02em;
  color: var(--color-text-muted);
}

/* --- 交互动效组件 --- */

/* 1. 导航链接下划线动效 */
.nav-item {
  position: relative;
  display: inline-block;
  padding-bottom: 2px;
}

.nav-item::after {
  content: '';
  position: absolute;
  width: 0;
  height: 1px;
  bottom: 0;
  left: 50%;
  background-color: #000;
  transition: all 0.4s var(--ease-out-expo);
  transform: translateX(-50%);
}

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

/* 2. 图片容器与悬停放大效果 */
.image-container {
  overflow: hidden;
  position: relative;
  background-color: #f5f5f5; /* 图片加载前的占位色 */
}

.image-hover-zoom {
  transition: transform 1.2s var(--ease-out-expo);
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.image-container:hover .image-hover-zoom {
  transform: scale(1.05);
}

/* 3. 页面加载淡入动画 */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-up {
  opacity: 0;
  animation: fadeInUp 0.8s var(--ease-out-expo) forwards;
}

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

/* --- 轮播图特定样式 (配合JS切换active类) --- */
.hero-slider {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

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

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

.slide-content {
  z-index: 10; /* 确保文字在图片之上 */
}

/* --- 响应式辅助 --- */
@media (max-width: 768px) {
  .hero-slider {
    height: 80vh; /* 移动端不需要完全占满全屏，留出一点给浏览器栏 */
  }
  
  h1 {
    font-size: 2.5rem !important;
  }
  
  .container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

/* --- 滚动条美化 (极简灰) --- */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: #ffffff;
}
::-webkit-scrollbar-thumb {
  background: #e5e5e5;
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: #d1d1d1;
}

/* --- 动态内容槽位 (保留未来扩展能力) --- */
[data-slot="content"] {
  display: contents;
}