/* 色彩变量 */
:root {
  --color-primary: #2C2C2C;
  --color-secondary: #666666;
  --color-light: #F5F5F5;
  --color-white: #FFFFFF;
  --color-spring: #C6E2D7;
  --color-summer: #F7E0D4;
  --color-autumn: #B5A28B;
  --color-winter: #A7B8D4;
  --color-text: #333333;
  --color-text-secondary: #666666;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  color: var(--color-text);
  line-height: 1.6;
  background-color: var(--color-white);
}

/* 响应式布局 */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* 平滑过渡 */
.transition {
  transition: all 0.3s ease;
}

/* 图片懒加载占位符 */
.lazy-load {
  background-color: var(--color-light);
  filter: blur(5px);
  transition: filter 0.3s;
}

.lazy-load.loaded {
  filter: blur(0);
}

/* 轮播图样式 */
.carousel {
  position: relative;
  overflow: hidden;
}

.carousel-slide {
  display: none;
  animation: fadeIn 1s;
}

.carousel-slide.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

.image-hover img {
  transition: transform 0.3s ease;
}

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

/* 图片查看器 */
.image-viewer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
}

.image-viewer.active {
  display: flex;
}

.image-viewer img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
}

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

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

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

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

/* 响应式导航菜单 */
.mobile-menu {
  display: none;
}

@media (max-width: 768px) {
  .mobile-menu {
    display: block;
  }
  
  .desktop-menu {
    display: none;
  }
}

/* 季节性主题背景 */
.bg-spring { background-color: var(--color-spring); }
.bg-summer { background-color: var(--color-summer); }
.bg-autumn { background-color: var(--color-autumn); }
.bg-winter { background-color: var(--color-winter); }

/* 字体大小 */
.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.875rem; }
.text-base { font-size: 1rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }
.text-4xl { font-size: 2.25rem; }

/* 间距 */
.p-4 { padding: 1rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.m-4 { margin: 1rem; }
.mb-4 { margin-bottom: 1rem; }
.mt-8 { margin-top: 2rem; }

/* 边框 */
.border-t { border-top: 1px solid var(--color-light); }

/* 阴影 */
.shadow-sm { box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); }
.shadow-md { box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1); }