@import url('https://fonts.loli.net/css2?family=Playfair+Display:wght@400;700&family=Noto+Sans+SC:wght@300;400;500&display=swap');

:root {
  --color-bg: #FFFFFF;
  --color-text: #212529;
  --color-accent: #D4B996; /* 淡金色点缀 */
}

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

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: 'Noto Sans SC', sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
}

/* 导航栏 */
.main-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.main-nav a {
  text-decoration: none;
  color: var(--color-text);
  font-size: 1rem;
  font-weight: 500;
  transition: color 0.3s ease;
}

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

/* 轮播容器 */
.swiper-container {
  width: 100%;
  height: 100vh;
  position: relative;
}

.swiper-slide {
  display: flex;
  justify-content: center;
  align-items: center;
  background-size: cover;
  background-position: center;
}

.slide-caption {
  background: rgba(255, 255, 255, 0.85);
  padding: 1.5rem 2rem;
  max-width: 600px;
  text-align: center;
  margin-top: 2rem;
  backdrop-filter: blur(5px);
  border-radius: 4px;
}

/* 精选单品网格 */
.featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  padding: 4rem 2rem;
}

.grid-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.grid-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease;
}

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

.grid-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0,0,0,0.7);
  color: white;
  padding: 1.25rem;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.grid-item:hover .grid-caption {
  transform: translateY(0);
}

/* 系列展示页 */
.collections-grid {
  column-count: 3;
  column-gap: 1.5rem;
  padding: 2rem 1.5rem;
}

@media (max-width: 768px) {
  .collections-grid {
    column-count: 1;
  }
}

.collection-item {
  break-inside: avoid;
  margin-bottom: 1.5rem;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.collection-item:hover {
  transform: translateY(-5px);
}

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

.collection-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.6);
  color: white;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

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

/* 设计理念页 */
.philosophy-layout {
  display: flex;
  min-height: calc(100vh - 80px);
}

.philosophy-text {
  flex: 1;
  padding: 4rem 3rem;
  position: sticky;
  top: 80px;
  height: calc(100vh - 80px);
  overflow-y: auto;
}

.philosophy-images {
  flex: 1;
  padding: 2rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  overflow-y: auto;
}

.philosophy-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* 页脚 */
footer {
  text-align: center;
  padding: 2rem 0;
  color: #6c757d;
  font-size: 0.9rem;
}

/* 响应式调整 */
@media (max-width: 1024px) {
  .philosophy-layout {
    flex-direction: column;
  }
  
  .philosophy-text,
  .philosophy-images {
    height: auto;
    position: static;
    padding: 2rem 1.5rem;
  }
}

/* 按钮样式 */
.btn-group {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  margin-top: 2rem;
}

.btn {
  padding: 0.75rem 2rem;
  border: 1px solid var(--color-text);
  background: transparent;
  color: var(--color-text);
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

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

/* 标题样式 */
.page-title {
  text-align: center;
  margin: 3rem 0 2rem;
  font-size: 2.5rem;
  color: var(--color-text);
}

/* 全局滚动条样式 */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}