/* 引入英文字体 Playfair Display 和 Lato */
@import url('https://fonts.googleapis.com/css2?family=Lato:wght@300;400;700&family=Playfair+Display:ital,wght@0,400;0,600;1,400&display=swap');

:root {
  /* 调色板 */
  --color-bg-primary: #FFFFFF;    /* 珍珠白 */
  --color-bg-secondary: #F8F9FA;  /* 浅灰 */
  --color-bg-accent: #F5F1E8;     /* 暖米色 */
  --color-text-main: #2C3E50;     /* 深炭灰 */
  --color-text-light: #596a7b;    /* 浅一点的灰色 */
  
  /* 字体系统 */
  --font-serif: 'Playfair Display', 'Source Han Serif SC', 'Noto Serif SC', 'Songti SC', serif;
  --font-sans: 'Lato', 'Source Han Sans SC', 'Noto Sans SC', 'Microsoft YaHei', sans-serif;
  
  /* 布局与间距 */
  --spacing-unit: 1rem;
  --header-height: 80px;
  --max-width: 1400px;
  
  /* 交互 */
  --transition-speed: 0.4s;
  --ease-curve: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* 全局重置与基础设置 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  color: var(--color-text-main);
  background-color: var(--color-bg-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

ul {
  list-style: none;
}

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

/* 排版工具类 */
.font-serif { font-family: var(--font-serif); }
.font-sans { font-family: var(--font-sans); }
.text-center { text-align: center; }
.text-uppercase { text-transform: uppercase; letter-spacing: 0.1em; }

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.2;
}

/* 导航栏 */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 5%;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.logo {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  letter-spacing: 0.15em;
  font-weight: 600;
}

.nav-links {
  display: flex;
  gap: 3rem;
}

.nav-link {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  position: relative;
  opacity: 0.7;
}

.nav-link:hover, .nav-link.active {
  opacity: 1;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--color-text-main);
  transition: width var(--transition-speed) var(--ease-curve);
}

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

/* 首页：全屏轮播 */
.hero-slider {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

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

.slide.active {
  opacity: 1;
  z-index: 2;
}

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

.hero-content {
  position: absolute;
  bottom: 15%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  text-align: center;
  width: 100%;
}

/* 圆形导航 */
.circle-nav-container {
  display: flex;
  justify-content: center;
  gap: 4rem;
  margin-top: 2rem;
}

.circle-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  group: hover;
}

.circle-icon {
  width: 60px;
  height: 60px;
  border: 1px solid rgba(255,255,255,0.6);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.5rem;
  transition: all var(--transition-speed) var(--ease-curve);
  background-color: rgba(255,255,255,0.1);
  color: white;
}

.circle-nav-item:hover .circle-icon {
  background-color: white;
  color: var(--color-text-main);
  transform: scale(1.1);
}

.circle-label {
  color: white;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

/* 中部精选单品 */
.featured-section {
  padding: 8rem 5%;
  background-color: var(--color-bg-primary);
}

.section-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 4rem;
  letter-spacing: 0.05em;
  color: var(--color-text-main);
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.product-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 2/3;
  cursor: pointer;
}

.product-image {
  width: 100%;
  height: 100%;
  transition: transform 0.6s var(--ease-curve);
}

.product-card:hover .product-image {
  transform: scale(1.05);
}

.product-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 2rem;
  background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
  color: white;
}

.product-card:hover .product-overlay {
  opacity: 1;
}

/* 系列页面 */
.category-nav-wrapper {
  margin-top: var(--header-height);
  padding: 4rem 0 2rem;
  background-color: var(--color-bg-primary);
  position: sticky;
  top: var(--header-height);
  z-index: 90;
}

.category-nav {
  display: flex;
  justify-content: center;
  gap: 3rem;
}

.category-btn {
  background: none;
  border: none;
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--color-text-light);
  cursor: pointer;
  padding-bottom: 0.5rem;
  transition: all 0.3s ease;
}

.category-btn.active, .category-btn:hover {
  color: var(--color-text-main);
  border-bottom: 2px solid var(--color-text-main);
}

.collection-content {
  min-height: 80vh;
  padding: 2rem 5% 6rem;
}

.collection-group {
  display: none;
  animation: fadeIn 0.8s var(--ease-curve);
  max-width: var(--max-width);
  margin: 0 auto;
}

.collection-group.active {
  display: block;
}

.look-item {
  margin-bottom: 8rem;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
  align-items: center;
}

.look-item:nth-child(even) {
  grid-template-columns: 0.8fr 1.2fr;
  direction: rtl; /* 左右交替 */
}
.look-item:nth-child(even) .look-details {
  direction: ltr; /* 恢复文字方向 */
}

.look-main-img img {
  width: 100%;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.look-details {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.look-detail-imgs {
  display: flex;
  gap: 1.5rem;
}

.look-detail-imgs img {
  width: 50%;
  aspect-ratio: 1/1;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.look-detail-imgs img:hover {
  transform: scale(1.02);
}

/* 美学页面 */
.aesthetics-layout {
  display: grid;
  grid-template-columns: 250px 1fr;
  min-height: 100vh;
  padding-top: var(--header-height);
}

.sidebar {
  position: fixed;
  top: var(--header-height);
  left: 0;
  width: 250px;
  height: calc(100vh - var(--header-height));
  background-color: var(--color-bg-secondary);
  padding: 4rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-right: 1px solid rgba(0,0,0,0.03);
}

.anchor-link {
  display: block;
  margin-bottom: 2rem;
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--color-text-light);
  opacity: 0.6;
  transition: all 0.3s ease;
}

.anchor-link:hover, .anchor-link.active {
  opacity: 1;
  padding-left: 10px;
  color: var(--color-text-main);
  border-left: 2px solid var(--color-text-main);
}

.aesthetics-content {
  grid-column: 2;
  background-color: var(--color-bg-primary);
  padding: 4rem 8%;
}

.aesthetic-section {
  margin-bottom: 10rem;
  scroll-margin-top: 150px;
}

.aesthetic-text {
  max-width: 600px;
  margin-bottom: 3rem;
}

.aesthetic-text h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.aesthetic-text p {
  font-size: 1.1rem;
  color: var(--color-text-light);
  line-height: 1.8;
}

.aesthetic-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.aesthetic-gallery img {
  width: 100%;
  height: 100%;
  min-height: 400px;
  object-fit: cover;
}

.manifesto {
  padding: 6rem 0;
  text-align: center;
  background-color: var(--color-bg-accent);
  margin-top: 4rem;
}

.manifesto p {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-style: italic;
  color: var(--color-text-main);
}

/* 页脚 */
.footer {
  padding: 2rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--color-text-light);
  background-color: var(--color-bg-primary);
  border-top: 1px solid rgba(0,0,0,0.05);
}

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

/* 响应式设计 */
@media (max-width: 1024px) {
  .featured-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .look-item, .look-item:nth-child(even) {
    grid-template-columns: 1fr;
    direction: ltr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .nav-links {
    gap: 1.5rem;
  }
  
  .featured-grid {
    grid-template-columns: 1fr;
  }
  
  .aesthetics-layout {
    display: block;
  }
  
  .sidebar {
    position: relative;
    width: 100%;
    height: auto;
    flex-direction: row;
    padding: 1rem;
    overflow-x: auto;
    top: 0;
    gap: 1.5rem;
    border-bottom: 1px solid rgba(0,0,0,0.05);
  }
  
  .anchor-link {
    margin-bottom: 0;
    white-space: nowrap;
  }

  .aesthetic-gallery {
    grid-template-columns: 1fr;
  }

  .circle-nav-container {
      gap: 2rem;
  }
}