/* 
 * 全局样式系统 
 * 遵循极简主义设计理念
 * 配色方案：高级灰/纯白/深炭黑 + 柔和强调色
 */

:root {
  /* 2.1 色彩系统 */
  --color-bg: #F8F9FA;
  --color-surface: #FFFFFF;
  --color-text-main: #212529; /* 标题色 */
  --color-text-body: #495057; /* 正文色 */
  
  /* 强调色 */
  --color-accent-clay: #E6B8A2;
  --color-accent-sand: #D4C5B8;
  --color-accent-mist: #B0C4DE;
  
  /* 2.2 字体规范 */
  --font-heading: "Inter", "SF Pro Display", "Source Han Sans CN", "Alibaba PuHuiTi", sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  
  /* 布局参数 */
  --header-height: 80px;
  --page-max-width: 1440px;
  --transition-speed: 0.3s;
}

/* 覆盖 Water.css 默认限制，实现全屏布局 */
body {
  max-width: none !important;
  padding: 0 !important;
  margin: 0 !important;
  background-color: var(--color-bg);
  color: var(--color-text-body);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
}

/* 字体排版 */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-text-main);
  font-weight: 500;
  margin-top: 0;
  letter-spacing: -0.02em;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-speed);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* 3.1 导航栏设计 */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background: rgba(248, 249, 250, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  transition: all var(--transition-speed);
}

.nav-container {
  width: 90%;
  max-width: var(--page-max-width);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand-logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--color-text-main);
}

.nav-links {
  display: flex;
  gap: 3rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-item a {
  position: relative;
  font-size: 0.95rem;
  font-weight: 500;
  padding-bottom: 4px;
}

/* 交互效果：下划线动画 */
.nav-item a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 1px;
  bottom: 0;
  left: 0;
  background-color: var(--color-text-main);
  transition: width 0.3s ease;
}

.nav-item a:hover::after,
.nav-item a.active::after {
  width: 100%;
}

/* 移动端汉堡菜单 */
.menu-toggle {
  display: none;
  cursor: pointer;
  font-size: 1.5rem;
}

/* 通用容器 */
.container {
  width: 90%;
  max-width: var(--page-max-width);
  margin: 0 auto;
  padding: 4rem 0;
}

/* 5.1 页面过渡动画 */
.fade-in-section {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
  will-change: opacity, visibility;
}

.fade-in-section.is-visible {
  opacity: 1;
  transform: none;
}

/* 5.2 图片交互规范 */
.img-hover-zoom {
  overflow: hidden;
  position: relative;
}

.img-hover-zoom img {
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  width: 100%;
  height: 100%;
}

.img-hover-zoom:hover img {
  transform: scale(1.03);
}

/* 3.2 首页设计 */
.hero-section {
  height: 100vh;
  width: 100%;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0; /* 抵消header高度由absolute解决或特定处理 */
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  background-size: cover;
  background-position: center;
}

.hero-slide.active {
  opacity: 1;
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero-content h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  color: #fff;
  font-weight: 300;
}

/* 3.3 设计系列 - 瀑布流 */
.masonry-grid {
  column-count: 3;
  column-gap: 2rem;
}

.masonry-item {
  break-inside: avoid;
  margin-bottom: 2rem;
  position: relative;
}

.masonry-item figcaption {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: var(--color-text-secondary);
}

/* 3.4 面料故事 - 交替布局 */
.story-section {
  display: flex;
  align-items: center;
  gap: 4rem;
  margin-bottom: 6rem;
}

.story-section:nth-child(even) {
  flex-direction: row-reverse;
}

.story-text {
  flex: 1;
  padding: 2rem;
}

.story-image {
  flex: 1.2;
}

/* 3.5 搭配艺术 - 网格 */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.lookbook-card {
  background: var(--color-surface);
  padding: 1rem;
  box-shadow: 0 4px 6px rgba(0,0,0,0.02);
  transition: box-shadow 0.3s ease;
}

.lookbook-card:hover {
  box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

/* 3.6 设计哲学 - 杂志排版 */
.philosophy-quote {
  font-size: 1.8rem;
  font-family: "Georgia", serif;
  font-style: italic;
  text-align: center;
  color: var(--color-text-main);
  margin: 4rem 0;
  line-height: 1.4;
}

/* 3.7 页脚 */
.site-footer {
  text-align: center;
  padding: 2rem 0;
  border-top: 1px solid rgba(0,0,0,0.05);
  font-size: 0.8rem;
  color: #999;
  margin-top: 4rem;
}

/* 6. 响应式设计 */
@media (max-width: 1024px) {
  .masonry-grid { column-count: 2; }
}

@media (max-width: 768px) {
  .menu-toggle { display: block; }
  
  .nav-links {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    background: var(--color-surface);
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
    z-index: 999;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    opacity: 0;
    pointer-events: none;
  }
  
  .nav-links.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }
  
  .hero-content h1 { font-size: 2.5rem; }
  
  .story-section, 
  .story-section:nth-child(even) {
    flex-direction: column;
    gap: 2rem;
  }
  
  .masonry-grid { column-count: 1; }
}

/* 辅助类 */
.pt-header { padding-top: var(--header-height); }
.text-center { text-align: center; }
.mb-large { margin-bottom: 4rem; }
.mt-large { margin-top: 4rem; }
.text-accent { color: var(--color-accent-clay); }