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

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans CN", sans-serif;
  color: #2C2C2C;
  background-color: #FFFFFF;
  line-height: 1.8;
  overflow-x: hidden;
}

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

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

a:hover {
  opacity: 0.7;
}

/* 页面容器 */
.container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 40px;
}

/* 导航栏 */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 1px solid rgba(44, 44, 44, 0.1);
}

.header-content {
  max-width: 1440px;
  margin: 0 auto;
  padding: 30px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 24px;
  font-weight: 300;
  letter-spacing: 2px;
}

nav {
  display: flex;
  gap: 40px;
}

nav a {
  font-size: 14px;
  letter-spacing: 1px;
  position: relative;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 1px;
  background-color: #2C2C2C;
  transition: width 0.3s ease;
}

nav a:hover::after {
  width: 100%;
}

/* 主内容区 */
main {
  margin-top: 100px;
  min-height: calc(100vh - 200px);
}

/* 页脚 */
footer {
  text-align: center;
  padding: 60px 40px;
  font-size: 12px;
  letter-spacing: 1px;
  color: #999;
  border-top: 1px solid rgba(44, 44, 44, 0.1);
}

/* 轮播图区域 */
.hero-slider {
  position: relative;
  height: 90vh;
  overflow: hidden;
}

.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;
}

.slide-caption {
  position: absolute;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  color: #FFFFFF;
  font-size: 28px;
  font-weight: 300;
  letter-spacing: 3px;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

/* 精选系列区域 */
.featured-section {
  padding: 120px 0;
  background-color: #F8F8F8;
}

.section-title {
  text-align: center;
  font-size: 32px;
  font-weight: 300;
  letter-spacing: 4px;
  margin-bottom: 80px;
}

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

.featured-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.featured-item img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  transition: transform 0.6s ease;
}

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

.featured-text {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 30px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
  color: #FFFFFF;
  font-size: 16px;
  letter-spacing: 1px;
  opacity: 0;
  transition: opacity 0.4s ease;
}

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

/* 设计哲学区域 */
.philosophy-section {
  padding: 120px 0;
  text-align: center;
}

.philosophy-content {
  max-width: 800px;
  margin: 0 auto;
  font-size: 18px;
  line-height: 2;
  letter-spacing: 1px;
  color: #555;
}

/* 艺廊网格布局 */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 60px;
  padding: 80px 0;
}

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

.gallery-item img {
  width: 100%;
  height: 600px;
  object-fit: cover;
  transition: transform 0.6s ease, filter 0.6s ease;
}

.gallery-item:hover img {
  transform: scale(1.08);
  filter: brightness(1.1);
}

.gallery-caption {
  margin-top: 20px;
  font-size: 16px;
  letter-spacing: 1px;
  color: #666;
  text-align: center;
}

/* 故事场景区域 */
.story-scene {
  padding: 100px 0;
  border-bottom: 1px solid rgba(44, 44, 44, 0.1);
}

.story-scene:last-child {
  border-bottom: none;
}

.scene-title {
  font-size: 28px;
  font-weight: 300;
  letter-spacing: 3px;
  margin-bottom: 20px;
}

.scene-subtitle {
  font-size: 16px;
  color: #999;
  letter-spacing: 1px;
  margin-bottom: 60px;
}

.scene-images {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.scene-images img {
  width: 100%;
  height: 450px;
  object-fit: cover;
  transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.scene-images img:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

/* 响应式设计 */
@media (max-width: 1024px) {
  .container {
    padding: 0 30px;
  }
  
  .header-content {
    padding: 25px 30px;
  }
  
  .featured-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }
  
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .scene-images {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 20px;
  }
  
  .header-content {
    padding: 20px;
    flex-direction: column;
    gap: 20px;
  }
  
  nav {
    gap: 25px;
  }
  
  main {
    margin-top: 140px;
  }
  
  .hero-slider {
    height: 60vh;
  }
  
  .slide-caption {
    font-size: 20px;
    bottom: 40px;
  }
  
  .featured-section {
    padding: 80px 0;
  }
  
  .section-title {
    font-size: 24px;
    margin-bottom: 50px;
  }
  
  .featured-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .featured-item img {
    height: 400px;
  }
  
  .philosophy-section {
    padding: 80px 0;
  }
  
  .philosophy-content {
    font-size: 16px;
  }
  
  .gallery-item img {
    height: 400px;
  }
  
  .story-scene {
    padding: 60px 0;
  }
  
  .scene-title {
    font-size: 22px;
  }
  
  .scene-images {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .scene-images img {
    height: 350px;
  }
}

/* 加载动画 */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 1s ease-out;
}

/* 图片加载占位 */
.img-placeholder {
  background: linear-gradient(90deg, #F8F8F8 25%, #E8E8E8 50%, #F8F8F8 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}