/* 全局样式文件 - 时尚视觉网站 */

/* Tailwind CSS 自定义配置 */
@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@300;400&family=Noto+Sans+SC:wght@300;400&display=swap');

/* 重置和基础样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Noto Sans SC', sans-serif;
  color: #333333;
  background-color: #FFFFFF;
  overflow-x: hidden;
}

/* 字体定义 */
.font-serif {
  font-family: 'Noto Serif SC', serif;
}

.font-sans {
  font-family: 'Noto Sans SC', sans-serif;
}

/* 页面淡入动画 */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.fade-in {
  animation: fadeIn 0.8s ease-in-out;
}

/* 导航栏样式 */
.nav-container {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.nav-link {
  position: relative;
  color: #333333;
  text-decoration: none;
  font-weight: 300;
  letter-spacing: 0.05em;
  transition: all 0.3s ease;
}

.nav-link:hover {
  color: #000000;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 1px;
  background: #333333;
}

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

.image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease, filter 0.6s ease;
}

.image-container:hover img {
  transform: scale(1.05);
  filter: brightness(0.95);
}

/* 图片描述标签 */
.image-label {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background: rgba(255, 255, 255, 0.9);
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 300;
  letter-spacing: 0.1em;
  opacity: 0;
  transition: opacity 0.4s ease;
}

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

/* 英雄区域样式 */
.hero-section {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-text {
  position: absolute;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  color: #FFFFFF;
  font-size: 24px;
  font-weight: 300;
  letter-spacing: 0.15em;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  padding: 0 20px;
}

/* 网格布局样式 */
.grid-asymmetric {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  padding: 60px 40px;
}

.grid-item {
  position: relative;
  min-height: 400px;
}

.grid-item:nth-child(1) {
  grid-column: span 2;
}

.grid-item:nth-child(3) {
  grid-column: span 2;
}

/* 瀑布流布局 */
.masonry-grid {
  column-count: 3;
  column-gap: 20px;
  padding: 100px 40px 60px;
}

.masonry-item {
  break-inside: avoid;
  margin-bottom: 20px;
}

/* 水平滚动容器 */
.horizontal-scroll {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: #cccccc transparent;
  padding: 100px 0 60px;
}

.horizontal-scroll::-webkit-scrollbar {
  height: 6px;
}

.horizontal-scroll::-webkit-scrollbar-track {
  background: transparent;
}

.horizontal-scroll::-webkit-scrollbar-thumb {
  background: #cccccc;
  border-radius: 3px;
}

.scroll-item {
  flex: 0 0 80vw;
  height: 80vh;
  scroll-snap-align: center;
  margin: 0 10px;
  position: relative;
}

.scroll-caption {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 11px;
  color: #666666;
  letter-spacing: 0.1em;
  font-weight: 300;
}

/* 页脚样式 */
.footer {
  text-align: center;
  padding: 40px 20px;
  font-size: 12px;
  font-weight: 300;
  color: #999999;
  letter-spacing: 0.1em;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

/* 隐藏菜单覆盖层 */
.menu-overlay {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  height: 100vh;
  background: rgba(255, 255, 255, 0.98);
  z-index: 100;
  transition: right 0.5s ease;
  overflow-y: auto;
  padding: 100px 40px 60px;
}

.menu-overlay.active {
  right: 0;
}

.archive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 30px;
}

.archive-item {
  cursor: pointer;
}

.archive-title {
  margin-top: 10px;
  font-size: 14px;
  font-weight: 300;
  letter-spacing: 0.05em;
  color: #333333;
}

/* 灯箱效果 */
.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 200;
  align-items: center;
  justify-content: center;
}

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-width: 90%;
  max-height: 90vh;
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 30px;
  right: 30px;
  color: #FFFFFF;
  font-size: 30px;
  cursor: pointer;
  font-weight: 300;
}

/* 响应式设计 */
@media (max-width: 1024px) {
  .masonry-grid {
    column-count: 2;
  }
  
  .grid-item:nth-child(1),
  .grid-item:nth-child(3) {
    grid-column: span 1;
  }
}

@media (max-width: 768px) {
  .masonry-grid {
    column-count: 1;
    padding: 80px 20px 40px;
  }
  
  .grid-asymmetric {
    padding: 80px 20px 40px;
  }
  
  .hero-text {
    font-size: 18px;
    bottom: 60px;
  }
  
  .scroll-item {
    flex: 0 0 90vw;
    height: 70vh;
  }
  
  .menu-overlay {
    padding: 80px 20px 40px;
  }
}

/* 加载动画 */
.loading {
  opacity: 0;
  transition: opacity 0.4s ease;
}

.loading.loaded {
  opacity: 1;
}