/* 全局样式文件 - modern-mens-fashion-gallery-010228/frontend/public/css/style.css */

/* 导入Tailwind CSS基础样式 */
@tailwind base;
@tailwind components;
@tailwind utilities;

/* 全局变量定义 */
:root {
  --primary-color: #1a1a1a;
  --secondary-color: #f5f5f5;
  --accent-color: #5a5a5a;
  --font-primary: 'Helvetica Neue', Arial, sans-serif;
}

/* 重置默认样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* 全局字体和基础样式 */
body {
  font-family: var(--font-primary);
  color: var(--primary-color);
  background-color: white;
  line-height: 1.6;
}

/* 导航栏样式 */
.navbar {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.nav-link {
  @apply transition-all duration-300 ease-in-out;
}

.nav-link:hover {
  color: #333;
  transform: translateY(-2px);
}

/* 页脚样式 */
.footer {
  background-color: #f8f8f8;
  color: #5a5a5a;
  font-weight: 300;
  font-size: 0.9rem;
}

/* 卡片样式 */
.card {
  @apply transition-all duration-500 ease-in-out;
}

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

/* 图片区样式 */
.image-container {
  @apply overflow-hidden relative;
}

.image-container img {
  @apply transition-transform duration-700 ease-in-out;
}

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

/* 轮播图样式 */
.carousel-item {
  transition: opacity 0.5s ease-in-out;
}

/* 按钮样式 */
.btn {
  @apply px-6 py-3 rounded-full font-medium transition-all duration-300 ease-in-out;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* 标题样式 */
.section-title {
  @apply text-3xl md:text-4xl font-light mb-8 relative inline-block;
}

.section-title::after {
  content: '';
  @apply absolute bottom-0 left-0 w-1/3 h-0.5 bg-gray-300;
}

/* 响应式布局 */
@media (max-width: 768px) {
  .section-title {
    @apply text-2xl;
  }
  
  .mobile-padding {
    @apply px-4;
  }
}

/* 动画效果 */
.fade-in {
  animation: fadeIn 0.8s ease-in-out;
}

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

/* 滚动条样式 */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 4px;
}

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