/* 字体系统引入 */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600&family=Playfair+Display:ital,wght@0,400;0,600;1,400&family=Noto+Sans+SC:wght@300;400;500&family=Noto+Serif+SC:wght@400;600&display=swap');

/* 全局变量定义 */
:root {
  --color-primary: #2C2C2C;
  --color-accent: #D4AF37;
  --color-bg-light: #FAF8F5;
  --transition-speed: 0.3s;
}

/* 基础样式重置与字体设置 */
body {
  font-family: 'Montserrat', 'Noto Sans SC', sans-serif;
  color: var(--color-primary);
  background-color: #ffffff;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', 'Noto Serif SC', serif;
}

/* 页面过渡效果 */
.page-transition-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #ffffff;
  z-index: 9999;
  opacity: 1;
  pointer-events: none;
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.page-loaded .page-transition-overlay {
  opacity: 0;
}

/* 滚动渐入动画 */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* 交互特效 */
.hover-zoom-container {
  overflow: hidden;
  position: relative;
}

.hover-zoom-img {
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

/* 视差滚动容器 */
.parallax-section {
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

/* 导航链接动效 */
.nav-link {
  position: relative;
  transition: color 0.3s ease;
}

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

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

/* 轮播图样式 */
.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  z-index: 0;
}

.carousel-slide.active {
  opacity: 1;
  z-index: 1;
}

/* 隐藏滚动条但保持功能 (用于横向滚动区域) */
.scrollbar-hide::-webkit-scrollbar {
  display: none;
}
.scrollbar-hide {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* 文字阴影增强可读性 */
.text-shadow-sm {
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* 风格实验室切换动画 */
.lab-content {
  display: none;
  animation: fadeIn 0.5s ease-in-out;
}

.lab-content.active {
  display: block;
}

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

/* 自定义选中文本颜色 */
::selection {
  background: var(--color-accent);
  color: #fff;
}