/* 引入字体库 */
@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400;0,500;1,400&family=Montserrat:wght@300;400;500;700&family=Noto+Sans+SC:wght@100;300;400;500;700&display=swap');

:root {
  /* 基础配色变量，便于JS动态主题切换 */
  --color-primary: #FFFFFF;
  --color-secondary: #FAFAFA;
  --color-accent: #2C2C2C;
  --color-text-main: #2C2C2C;
  --color-text-light: #888888;
  
  /* 季节强调色 - 默认春季 */
  --season-color-1: #E8B4BC;
  --season-color-2: #A8E6CF;

  /* 动画时长 */
  --transition-fast: 0.3s;
  --transition-normal: 0.5s;
  --transition-slow: 0.8s;
}

/* 基础排版 */
body {
  font-family: 'Noto Sans SC', 'Montserrat', sans-serif;
  color: var(--color-text-main);
  background-color: var(--color-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden; /* 防止水平滚动 */
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Noto Sans SC', sans-serif;
  letter-spacing: -0.02em;
}

.font-serif {
  font-family: 'Lora', serif;
}

/* 自定义滚动条 */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: #E5E5E5;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #CCCCCC;
}

/* 动画工具类 */
.transition-smooth {
  transition: all var(--transition-fast) cubic-bezier(0.4, 0, 0.2, 1);
}

/* 渐入上浮动画 */
.fade-in-up {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp var(--transition-slow) cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 延迟显示工具 */
.delay-100 { animation-delay: 100ms; }
.delay-200 { animation-delay: 200ms; }
.delay-300 { animation-delay: 300ms; }
.delay-500 { animation-delay: 500ms; }

/* 图像悬停效果 */
.hover-zoom-container {
  overflow: hidden;
  position: relative;
}

.hover-zoom-img {
  transition: transform var(--transition-slow);
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.hover-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 50%);
  opacity: 0;
  transition: opacity var(--transition-fast);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem;
}

.hover-zoom-container:hover .hover-overlay {
  opacity: 1;
}

/* 轮播图指示器 */
.carousel-dot {
  width: 6px;
  height: 6px;
  background-color: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  transition: all 0.3s ease;
  cursor: pointer;
}

.carousel-dot.active {
  width: 24px;
  background-color: #FFFFFF;
  border-radius: 3px;
}

/* 水平滚动隐藏滚动条但保留功能 */
.hide-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.hide-scrollbar::-webkit-scrollbar {
  display: none;
}

/* 视差背景 */
.parallax-bg {
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

/* 极简分割线 */
.separator-line {
  height: 1px;
  background: linear-gradient(90deg, transparent, #E5E5E5, transparent);
  width: 100%;
  margin: 4rem 0;
}

/* 动态槽位占位符（开发用，生产环境可隐藏或替换） */
.dynamic-slot {
  min-height: 50px;
  border: 1px dashed #e5e5e5;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ccc;
  font-size: 0.8rem;
  margin: 1rem 0;
  display: none; /* 默认隐藏，需要调试时开启 */
}