/* 全局样式 - 高质量时尚女装展示网站 */

/* 字体引入 */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@400;600;700&family=Noto+Sans+SC:wght@300;400;500&display=swap');

/* CSS变量定义 */
:root {
  --color-white: #FFFFFF;
  --color-bg-light: #FAFAFA;
  --color-text-dark: #2C2C2C;
  --color-text-medium: #666666;
  --color-text-light: #999999;
  --color-accent: #E6D4B1;
  --font-title-en: 'Playfair Display', serif;
  --font-title-cn: 'Noto Serif SC', serif;
  --font-body: '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 {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--color-text-dark);
  background-color: var(--color-white);
  line-height: 1.8;
  overflow-x: hidden;
}

/* 通用排版 */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-title-cn);
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 1.5rem;
}

h1 {
  font-size: 3rem;
}

h2 {
  font-size: 2.5rem;
}

h3 {
  font-size: 2rem;
}

p {
  margin-bottom: 1.5rem;
  font-size: 1.125rem;
  color: var(--color-text-medium);
}

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

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

/* 导航栏 */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  z-index: 1000;
  padding: 1.5rem 5%;
  border-bottom: 1px solid rgba(230, 212, 177, 0.3);
  transition: var(--transition-fast);
}

.navbar-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  font-family: var(--font-title-en);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--color-text-dark);
}

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

.nav-link {
  font-size: 1rem;
  font-weight: 400;
  color: var(--color-text-medium);
  position: relative;
  padding-bottom: 0.25rem;
}

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

.nav-link:hover,
.nav-link.active {
  color: var(--color-text-dark);
}

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

/* 页面容器 */
.page-container {
  margin-top: 80px;
  min-height: calc(100vh - 160px);
}

/* 首页轮播区域 */
.hero-slider {
  position: relative;
  width: 100%;
  height: calc(100vh - 80px);
  overflow: hidden;
}

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

.slide.active {
  opacity: 1;
  z-index: 1;
}

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

.slide-caption {
  position: absolute;
  bottom: 8%;
  right: 5%;
  background-color: rgba(255, 255, 255, 0.92);
  padding: 1.5rem 2.5rem;
  font-size: 1rem;
  color: var(--color-text-dark);
  letter-spacing: 1px;
  backdrop-filter: blur(10px);
  border-left: 3px solid var(--color-accent);
}

.scroll-indicator {
  position: absolute;
  bottom: 3%;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-text-light);
  font-size: 0.875rem;
  animation: bounce 2s infinite;
  z-index: 10;
  cursor: pointer;
}

.scroll-arrow {
  width: 1px;
  height: 2rem;
  background: linear-gradient(to bottom, transparent, var(--color-text-light));
}

@keyframes bounce {
  0%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(10px);
  }
}

/* 内容区域 */
.content-section {
  max-width: 1400px;
  margin: 0 auto;
  padding: 8rem 5%;
}

.content-module {
  margin-bottom: 10rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.content-module:nth-child(even) {
  direction: rtl;
}

.content-module:nth-child(even) > * {
  direction: ltr;
}

.content-text {
  padding: 2rem;
}

.content-title {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  font-family: var(--font-title-cn);
  color: var(--color-text-dark);
}

.content-description {
  font-size: 1.125rem;
  line-height: 2;
  color: var(--color-text-medium);
}

.content-image {
  width: 100%;
  height: 600px;
  overflow: hidden;
}

.content-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.content-image:hover img {
  transform: scale(1.05);
}

/* 全屏模块 */
.fullscreen-module {
  position: relative;
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.fullscreen-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.7);
}

.fullscreen-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--color-white);
  max-width: 800px;
  padding: 3rem;
}

.fullscreen-title {
  font-size: 3.5rem;
  margin-bottom: 2rem;
  color: var(--color-white);
}

.fullscreen-text {
  font-size: 1.25rem;
  line-height: 2.2;
  color: rgba(255, 255, 255, 0.95);
}

/* 画廊网格 */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  padding: 5rem 5%;
  max-width: 1400px;
  margin: 0 auto;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background-color: var(--color-bg-light);
}

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

.gallery-item:hover .gallery-image {
  transform: scale(1.05);
}

.gallery-info {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 2rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85), transparent);
  color: var(--color-white);
  transform: translateY(100%);
  transition: transform 0.4s ease;
}

.gallery-item:hover .gallery-info {
  transform: translateY(0);
}

.gallery-title {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.gallery-description {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.9);
}

/* 三栏网格 */
.three-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  padding: 5rem 5%;
  max-width: 1400px;
  margin: 0 auto;
}

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

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

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

.grid-caption {
  margin-top: 1rem;
  font-size: 0.95rem;
  color: var(--color-text-medium);
  text-align: center;
}

/* 页脚 */
.footer {
  background-color: var(--color-bg-light);
  padding: 3rem 0;
  text-align: center;
  border-top: 1px solid rgba(230, 212, 177, 0.3);
}

.footer-content {
  font-size: 0.75rem;
  color: var(--color-text-light);
  letter-spacing: 2px;
}

/* 加载动画 */
.loading-spinner {
  display: inline-block;
  width: 40px;
  height: 40px;
  border: 3px solid var(--color-bg-light);
  border-top-color: var(--color-accent);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

/* 响应式设计 */
@media (max-width: 1024px) {
  h1 {
    font-size: 2.5rem;
  }
  
  h2 {
    font-size: 2rem;
  }
  
  .content-module {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .content-module:nth-child(even) {
    direction: ltr;
  }
  
  .three-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .navbar {
    padding: 1rem 4%;
  }
  
  .nav-menu {
    gap: 1.5rem;
  }
  
  .nav-link {
    font-size: 0.9rem;
  }
  
  .slide-caption {
    bottom: 5%;
    right: 4%;
    padding: 1rem 1.5rem;
    font-size: 0.875rem;
  }
  
  .content-section {
    padding: 5rem 4%;
  }
  
  .content-title {
    font-size: 2rem;
  }
  
  .fullscreen-title {
    font-size: 2.5rem;
  }
  
  .three-grid {
    grid-template-columns: 1fr;
  }
  
  .gallery-grid {
    grid-template-columns: 1fr;
    padding: 3rem 4%;
  }
  
  .gallery-image {
    height: 400px;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 2rem;
  }
  
  .nav-logo {
    font-size: 1.25rem;
  }
  
  .nav-menu {
    gap: 1rem;
  }
  
  .content-module {
    margin-bottom: 6rem;
  }
  
  .content-image {
    height: 400px;
  }
  
  .fullscreen-title {
    font-size: 2rem;
  }
  
  .fullscreen-text {
    font-size: 1rem;
  }
}

/* 平滑过渡效果 */
.fade-in {
  animation: fadeIn 1s ease-in;
}

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

/* 图片懒加载占位 */
.lazy-load {
  background: linear-gradient(110deg, var(--color-bg-light) 8%, #f0f0f0 18%, var(--color-bg-light) 33%);
  background-size: 200% 100%;
  animation: shimmer 1.5s linear infinite;
}

@keyframes shimmer {
  to {
    background-position-x: -200%;
  }
}