/* 全局样式 - 男士风尚指南 */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@300;400;500;700&display=swap');

:root {
  --primary-color: #1a1a1a;
  --secondary-color: #4a4a4a;
  --accent-color: #8b7355;
  --text-light: #666666;
  --bg-light: #f8f8f8;
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  box-sizing: border-box;
}

body {
  font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.6;
  color: var(--primary-color);
  background-color: #ffffff;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

/* 平滑滚动 */
html {
  scroll-behavior: smooth;
}

/* 页面切换动画 */
.page-transition {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.page-transition.active {
  opacity: 1;
  transform: translateY(0);
}

/* 导航栏固定 */
.navbar-fixed {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
  background-color: rgba(255, 255, 255, 0.95);
  transition: var(--transition-smooth);
}

/* 主视觉区域覆盖文字效果 */
.hero-overlay {
  background: linear-gradient(135deg, rgba(26, 26, 26, 0.7) 0%, rgba(26, 26, 26, 0.3) 100%);
}

/* 按钮悬停效果 */
.btn-hover {
  position: relative;
  overflow: hidden;
  transition: var(--transition-smooth);
}

.btn-hover::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.btn-hover:hover::before {
  left: 100%;
}

/* 图片悬停效果 */
.img-hover {
  transition: transform 0.5s ease, filter 0.5s ease;
}

.img-hover:hover {
  transform: scale(1.03);
  filter: brightness(1.05);
}

/* 卡片阴影效果 */
.card-shadow {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.3s ease;
}

.card-shadow:hover {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* 瀑布流布局 */
.masonry {
  column-count: 3;
  column-gap: 1rem;
}

@media (max-width: 768px) {
  .masonry {
    column-count: 2;
  }
}

@media (max-width: 480px) {
  .masonry {
    column-count: 1;
  }
}

.masonry-item {
  break-inside: avoid;
  margin-bottom: 1rem;
}

/* 淡入动画 */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.8s ease-out forwards;
}

/* 延迟动画 */
.fade-in-delay-1 {
  animation-delay: 0.2s;
}

.fade-in-delay-2 {
  animation-delay: 0.4s;
}

.fade-in-delay-3 {
  animation-delay: 0.6s;
}

/* 响应式字体 */
.text-responsive {
  font-size: clamp(1rem, 2vw, 1.25rem);
}

.text-responsive-lg {
  font-size: clamp(1.5rem, 4vw, 3rem);
}

/* 加载动画 */
@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.loading {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

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

::-webkit-scrollbar-track {
  background: var(--bg-light);
}

::-webkit-scrollbar-thumb {
  background: var(--secondary-color);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-color);
}

/* 页脚样式 */
.footer-custom {
  background-color: var(--primary-color);
  color: #ffffff;
  text-align: center;
  padding: 2rem 0;
  margin-top: 4rem;
}

/* 导航链接激活状态 */
.nav-link-active {
  color: var(--accent-color);
  border-bottom: 2px solid var(--accent-color);
}

/* 图片占位符样式 */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* 文字选择样式 */
::selection {
  background-color: var(--accent-color);
  color: white;
}

/* 焦点样式 */
:focus-visible {
  outline: 2px solid var(--accent-color);
  outline-offset: 2px;
}