/* 全局样式 */
:root {
  --primary-color: #1a1a1a;
  --secondary-color: #404040;
  --accent-color: #8b7355;
  --background-color: #f5f5f5;
  --text-color: #333;
  --light-gray: #e5e5e5;
  --white: #ffffff;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  color: var(--text-color);
  background-color: var(--background-color);
  line-height: 1.6;
}

/* 导航栏样式 */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  background: var(--white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  transition: all 0.3s ease;
}

nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem 0;
}

nav li {
  margin: 0 2rem;
}

nav a {
  text-decoration: none;
  color: var(--primary-color);
  font-weight: 300;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: color 0.3s ease;
  position: relative;
}

nav a:hover,
nav a.active {
  color: var(--accent-color);
}

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

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

/* 主容器样式 */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* 页脚样式 */
footer {
  background: var(--primary-color);
  color: var(--light-gray);
  text-align: center;
  padding: 2rem 0;
  margin-top: 4rem;
  font-size: 0.9rem;
  font-weight: 300;
}

/* 轮播图样式 */
.hero-slider {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.slide {
  position: absolute;
  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;
}

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

.hero-title {
  font-size: 3rem;
  font-weight: 200;
  letter-spacing: 3px;
  margin-bottom: 2rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-btn {
  display: inline-block;
  padding: 1rem 3rem;
  background: transparent;
  color: var(--white);
  border: 1px solid var(--white);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.hero-btn:hover {
  background: var(--white);
  color: var(--primary-color);
}

/* 网格布局样式 */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin: 4rem 0;
}

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

.grid-item img {
  width: 100%;
  height: 450px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.grid-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

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

.grid-overlay-text {
  color: var(--white);
  font-size: 1.1rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* 型录样式 */
.lookbook-section {
  padding: 6rem 0;
}

.lookbook-item {
  margin-bottom: 6rem;
}

.lookbook-images {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.lookbook-images img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.lookbook-description {
  text-align: center;
  font-style: italic;
  color: var(--secondary-color);
  font-size: 1.1rem;
  letter-spacing: 1px;
}

/* 工艺页面样式 */
.craftsmanship-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
  padding: 4rem 0;
}

.craft-item {
  text-align: center;
}

.craft-item img {
  width: 100%;
  height: 350px;
  object-fit: cover;
  margin-bottom: 1.5rem;
}

.craft-item p {
  color: var(--secondary-color);
  font-size: 0.95rem;
  line-height: 1.8;
  max-width: 300px;
  margin: 0 auto;
}

/* 故事页面样式 */
.about-section {
  max-width: 800px;
  margin: 0 auto;
  padding: 6rem 2rem;
  text-align: center;
}

.about-image {
  width: 100%;
  height: 400px;
  object-fit: cover;
  margin-bottom: 3rem;
}

.about-text {
  color: var(--secondary-color);
  font-size: 1.1rem;
  line-height: 2;
  letter-spacing: 0.5px;
}

/* 页面标题样式 */
.page-title {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 200;
  letter-spacing: 3px;
  color: var(--primary-color);
  margin: 4rem 0;
  text-transform: uppercase;
}

/* 响应式设计 */
@media (max-width: 768px) {
  nav ul {
    flex-direction: column;
    padding: 0.5rem 0;
  }

  nav li {
    margin: 0.5rem 0;
  }

  .hero-title {
    font-size: 2rem;
  }

  .grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .page-title {
    font-size: 2rem;
  }

  .lookbook-images {
    grid-template-columns: 1fr;
  }

  .about-section {
    padding: 4rem 1rem;
  }
}

/* 轮播指示器样式 */
.slider-dots {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 15px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot.active {
  background: var(--white);
  width: 30px;
  border-radius: 6px;
}

/* 加载动画 */
.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(0, 0, 0, 0.1);
  border-radius: 50%;
  border-top-color: var(--accent-color);
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* 平滑滚动 */
html {
  scroll-behavior: smooth;
}