/* 
 * 现代风尚男士服饰展示平台 - 全局样式
 * 遵循极简主义设计原则
 */

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

/* CSS 变量定义：色彩系统 */
:root {
  --color-primary: #2C2C2C;      /* 高级灰 */
  --color-secondary: #FFFFFF;    /* 纯白 */
  --color-tertiary: #F8F9FA;     /* 浅灰 */
  --color-accent-gold: #C6A776;  /* 暗金 */
  --color-accent-blue: #1A3A5F;  /* 深蓝 */
  --font-main: 'Helvetica Neue', 'Helvetica', 'Arial', 'Noto Sans SC', sans-serif;
}

/* 基础重置与排版 */
html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-main);
  color: var(--color-primary);
  background-color: var(--color-secondary);
  overflow-x: hidden; /* 防止水平溢出 */
  line-height: 1.6;
}

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

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

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

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

/* 隐藏滚动条实用类 (用于横向滑动区) */
.scrollbar-hide::-webkit-scrollbar {
    display: none;
}
.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* 动效关键帧 */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

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

/* 动画工具类 */
.animate-fade-in {
  animation: fadeIn 1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.animate-fade-in-up {
  animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.animate-slide-in-right {
  animation: slideInRight 0.8s ease-out forwards;
}

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

/* 交互微动画 */
.hover-zoom-img {
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.group:hover .hover-zoom-img {
  transform: scale(1.03);
}

/* 导航链接下划线动效 */
.nav-link-hover {
  position: relative;
}

.nav-link-hover::after {
  content: '';
  position: absolute;
  width: 0;
  height: 1px;
  bottom: -4px;
  left: 0;
  background-color: currentColor;
  transition: width 0.3s ease-out;
}

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

/* 按钮渐变填充效果 */
.btn-hover-fill {
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-hover-fill::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0%;
  height: 100%;
  background-color: var(--color-primary);
  transition: width 0.3s ease;
  z-index: -1;
}

.btn-hover-fill:hover::before {
  width: 100%;
}

.btn-hover-fill:hover {
  color: #fff;
}

/* 图片懒加载模糊过渡 */
.blur-load {
  filter: blur(20px);
  transition: filter 0.5s ease-out;
  background-size: cover;
  background-position: center;
}

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

/* 文字排版辅助 */
.text-justify-inter {
  text-align: justify;
  text-justify: inter-word;
}

.font-spacing-wide {
  letter-spacing: 0.1em;
}

/* 自定义辅助色类 (补充 Tailwind) */
.text-gold { color: var(--color-accent-gold); }
.bg-gold { background-color: var(--color-accent-gold); }
.border-gold { border-color: var(--color-accent-gold); }

.text-navy { color: var(--color-accent-blue); }
.bg-navy { background-color: var(--color-accent-blue); }

/* 响应式调整 */
@media (max-width: 768px) {
  .section-padding {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }
}