/* 全局样式文件 */
@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@300;400;500;600;700&family=Noto+Sans+SC:wght@300;400;500;600&display=swap');

/* CSS变量定义 */
:root {
  --color-sand-white: #F5F3EE;
  --color-ash-gray: #E8E4DF;
  --color-cashmere-camel: #C9B8A3;
  --color-terracotta-pink: #D4A59A;
  --color-sage-green: #A3B5A5;
  --color-deep-indigo: #3D4D5C;
  --color-text-primary: #2C2C2C;
  --color-text-secondary: #6B6B6B;
  --font-serif: 'Noto Serif SC', serif;
  --font-sans: 'Noto Sans SC', sans-serif;
  --transition-smooth: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.3s ease;
}

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

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

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

img {
  max-width: 100%;
  height: auto;
  display: block;
  user-select: none;
  pointer-events: none;
  -webkit-user-drag: none;
}

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

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

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

.navbar.scrolled {
  padding: 1rem 5%;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}

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

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

.nav-links a {
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 50%;
  width: 0;
  height: 1px;
  background: var(--color-text-primary);
  transition: var(--transition-fast);
  transform: translateX(-50%);
}

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

/* 汉堡菜单 */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.hamburger span {
  width: 25px;
  height: 2px;
  background: var(--color-text-primary);
  transition: var(--transition-fast);
}

/* 页面容器 */
.page-container {
  padding-top: 80px;
  min-height: 100vh;
  opacity: 0;
  animation: fadeIn 0.8s ease forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

/* 首页主视觉 */
.hero-section {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.9);
}

.hero-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: #FFFFFF;
  z-index: 10;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: 4rem;
  font-weight: 300;
  letter-spacing: 0.3em;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.3);
}

.hero-slogan {
  font-size: 1.3rem;
  font-weight: 300;
  letter-spacing: 0.2em;
  opacity: 0.95;
}

/* 导语段落 */
.intro-section {
  max-width: 800px;
  margin: 8rem auto;
  padding: 0 5%;
  text-align: center;
}

.intro-title {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 400;
  margin-bottom: 2rem;
  letter-spacing: 0.1em;
}

.intro-text {
  font-size: 1.1rem;
  line-height: 2.2;
  color: var(--color-text-secondary);
  letter-spacing: 0.05em;
}

/* 每日精选模块 */
.daily-picks {
  padding: 6rem 5%;
  background: var(--color-sand-white);
}

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

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

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

.pick-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

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

.pick-name {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
  padding: 2rem 1.5rem 1.5rem;
  color: #FFFFFF;
  font-size: 1.1rem;
  letter-spacing: 0.1em;
  transform: translateY(100%);
  transition: var(--transition-smooth);
}

.pick-item:hover .pick-name {
  transform: translateY(0);
}

/* 系列画廊 */
.collection-intro {
  max-width: 900px;
  margin: 4rem auto;
  padding: 0 5%;
  text-align: center;
}

.collection-title {
  font-family: var(--font-serif);
  font-size: 2.8rem;
  margin-bottom: 2rem;
  letter-spacing: 0.1em;
}

.collection-description {
  font-size: 1.1rem;
  line-height: 2;
  color: var(--color-text-secondary);
  letter-spacing: 0.05em;
}

.gallery {
  padding: 4rem 5%;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  max-width: 1600px;
  margin: 0 auto;
}

.gallery-item {
  position: relative;
  overflow: hidden;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.gallery-item:hover img {
  transform: scale(1.02);
}

.gallery-caption {
  padding: 1.5rem 0;
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  letter-spacing: 0.08em;
  line-height: 1.8;
}

/* 美学模块 */
.aesthetic-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  max-width: 1400px;
  margin: 6rem auto;
  padding: 0 5%;
  align-items: center;
}

.aesthetic-block:nth-child(even) {
  direction: rtl;
}

.aesthetic-block:nth-child(even) > * {
  direction: ltr;
}

.aesthetic-image {
  width: 100%;
  height: 500px;
  overflow: hidden;
}

.aesthetic-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.aesthetic-content h3 {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  letter-spacing: 0.1em;
}

.aesthetic-content p {
  font-size: 1.05rem;
  line-height: 2;
  color: var(--color-text-secondary);
  letter-spacing: 0.05em;
}

/* 页脚 */
.footer {
  padding: 3rem 5%;
  text-align: center;
  color: var(--color-text-secondary);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

/* 图片懒加载效果 */
.lazy-image {
  opacity: 0;
  transition: opacity 0.8s ease;
}

.lazy-image.loaded {
  opacity: 1;
}

.lazy-image::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--color-ash-gray);
}

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

@media (max-width: 768px) {
  .navbar {
    padding: 1rem 5%;
  }
  
  .nav-links {
    position: fixed;
    top: 70px;
    right: -100%;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.98);
    width: 70%;
    height: calc(100vh - 70px);
    padding: 3rem 2rem;
    gap: 2rem;
    transition: var(--transition-fast);
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
  }
  
  .nav-links.active {
    right: 0;
  }
  
  .hamburger {
    display: flex;
  }
  
  .hero-title {
    font-size: 2.5rem;
    letter-spacing: 0.2em;
  }
  
  .hero-slogan {
    font-size: 1rem;
  }
  
  .intro-section {
    margin: 4rem auto;
  }
  
  .intro-title {
    font-size: 2rem;
  }
  
  .intro-text {
    font-size: 1rem;
  }
  
  .picks-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .collection-title {
    font-size: 2rem;
  }
  
  .aesthetic-image {
    height: 350px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.8rem;
    letter-spacing: 0.15em;
  }
  
  .hero-slogan {
    font-size: 0.9rem;
  }
  
  .intro-title {
    font-size: 1.6rem;
  }
  
  .section-title {
    font-size: 1.5rem;
  }
  
  .collection-title {
    font-size: 1.6rem;
  }
}

/* 页面切换动画 */
.page-transition-enter {
  opacity: 0;
  transform: translateY(20px);
}

.page-transition-enter-active {
  opacity: 1;
  transform: translateY(0);
  transition: var(--transition-smooth);
}

.page-transition-exit {
  opacity: 1;
}

.page-transition-exit-active {
  opacity: 0;
  transition: opacity 0.4s ease;
}

/* 禁用右键和拖拽 */
img {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}