/* 引入字体：思源宋体与思源黑体 */
@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@200;300;400&family=Noto+Sans+SC:wght@100;300;400&display=swap');

/* CSS变量系统 - 极简配色 */
:root {
  --color-bg: #FCFCFA;       /* 奶油白/米白背景 */
  --color-text: #2C2C2C;     /* 深灰正文 */
  --color-heading: #1A1A1A;  /* 浅黑标题 */
  --color-muted: #8E8E8E;    /* 辅助灰 */
  --color-accent: #D4CDC5;   /* 莫兰迪燕麦色 */
  
  --font-sans: 'Helvetica', 'Arial', 'Noto Sans SC', sans-serif;
  --font-serif: 'Noto Serif SC', serif;
}

/* 基础重置与排版 */
body {
  font-family: var(--font-sans);
  background-color: var(--color-bg);
  color: var(--color-text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
  margin: 0;
  padding: 0;
}

h1, h2, h3, h4, h5, h6, .font-serif {
  font-family: var(--font-serif);
  color: var(--color-heading);
  font-weight: 300;
}

a {
  text-decoration: none;
  color: inherit;
}

/* 导航栏交互 */
.nav-link {
  position: relative;
  font-weight: 300;
  letter-spacing: 0.05em;
  padding-bottom: 4px;
  transition: color 0.3s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 1px;
  bottom: 0;
  left: 50%;
  background-color: var(--color-heading);
  transition: all 0.3s ease;
  transform: translateX(-50%);
  opacity: 0.6;
}

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

.nav-link:hover {
  color: var(--color-muted);
}

/* 首页全屏轮播图 */
.hero-slider {
  position: relative;
  width: 100%;
  height: 100vh; /* 全屏高度 */
  overflow: hidden;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.8s ease-in-out; /* 极慢的淡入淡出 */
  background-size: cover;
  background-position: center;
  z-index: 1;
}

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

/* 轮播图指示点 */
.slider-dots {
  position: absolute;
  bottom: 3rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 12px;
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.dot.active {
  background-color: rgba(255, 255, 255, 0.9);
}

/* 图片悬停微动效 */
.img-hover-zoom {
  overflow: hidden;
  display: block;
}

.img-hover-zoom img {
  transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.5s ease;
  will-change: transform;
}

.img-hover-zoom:hover img {
  transform: scale(1.03); /* 极轻微放大 */
  opacity: 0.95;
}

/* 模态框 (Lightbox) */
.modal {
  display: none;
  position: fixed;
  z-index: 100;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.98); /* 纯白背景遮罩 */
  backdrop-filter: blur(5px);
  opacity: 0;
  transition: opacity 0.4s ease;
  align-items: center;
  justify-content: center;
}

.modal.show {
  display: flex;
  opacity: 1;
}

.modal-content {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  box-shadow: 0 20px 50px rgba(0,0,0,0.05);
}

.modal-close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  font-size: 2.5rem;
  font-weight: 100;
  cursor: pointer;
  color: var(--color-text);
  transition: transform 0.3s ease;
  line-height: 1;
  background: transparent;
  border: none;
}

.modal-close:hover {
  transform: rotate(90deg);
}

/* 优雅入场动画 */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s cubic-bezier(0.215, 0.61, 0.355, 1) forwards;
}

.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }

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

/* 极简滚动条 */
::-webkit-scrollbar {
  width: 4px;
}

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

::-webkit-scrollbar-thumb {
  background: #D1D1D1;
  border-radius: 2px;
}

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

/* 工具类补充 */
.tracking-widest-custom {
  letter-spacing: 0.2em;
}

.text-justify-custom {
  text-align: justify;
  text-justify: inter-ideograph;
}