/* 
 * 极简现代时尚网站全局样式 
 * 遵循三不原则：无价格、无品牌、无联系方式
 */

/* 字体定义 */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500&family=Noto+Sans+SC:wght@300;400;500&display=swap');

:root {
  --font-primary: 'Helvetica Neue', 'Montserrat', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  --font-serif: 'Times New Roman', serif; /* 仅用于特殊艺术字 */
  --color-bg: #ffffff;
  --color-text: #000000;
  --color-accent: #dcdcdc; /* 浅灰辅助色 */
  --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

body {
  font-family: var(--font-primary);
  background-color: var(--color-bg);
  color: var(--color-text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden; /* 防止横向溢出 */
}

/* 隐藏默认滚动条但保留功能 (Chrome/Safari/Webkit) */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: #e5e5e5;
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: #a3a3a3;
}

/* 自定义选区颜色 - 低调的高级灰 */
::selection {
  background: #f0f0f0;
  color: #000;
}

/* 图片基础样式 */
img {
  display: block;
  max-width: 100%;
  height: auto;
  object-fit: cover;
  transition: transform 0.6s var(--transition-smooth), filter 0.6s var(--transition-smooth);
}

/* 动效：图片悬停微放大 */
.img-hover-zoom {
  overflow: hidden;
}
.img-hover-zoom img:hover {
  transform: scale(1.03);
  filter: brightness(0.95);
}

/* 动效：淡入显示 */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

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

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

/* 视差效果容器 */
.parallax-container {
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  height: 60vh;
  position: relative;
}

/* 移动端优化：禁用固定背景视差，因为部分移动浏览器支持不佳 */
@media (max-width: 768px) {
  .parallax-container {
    background-attachment: scroll;
    height: 40vh;
  }
}

/* 瀑布流布局优化 */
.masonry-grid {
  column-count: 1;
  column-gap: 1.5rem;
}
@media (min-width: 640px) {
  .masonry-grid {
    column-count: 2;
  }
}
@media (min-width: 1024px) {
  .masonry-grid {
    column-count: 3;
  }
}

.masonry-item {
  break-inside: avoid;
  margin-bottom: 1.5rem;
  opacity: 0; /* JS控制加载显示 */
  animation: fadeIn 0.6s ease-out forwards;
}

/* 极简导航栏背景模糊 */
.backdrop-blur-md {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background-color: rgba(255, 255, 255, 0.85);
}

/* 隐藏输入框默认样式 */
input[type="text"], input[type="search"] {
  appearance: none;
  border: none;
  outline: none;
  background: transparent;
  border-bottom: 1px solid #e5e5e5;
  transition: border-color 0.3s;
}
input:focus {
  border-bottom-color: #000;
}

/* 汉堡菜单动画 */
.hamburger line {
  transition: transform 0.3s, opacity 0.3s;
  transform-origin: center;
}
.menu-open .line-top {
  transform: translateY(6px) rotate(45deg);
}
.menu-open .line-middle {
  opacity: 0;
}
.menu-open .line-bottom {
  transform: translateY(-6px) rotate(-45deg);
}

/* 无干扰链接样式 */
a.clean-link {
  text-decoration: none;
  color: inherit;
  position: relative;
}
a.clean-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 1px;
  bottom: -2px;
  left: 0;
  background-color: currentColor;
  transition: width 0.3s ease;
}
a.clean-link:hover::after {
  width: 100%;
}

/* 字体排版辅助 */
.tracking-wide-custom {
  letter-spacing: 0.1em;
}
.tracking-widest-custom {
  letter-spacing: 0.2em;
}

/* 加载骨架屏 */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #f8f8f8 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
}

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