/* 时尚经纬 - 全局样式文件 */

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

/* CSS变量定义 */
:root {
  --primary-color: #FFFFFF;
  --secondary-color: #F5F5F5;
  --accent-color: #2C2C2C;
  --text-light: #666666;
  --border-color: #E0E0E0;
  --shadow-soft: 0 2px 20px rgba(0, 0, 0, 0.08);
  --shadow-medium: 0 4px 30px rgba(0, 0, 0, 0.12);
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
  font-family: "Noto Serif SC", "Times New Roman", serif;
  color: var(--accent-color);
  background-color: var(--primary-color);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* 英文数字字体 */
.en-text {
  font-family: "Helvetica", "Arial", sans-serif;
}

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

.navbar.scrolled {
  padding: 1rem 5%;
  box-shadow: var(--shadow-soft);
}

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

.nav-logo {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--accent-color);
  text-decoration: none;
  letter-spacing: 2px;
}

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

.nav-link {
  color: var(--accent-color);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 400;
  position: relative;
  transition: var(--transition-smooth);
}

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

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

/* 主容器 */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 5%;
}

/* 标题样式 */
.page-title {
  font-size: 3rem;
  font-weight: 600;
  text-align: center;
  margin: 5rem 0 1rem;
  letter-spacing: 4px;
}

.page-subtitle {
  font-size: 1.1rem;
  color: var(--text-light);
  text-align: center;
  margin-bottom: 4rem;
  letter-spacing: 1px;
}

/* 轮播图样式 */
.carousel {
  position: relative;
  height: 100vh;
  overflow: hidden;
  margin-top: -80px;
}

.carousel-slide {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.5s ease;
}

.carousel-slide.active {
  opacity: 1;
}

.carousel-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-caption {
  position: absolute;
  bottom: 30%;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  color: var(--primary-color);
  z-index: 10;
}

.carousel-caption h2 {
  font-size: 2.5rem;
  font-weight: 300;
  letter-spacing: 6px;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
}

/* 精选推荐区 */
.featured-section {
  padding: 6rem 0;
  background-color: var(--secondary-color);
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.featured-item {
  background: var(--primary-color);
  overflow: hidden;
  transition: var(--transition-smooth);
  cursor: pointer;
}

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

.featured-image {
  width: 100%;
  height: 400px;
  object-fit: cover;
  transition: var(--transition-smooth);
}

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

.featured-content {
  padding: 2rem;
}

.featured-content h3 {
  font-size: 1.2rem;
  font-weight: 500;
  margin-bottom: 1rem;
  letter-spacing: 1px;
}

.featured-content p {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.8;
}

/* 瀑布流布局 */
.gallery-grid {
  column-count: 4;
  column-gap: 2rem;
  margin-top: 3rem;
}

.gallery-item {
  break-inside: avoid;
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.gallery-image {
  width: 100%;
  height: auto;
  display: block;
  transition: var(--transition-smooth);
}

.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
  color: var(--primary-color);
  padding: 2rem 1.5rem 1.5rem;
  transform: translateY(100%);
  transition: var(--transition-smooth);
}

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

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

.gallery-overlay p {
  font-size: 0.95rem;
  line-height: 1.6;
  letter-spacing: 0.5px;
}

/* 卡片样式 */
.style-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 3rem;
  margin-top: 3rem;
}

.style-card {
  background: var(--secondary-color);
  overflow: hidden;
  transition: var(--transition-smooth);
}

.style-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-soft);
}

.style-image {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.style-content {
  padding: 2.5rem;
}

.style-content h3 {
  font-size: 1.4rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  letter-spacing: 2px;
}

.style-content p {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.9;
  text-align: justify;
}

/* 关于我们页面 */
.about-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
  margin-top: 4rem;
  margin-bottom: 6rem;
}

.about-content {
  padding: 2rem;
}

.about-content h2 {
  font-size: 2rem;
  font-weight: 500;
  margin-bottom: 2rem;
  letter-spacing: 2px;
}

.about-content p {
  color: var(--text-light);
  font-size: 1.05rem;
  line-height: 2;
  text-align: justify;
  margin-bottom: 1.5rem;
}

.about-image {
  width: 100%;
  height: 500px;
  object-fit: cover;
  box-shadow: var(--shadow-medium);
}

/* 页脚 */
footer {
  text-align: center;
  padding: 3rem 0;
  background-color: var(--secondary-color);
  color: var(--text-light);
  font-size: 0.9rem;
  letter-spacing: 1px;
}

/* 懒加载动画 */
.lazy-load {
  opacity: 0;
  transition: opacity 0.5s ease;
}

.lazy-load.loaded {
  opacity: 1;
}

/* 响应式设计 */
@media (max-width: 1024px) {
  .gallery-grid {
    column-count: 3;
  }
  
  .about-container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .about-image {
    height: 400px;
  }
}

@media (max-width: 768px) {
  .page-title {
    font-size: 2.2rem;
    margin: 4rem 0 1rem;
  }
  
  .nav-menu {
    gap: 1.5rem;
  }
  
  .carousel-caption h2 {
    font-size: 1.8rem;
  }
  
  .featured-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .gallery-grid {
    column-count: 2;
    column-gap: 1.5rem;
  }
  
  .style-cards {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .nav-link {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .nav-container {
    flex-direction: column;
    gap: 1rem;
  }
  
  .navbar {
    padding: 1rem 5%;
  }
  
  .carousel {
    height: 70vh;
  }
  
  .gallery-grid {
    column-count: 1;
  }
  
  .style-content {
    padding: 2rem;
  }
  
  .about-content {
    padding: 1rem;
  }
  
  .about-content h2 {
    font-size: 1.6rem;
  }
}

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

.fade-in {
  animation: fadeIn 0.8s ease forwards;
}

/* 自定义滚动条 */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--secondary-color);
}

::-webkit-scrollbar-thumb {
  background: var(--accent-color);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #1a1a1a;
}