/* 全局CSS变量定义 */
:root {
  --color-bg-primary: #F8F9FA;
  --color-bg-white: #FFFFFF;
  --color-text-primary: #2C3E50;
  --color-accent: #D4AF37;
  --color-text-light: #888888;
  --font-primary: 'Helvetica Neue', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-soft: 0 8px 24px rgba(0, 0, 0, 0.08);
}

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

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

body {
  font-family: var(--font-primary);
  background-color: var(--color-bg-primary);
  color: var(--color-text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

/* 导航栏样式 */
.nav-container {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(248, 249, 250, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(44, 62, 80, 0.08);
}

nav {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-text-primary);
  text-decoration: none;
  letter-spacing: 0.05em;
}

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

.nav-links a {
  color: var(--color-text-primary);
  text-decoration: none;
  font-size: 0.95rem;
  transition: var(--transition-smooth);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transition: width 0.3s ease;
}

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

/* 主容器 */
main {
  margin-top: 80px;
  min-height: calc(100vh - 160px);
}

/* 全屏轮播区域 */
.hero-slider {
  position: relative;
  width: 100%;
  height: 90vh;
  overflow: hidden;
  background: var(--color-bg-white);
}

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

.slide.active {
  opacity: 1;
}

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

.slide-caption {
  position: absolute;
  bottom: 10%;
  left: 50%;
  transform: translateX(-50%);
  color: var(--color-bg-white);
  font-size: 2rem;
  font-weight: 300;
  letter-spacing: 0.1em;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  text-align: center;
}

.slider-controls {
  position: absolute;
  bottom: 5%;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 1rem;
}

.slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  border: none;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.slider-dot.active {
  background: var(--color-bg-white);
  transform: scale(1.3);
}

/* 精选系列展示区 */
.featured-section {
  max-width: 1400px;
  margin: 6rem auto;
  padding: 0 2rem;
}

.section-title {
  font-size: 2rem;
  font-weight: 300;
  text-align: center;
  margin-bottom: 4rem;
  letter-spacing: 0.08em;
}

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

.featured-item {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  cursor: pointer;
  border-radius: 2px;
}

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

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

.featured-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition-smooth);
}

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

.featured-title {
  color: var(--color-bg-white);
  font-size: 1.5rem;
  font-weight: 300;
  letter-spacing: 0.08em;
}

/* 设计理念区 */
.philosophy-section {
  max-width: 900px;
  margin: 8rem auto;
  padding: 4rem 2rem;
  text-align: center;
  background: var(--color-bg-white);
  border-radius: 2px;
}

.philosophy-title {
  font-size: 2.5rem;
  font-weight: 300;
  margin-bottom: 2rem;
  letter-spacing: 0.08em;
}

.philosophy-text {
  font-size: 1.1rem;
  line-height: 2;
  color: rgba(44, 62, 80, 0.8);
  font-weight: 300;
}

/* 网格展示区（系列页） */
.gallery-grid {
  max-width: 1400px;
  margin: 4rem auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.gallery-item {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  cursor: pointer;
  background: var(--color-bg-white);
  border-radius: 2px;
}

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

.gallery-item:hover img {
  transform: scale(1.03);
  box-shadow: var(--shadow-soft);
}

.gallery-tag {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  background: rgba(255, 255, 255, 0.95);
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  border-radius: 2px;
}

/* 色彩主题区 */
.color-themes {
  margin: 6rem auto;
  padding: 0 2rem;
}

.theme-scroll {
  display: flex;
  gap: 2rem;
  overflow-x: auto;
  padding: 2rem 0;
  scroll-snap-type: x mandatory;
}

.theme-scroll::-webkit-scrollbar {
  height: 6px;
}

.theme-scroll::-webkit-scrollbar-thumb {
  background: var(--color-accent);
  border-radius: 3px;
}

.theme-item {
  flex-shrink: 0;
  width: 320px;
  scroll-snap-align: start;
}

.theme-name {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  font-weight: 300;
  letter-spacing: 0.05em;
}

.theme-images {
  display: flex;
  gap: 0.5rem;
}

.theme-images img {
  width: 100px;
  height: 140px;
  object-fit: cover;
  border-radius: 2px;
}

/* 细节展示区 */
.detail-section {
  max-width: 1400px;
  margin: 4rem auto;
  padding: 0 2rem;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem;
  margin-bottom: 6rem;
}

.detail-item {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.detail-full {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: 2px;
}

.detail-close {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 2px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.detail-close:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-soft);
}

.detail-caption {
  font-size: 0.95rem;
  color: rgba(44, 62, 80, 0.7);
  line-height: 1.8;
  font-weight: 300;
}

/* 页脚 */
footer {
  text-align: center;
  padding: 3rem 2rem;
  color: var(--color-text-light);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  border-top: 1px solid rgba(44, 62, 80, 0.08);
}

/* 响应式设计 */
@media (max-width: 1024px) {
  .featured-grid,
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .detail-grid {
    grid-template-columns: 1fr;
  }
  
  .slide-caption {
    font-size: 1.5rem;
  }
}

@media (max-width: 768px) {
  nav {
    padding: 1rem;
  }
  
  .nav-links {
    gap: 1.5rem;
  }
  
  .nav-links a {
    font-size: 0.85rem;
  }
  
  .featured-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .hero-slider {
    height: 70vh;
  }
  
  .section-title {
    font-size: 1.5rem;
  }
  
  .philosophy-title {
    font-size: 1.8rem;
  }
  
  .philosophy-text {
    font-size: 1rem;
  }
}

/* 淡入淡出动画 */
.fade-in {
  animation: fadeIn 0.6s ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 震动效果 */
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-2px); }
  75% { transform: translateX(2px); }
}

.shake {
  animation: shake 0.3s ease;
}