/* 自定义样式 - 补充Tailwind.css */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@300;400;500&display=swap');

:root {
  --color-primary: #F5F5F0;
  --color-secondary: #E8E8E3;
  --color-accent: #D4C4B0;
  --color-text: #3A3A3A;
  --color-text-light: #666666;
  --font-family: 'Noto Sans SC', sans-serif;
}

body {
  font-family: var(--font-family);
  font-weight: 300;
  color: var(--color-text);
  background-color: var(--color-primary);
}

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

/* 导航栏样式 */
.nav-link {
  position: relative;
  transition: color 0.3s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--color-accent);
  transition: width 0.3s ease;
}

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

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

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

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.1), rgba(0,0,0,0.3));
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-text {
  color: white;
  text-align: center;
  letter-spacing: 0.1em;
}

/* 瀑布流布局 */
.masonry-grid {
  column-count: 3;
  column-gap: 1rem;
}

@media (max-width: 1024px) {
  .masonry-grid {
    column-count: 2;
  }
}

@media (max-width: 640px) {
  .masonry-grid {
    column-count: 1;
  }
}

.masonry-item {
  break-inside: avoid;
  margin-bottom: 1rem;
}

.masonry-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
}

.masonry-item:hover img {
  transform: scale(1.02);
}

/* 模态框 */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.modal.active {
  display: flex;
}

.modal-content {
  max-width: 90%;
  max-height: 90%;
  position: relative;
}

.modal-image {
  width: 100%;
  height: auto;
}

.modal-close {
  position: absolute;
  top: -40px;
  right: 0;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.modal-close:hover {
  opacity: 0.7;
}

/* 横向滚动区块 */
.horizontal-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.scroll-item {
  display: inline-block;
  width: 100%;
  height: 100vh;
  scroll-snap-align: start;
  white-space: normal;
  vertical-align: top;
}

/* 滚动条样式 */
.horizontal-scroll::-webkit-scrollbar {
  height: 8px;
}

.horizontal-scroll::-webkit-scrollbar-track {
  background: var(--color-secondary);
}

.horizontal-scroll::-webkit-scrollbar-thumb {
  background: var(--color-accent);
  border-radius: 4px;
}

/* 按钮样式 */
.btn-primary {
  background-color: transparent;
  border: 1px solid var(--color-text);
  color: var(--color-text);
  padding: 0.75rem 2rem;
  transition: all 0.3s ease;
  letter-spacing: 0.05em;
}

.btn-primary:hover {
  background-color: var(--color-text);
  color: var(--color-primary);
}

/* 标签样式 */
.tag {
  background-color: var(--color-secondary);
  padding: 0.25rem 1rem;
  border-radius: 2rem;
  font-size: 0.875rem;
  transition: background-color 0.3s ease;
}

.tag:hover,
.tag.active {
  background-color: var(--color-accent);
}

/* 图片描述 */
.image-caption {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: var(--color-text-light);
}

/* 页脚 */
footer {
  background-color: var(--color-primary);
  padding: 2rem;
  text-align: center;
  font-size: 0.875rem;
  color: var(--color-text-light);
}

/* 加载动画 */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

/* 响应式字体大小 */
@media (max-width: 640px) {
  .hero-text h1 {
    font-size: 2rem;
  }
  
  .hero-text p {
    font-size: 1rem;
  }
}