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

:root {
  --color-ivory: #faf9f6;
  --color-light-gray: #e8e6e3;
  --color-sand: #d4c5b0;
  --color-warm-gray: #9b9186;
  --color-charcoal: #3a3633;
  --color-accent: #c9a88a;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-subtle: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-hover: 0 4px 16px rgba(0, 0, 0, 0.12);
}

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

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

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

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

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

/* ==================== 导航栏 ==================== */
.nav-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(250, 249, 246, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 1px solid var(--color-light-gray);
}

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

.nav-logo {
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--color-charcoal);
}

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

.nav-item a {
  font-size: 0.95rem;
  color: var(--color-warm-gray);
  letter-spacing: 0.03em;
  position: relative;
}

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

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

.nav-item a.active {
  color: var(--color-charcoal);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--color-charcoal);
  transition: var(--transition-smooth);
}

/* ==================== 主内容区 ==================== */
main {
  padding-top: 80px;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ==================== 首页轮播图 ==================== */
.hero-slider {
  position: relative;
  width: 100%;
  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;
  object-position: center;
}

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

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

.slider-dot:hover,
.slider-dot.active {
  background: rgba(255, 255, 255, 0.9);
  transform: scale(1.2);
}

/* ==================== 首页介绍区 ==================== */
.intro-section {
  padding: 6rem 0;
  text-align: center;
}

.intro-text {
  max-width: 900px;
  margin: 0 auto 4rem;
  font-size: 1.1rem;
  line-height: 2;
  color: var(--color-warm-gray);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4rem;
  margin-top: 4rem;
}

.feature-item {
  text-align: left;
  padding: 2rem;
}

.feature-item h3 {
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
  color: var(--color-charcoal);
  font-weight: 500;
}

.feature-item p {
  color: var(--color-warm-gray);
  line-height: 1.9;
}

.nav-prompt {
  margin-top: 4rem;
  padding: 2rem;
  background: var(--color-light-gray);
  border-radius: 2px;
}

.nav-prompt p {
  color: var(--color-warm-gray);
  line-height: 1.9;
}

.nav-prompt a {
  color: var(--color-accent);
  font-weight: 500;
}

.nav-prompt a:hover {
  opacity: 0.8;
}

/* ==================== 风尚美学页面 ==================== */
.aesthetics-layout {
  display: grid;
  grid-template-columns: 45% 55%;
  min-height: calc(100vh - 80px);
}

.visual-section {
  position: sticky;
  top: 80px;
  height: calc(100vh - 80px);
  padding: 3rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  overflow: hidden;
}

.visual-item {
  flex: 1;
  overflow: hidden;
  border-radius: 2px;
}

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

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

.content-section {
  padding: 4rem 3rem;
  background: var(--color-ivory);
}

.content-block {
  margin-bottom: 4rem;
}

.content-block h2 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  color: var(--color-charcoal);
  font-weight: 500;
}

.content-block p {
  color: var(--color-warm-gray);
  line-height: 2;
  margin-bottom: 1rem;
}

/* ==================== 设计臻品页面 ==================== */
.designs-section {
  padding: 4rem 0 6rem;
}

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

.design-item {
  position: relative;
  overflow: hidden;
  border-radius: 2px;
  background: var(--color-light-gray);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.design-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.design-item img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.design-item:hover img {
  transform: scale(1.1);
}

.design-caption {
  padding: 1.5rem;
  background: white;
}

.design-caption p {
  font-size: 0.9rem;
  color: var(--color-warm-gray);
  line-height: 1.6;
}

/* ==================== 模态框 ==================== */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal.show {
  display: flex;
  opacity: 1;
}

.modal-content {
  max-width: 90%;
  max-height: 90vh;
  position: relative;
}

.modal-content img {
  width: 100%;
  height: auto;
  max-height: 90vh;
  object-fit: contain;
}

.modal-close {
  position: absolute;
  top: -40px;
  right: 0;
  color: white;
  font-size: 2rem;
  font-weight: 300;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.modal-close:hover {
  opacity: 0.7;
}

/* ==================== 页脚 ==================== */
footer {
  padding: 3rem 0;
  text-align: center;
  border-top: 1px solid var(--color-light-gray);
  background: var(--color-ivory);
}

footer p {
  color: var(--color-warm-gray);
  font-size: 0.9rem;
  letter-spacing: 0.05em;
}

/* ==================== 响应式设计 ==================== */
@media (max-width: 1024px) {
  .nav-menu {
    gap: 2rem;
  }

  .feature-grid {
    gap: 3rem;
  }

  .aesthetics-layout {
    grid-template-columns: 1fr;
  }

  .visual-section {
    position: relative;
    height: 60vh;
    top: 0;
  }

  .designs-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background: var(--color-ivory);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    transition: var(--transition-smooth);
  }

  .nav-menu.active {
    left: 0;
  }

  .hero-slider {
    height: 70vh;
  }

  .intro-section {
    padding: 4rem 0;
  }

  .intro-text {
    font-size: 1rem;
  }

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

  .feature-item {
    padding: 1.5rem;
  }

  .visual-section {
    padding: 2rem;
    gap: 1rem;
  }

  .content-section {
    padding: 3rem 2rem;
  }

  .content-block h2 {
    font-size: 1.5rem;
  }

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

  .container {
    padding: 0 1.5rem;
  }
}