/* fashion-showcase-060115/frontend/public/styles.css */
/* 变量定义：莫兰迪色系与基础排版 */
:root {
  --color-bg: #FAFAF9; /* 浅燕麦色背景 */
  --color-text-primary: #333333; /* 墨灰主色 */
  --color-text-secondary: #666666; /* 次要文字 */
  --color-accent: #E5E0D8; /* 莫兰迪米色占位 */
  --color-border: #EFEFEF;
  --font-zh: "PingFang SC", "Source Han Sans CN", "Microsoft YaHei", sans-serif;
  --font-en: "Helvetica Neue", "Helvetica", "Arial", sans-serif;
  --header-height: 80px;
  --transition-smooth: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* 基础重置 */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-en), var(--font-zh);
  background-color: var(--color-bg);
  color: var(--color-text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  text-decoration: none;
  color: inherit;
  transition: opacity 0.3s;
}

ul {
  list-style: none;
}

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

/* 布局容器 */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* 导航栏 */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background-color: rgba(250, 250, 249, 0.95);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}

header.scrolled {
  border-bottom: 1px solid var(--color-border);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
}

.logo {
  font-size: 22px;
  font-weight: 400;
  letter-spacing: 2px;
  color: var(--color-text-primary);
}

.nav-links {
  display: flex;
  gap: 40px;
}

.nav-links li a {
  font-size: 14px;
  letter-spacing: 1px;
  color: var(--color-text-secondary);
  padding-bottom: 4px;
  position: relative;
}

.nav-links li a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background-color: var(--color-text-primary);
  transition: width 0.3s var(--transition-smooth);
}

.nav-links li a:hover,
.nav-links li a.active {
  color: var(--color-text-primary);
}

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

/* 页面主体 */
main {
  padding-top: var(--header-height);
  min-height: calc(100vh - 80px);
}

/* 占位符：动态槽位 */
#content-slot {
  display: contents;
}

/* 主视觉区 (Hero) */
.hero {
  position: relative;
  height: 90vh;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--color-accent);
}

.hero-slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}

.slide.active {
  opacity: 1;
}

.slide img {
  width: 100%;
  height: 100%;
}

.hero-overlay {
  position: absolute;
  z-index: 2;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.05);
}

.hero-title {
  position: relative;
  z-index: 10;
  color: #fff;
  font-size: 42px;
  font-weight: 300;
  letter-spacing: 8px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.15);
  animation: fadeInUp 1.2s ease-out;
}

/* 通用组件 */
.section-title {
  text-align: center;
  font-size: 24px;
  font-weight: 300;
  letter-spacing: 6px;
  margin: 100px 0 60px;
  color: var(--color-text-primary);
}

.image-wrapper {
  overflow: hidden;
  background-color: var(--color-accent);
  position: relative;
}

.image-wrapper img {
  transition: transform 0.8s var(--transition-smooth);
}

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

.card-text {
  margin-top: 16px;
  font-size: 14px;
  color: var(--color-text-secondary);
  letter-spacing: 1px;
  font-weight: 300;
  text-align: center;
}

/* 首页：精选搭配 */
.grid-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 80px;
}

.grid-item .image-wrapper {
  aspect-ratio: 1/1; /* 方形图片 */
}

.transition-text {
  text-align: center;
  font-size: 16px;
  color: #888;
  letter-spacing: 2px;
  margin: 80px 0;
  font-style: italic;
  opacity: 0.8;
}

/* 风格专题：横向滚动 */
.style-module {
  margin-bottom: 120px;
}

.module-info {
  margin-bottom: 30px;
  padding-left: 20px;
  border-left: 2px solid #D8D0C5;
}

.module-title {
  font-size: 20px;
  letter-spacing: 3px;
  margin-bottom: 8px;
  font-weight: 400;
}

.module-desc {
  font-size: 14px;
  color: #777;
}

.scroll-container {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  padding-bottom: 10px;
  scrollbar-width: none;
}

.scroll-container::-webkit-scrollbar {
  display: none;
}

.scroll-item {
  flex: 0 0 350px;
}

.scroll-item .image-wrapper {
  aspect-ratio: 3/4;
}

/* 单品鉴赏：瀑布流 */
.masonry-grid {
  column-count: 3;
  column-gap: 30px;
  margin-bottom: 80px;
}

.masonry-item {
  break-inside: avoid;
  margin-bottom: 30px;
}

.masonry-item .image-wrapper {
  margin-bottom: 12px;
}

.end-quote {
  text-align: center;
  margin: 60px 0 100px;
  font-size: 15px;
  color: var(--color-text-secondary);
  letter-spacing: 3px;
}

/* 页脚 */
footer {
  padding: 40px 0;
  text-align: center;
  border-top: 1px solid #F0F0F0;
}

footer p {
  font-size: 12px;
  color: #999;
  letter-spacing: 1px;
}

/* 动画 */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 响应式适配 */
@media (max-width: 1024px) {
  .grid-container { grid-template-columns: repeat(2, 1fr); }
  .masonry-grid { column-count: 2; }
  .hero-title { font-size: 32px; }
}

@media (max-width: 768px) {
  nav { padding: 0 20px; }
  .nav-links { gap: 20px; }
  .nav-links li a { font-size: 13px; }
  
  .grid-container { grid-template-columns: 1fr; gap: 40px; }
  
  .scroll-item { flex: 0 0 80vw; }
  
  .masonry-grid { column-count: 1; }
  
  .hero-title { font-size: 26px; letter-spacing: 4px; }
  
  .section-title { margin: 60px 0 40px; font-size: 20px; }
}