/* 
 * 全局样式定义 - 现代时尚展示
 * 基于 Water.css 进行极简扩展
 */

:root {
  --font-family: 'Noto Sans SC', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --bg-color: #ffffff;
  --text-color: #333333;
  --text-light: #666666;
  --accent-color: #000000;
  --spacing-unit: 2rem;
  --max-width: 1200px;
}

body {
  font-family: var(--font-family);
  color: var(--text-color);
  background-color: var(--bg-color);
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1rem;
  line-height: 1.6;
}

/* 导航栏 */
nav {
  text-align: center;
  padding: 2rem 0;
  border-bottom: 1px solid #eee;
  margin-bottom: 3rem;
}

nav ul {
  display: flex;
  justify-content: center;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 2rem;
  flex-wrap: wrap;
}

nav li {
  margin: 0;
}

nav a {
  text-decoration: none;
  color: var(--text-light);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

nav a:hover, nav a.active {
  color: var(--accent-color);
  background: transparent;
}

/* 标题排版 */
h1, h2, h3 {
  font-weight: 400;
  letter-spacing: 0.5px;
  color: var(--accent-color);
}

h1 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

h2 {
  font-size: 1.8rem;
  margin-top: 3rem;
  margin-bottom: 1.5rem;
  text-align: center;
  border-bottom: none;
}

/* Hero 主视觉区域 */
.hero {
  width: 100%;
  height: 60vh;
  overflow: hidden;
  position: relative;
  margin-bottom: 4rem;
  background-color: #f4f4f4;
}

.hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-content {
  position: absolute;
  bottom: 10%;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  color: white;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
  width: 90%;
}

/* 网格布局系统 */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.grid-item {
  position: relative;
  overflow: hidden;
  background: #fafafa;
}

.grid-item img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

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

/* 图片描述覆盖层 */
.caption {
  padding: 1rem 0;
  text-align: center;
}

.caption h3 {
  font-size: 1.1rem;
  margin: 0.5rem 0;
  text-transform: uppercase;
}

.caption p {
  font-size: 0.9rem;
  color: var(--text-light);
  margin: 0;
}

/* 图库页面的特殊网格 */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1rem;
}

.gallery-item {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.3s;
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.4);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  padding: 1rem;
  text-align: center;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

/* 设计理念文章排版 */
.concept-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: justify;
}

.concept-details {
  display: flex;
  gap: 2rem;
  margin-top: 3rem;
}

.concept-details img {
  flex: 1;
  height: 300px;
  object-fit: cover;
}

/* 筛选标签 */
.filters {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.filter-btn {
  background: none;
  border: 1px solid #ddd;
  padding: 0.5rem 1.5rem;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.3s;
  color: var(--text-light);
}

.filter-btn:hover, .filter-btn.active {
  background: var(--text-color);
  color: white;
  border-color: var(--text-color);
}

/* 页脚 */
footer {
  text-align: center;
  padding: 3rem 0;
  margin-top: 4rem;
  border-top: 1px solid #eee;
  color: #999;
  font-size: 0.9rem;
}

/* 响应式调整 */
@media (max-width: 768px) {
  nav ul {
    gap: 1rem;
  }
  
  .hero {
    height: 40vh;
  }
  
  .concept-details {
    flex-direction: column;
  }
  
  h1 {
    font-size: 2rem;
  }
}

/* 动态槽位占位符，默认隐藏，有内容时显示 */
[data-slot]:empty {
  display: none;
}