/* 
 * Fashion Dimension - Global Styles
 * Theme: Minimalist, Dark Mode, High Contrast
 */

/* 1. Reset & Base Typography */
:root {
  --bg-color: #0a0a0a;
  --text-primary: #f5f5f5;
  --text-secondary: #a3a3a3;
  --accent-color: #e5e5e5;
}

body {
  font-family: 'Helvetica Neue', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  line-height: 1.6;
}

/* 2. Custom Scrollbar (Webkit) */
::-webkit-scrollbar {
  width: 4px;
}

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

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

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

/* 3. Selection Style */
::selection {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

/* 4. Utility Classes */

/* 导航栏磨砂效果 */
.glass-nav {
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* 图片容器：用于裁剪和悬停缩放 */
.img-container {
  overflow: hidden;
  position: relative;
  background-color: #171717; /* 占位色 */
}

.img-hover-scale {
  transition: transform 1.5s cubic-bezier(0.19, 1, 0.22, 1);
  will-change: transform;
}

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

/* 文字排版辅助 */
.text-balance {
  text-wrap: balance;
}

.tracking-ultra {
  letter-spacing: 0.25em;
}

/* 按钮悬停下划线动画 */
.link-underline {
  position: relative;
  display: inline-block;
  text-decoration: none;
}

.link-underline::after {
  content: '';
  position: absolute;
  width: 0%;
  height: 1px;
  bottom: -2px;
  left: 0;
  background-color: currentColor;
  transition: width 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

/* 视频背景遮罩 */
.hero-overlay {
  background: linear-gradient(
    to bottom,
    rgba(10, 10, 10, 0.4) 0%,
    rgba(10, 10, 10, 0.1) 50%,
    rgba(10, 10, 10, 0.8) 100%
  );
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 10;
}

/* 5. Animation Helpers (配合GSAP使用) */
.gsap-fade-up {
  opacity: 0;
  transform: translateY(40px);
}

.gsap-fade-in {
  opacity: 0;
}

.gsap-reveal-mask {
  clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
  transition: clip-path 1.2s cubic-bezier(0.77, 0, 0.175, 1);
}

.gsap-reveal-mask.is-visible {
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}

/* 6. Dynamic Slots */
/* 预留槽位样式，确保动态插入内容不破坏布局 */
[data-slot] {
  display: contents;
}

/* Loading State Placeholder */
.skeleton {
  background: linear-gradient(90deg, #171717 25%, #262626 50%, #171717 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
}

@keyframes skeleton-loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Hide iframe scrollbars if embedded */
body.iframe-mode {
  overflow: hidden;
}