/* 引入现代无衬线字体：思源黑体 */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@300;400;500;700&display=swap');

/* 基础重置与全局字体设置 */
:root {
  --primary-black: #111111;
  --secondary-gray: #666666;
  --bg-white: #ffffff;
}

html {
  scroll-behavior: smooth;
  height: 100%;
}

body {
  font-family: 'Noto Sans SC', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: var(--bg-white);
  color: var(--primary-black);
  overflow-x: hidden;
}

/* 核心动画：优雅的上浮淡入 */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-on-scroll {
  opacity: 0; /* 默认隐藏，由JS触发动画类 */
  animation-fill-mode: forwards;
}

.fade-in-up {
  animation: fadeInUp 1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* 动画延迟阶梯 */
.delay-100 { animation-delay: 100ms; }
.delay-200 { animation-delay: 200ms; }
.delay-300 { animation-delay: 300ms; }
.delay-500 { animation-delay: 500ms; }

/* 视觉组件：图片容器与悬停微交互 */
.img-overflow-hidden {
  overflow: hidden;
  position: relative;
}

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

.group:hover .hover-scale-image {
  transform: scale(1.03); /* 极简微放大，不宜过大 */
}

/* 导航栏：磨砂玻璃质感 */
.glass-effect {
  background-color: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

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

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

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

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

/* 排版辅助 */
.text-balance {
  text-wrap: balance; /* 优化标题换行 */
}

/* 动态内容槽位预留 (不显示，仅作结构占位) */
[data-slot="dynamic"] {
  display: contents;
}

/* 严格遵守“三不”原则的视觉提示（开发阶段注释，上线可移除或保留作为结构约束） */
/* 禁止区域不应用任何显眼的商业样式 */
.non-commercial-zone {
  user-select: none;
}