/* 字体定义 */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Inter:wght@300;400;500;600&display=swap');

/* 全局变量 */
:root {
  --color-oat: #f5f1ea;
  --color-grey: #9a9a9a;
  --color-black: #1a1a1a;
  --color-gold: #c9a961;
  --font-serif: 'Playfair Display', serif;
  --font-sans: 'Inter', sans-serif;
}

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

/* 图片悬停效果 */
.image-hover {
  overflow: hidden;
  position: relative;
}

.image-hover img {
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.6s ease;
  transform: scale(1);
  opacity: 0.95;
}

.image-hover:hover img {
  transform: scale(1.05);
  opacity: 1;
}

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

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

/* 导航栏悬停效果 */
.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-gold);
  transition: width 0.3s ease;
}

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

/* 竖排文字效果 */
.vertical-text {
  writing-mode: vertical-rl;
  text-orientation: mixed;
}

/* 金色装饰线 */
.gold-line {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
}

/* 图片网格布局 */
.masonry-grid {
  column-count: 3;
  column-gap: 2rem;
}

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

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

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

/* 页面切换效果 */
.page-section {
  min-height: 100vh;
  opacity: 1;
  transition: opacity 0.5s ease;
}

/* 文字描述词样式 */
.caption-word {
  letter-spacing: 0.3em;
  font-weight: 300;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.caption-word:hover {
  opacity: 1;
}

/* 按钮悬停效果 */
.btn-elegant {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.btn-elegant::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(201, 169, 97, 0.1);
  transform: translate(-50%, -50%);
  transition: width 0.5s, height 0.5s;
}

.btn-elegant:hover::before {
  width: 300px;
  height: 300px;
}

/* 加载动画 */
@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

.loading-shimmer {
  background: linear-gradient(90deg, #f5f1ea 25%, #e8e4dd 50%, #f5f1ea 75%);
  background-size: 1000px 100%;
  animation: shimmer 2s infinite;
}

/* 防止文本选择影响美观 */
.no-select {
  user-select: none;
}

/* 细节装饰 */
.decorative-dot {
  width: 4px;
  height: 4px;
  background-color: var(--color-gold);
  border-radius: 50%;
}