/* 长裤展示网站自定义样式 */
/* 补充Tailwind CSS未覆盖的样式 */

/* 图片悬停效果 */
.image-hover {
  transition: all 0.3s ease-in-out;
  transform-origin: center;
}

.image-hover:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* 遮罩效果 */
.image-overlay {
  position: relative;
  overflow: hidden;
}

.image-overlay::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.1);
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
  z-index: 1;
}

.image-overlay:hover::before {
  opacity: 1;
}

/* 导航菜单样式 */
.nav-link {
  position: relative;
  transition: color 0.3s ease-in-out;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: #333;
  transition: width 0.3s ease-in-out;
}

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

/* 页面切换动画 */
.page-transition {
  animation: fadeIn 0.5s ease-in-out;
}

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

/* 响应式图片容器 */
.responsive-image {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* 网格布局优化 */
.grid-gap {
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .grid-gap {
    gap: 2rem;
  }
}

/* 文字排版优化 */
.text-leading {
  line-height: 1.6;
}

.text-small {
  font-size: 0.875rem;
  color: #666;
}

/* 加载状态 */
.loading-spinner {
  border: 2px solid #f3f3f3;
  border-top: 2px solid #333;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* 滚动条美化 */
::-webkit-scrollbar {
  width: 6px;
}

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

::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 3px;
}

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

/* 移动端优化 */
@media (max-width: 768px) {
  .mobile-padding {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  .mobile-text-center {
    text-align: center;
  }
}

/* 无障碍访问优化 */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* 焦点样式 */
.focus-outline:focus {
  outline: 2px solid #333;
  outline-offset: 2px;
}

/* 打印样式 */
@media print {
  .no-print {
    display: none !important;
  }
  
  .print-break {
    page-break-before: always;
  }
}