/* art.css - 咖啡与艺术页面样式 */
/* CSS变量定义 */
:root {
  --coffee-brown: #4e342e;
  --coffee-light: #d7ccc8;
  --coffee-dark: #3e2723;
  --accent-cream: #fff8e1;
  --text-color: #2e1d19;
  --hover-color: #8d6e63;
}
/* 页面头部 */
.art-hero {
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    url('../images/art_hero_bg.jpg') center/cover;
  height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--accent-cream);
  position: relative;
  overflow: hidden;
}

.art-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 30% 40%, rgba(255,255,255,0.1) 2px, transparent 2px),
    radial-gradient(circle at 70% 60%, rgba(255,255,255,0.05) 3px, transparent 3px);
  background-size: 100px 100px, 150px 150px;
  animation: artFloat 25s linear infinite;
}

@keyframes artFloat {
  0% { transform: translate(0, 0) rotate(0deg); }
  100% { transform: translate(-100px, -100px) rotate(360deg); }
}

.art-hero h1 {
  font-size: 3.2rem;
  margin-bottom: 1rem;
  animation: fadeIn 1s ease-out;
  position: relative;
  z-index: 1;
}

.art-hero p {
  font-size: 1.3rem;
  max-width: 700px;
  animation: fadeIn 1s ease-out 0.3s both;
  position: relative;
  z-index: 1;
}

/* 艺术画廊区域 */
.art-gallery {
  padding: 2rem 0;
  background: var(--accent-cream);
}

.gallery-intro {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 3rem;
  padding: 0 1rem;
}

.gallery-intro h2 {
  color: var(--coffee-dark);
  font-size: 2.5rem;
  margin-bottom: 1rem;
  animation: slideInLeft 1s ease-out;
}

.gallery-intro p {
  color: var(--text-color);
  font-size: 1.1rem;
  line-height: 1.8;
  animation: slideInRight 1s ease-out 0.3s both;
}

/* 图片网格 */
.art-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* 艺术卡片 */
.art-card {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  transform: translateY(20px);
  opacity: 1;
  animation: fadeInUp 0.8s ease-out forwards;
}

.art-card:nth-child(1) { animation-delay: 0.1s; }
.art-card:nth-child(2) { animation-delay: 0.2s; }
.art-card:nth-child(3) { animation-delay: 0.3s; }
.art-card:nth-child(4) { animation-delay: 0.4s; }
.art-card:nth-child(5) { animation-delay: 0.5s; }
.art-card:nth-child(6) { animation-delay: 0.6s; }

/* 图片容器 */
.art-image {
  position: relative;
  overflow: hidden;
  height: 250px;
}

.art-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.5s ease;
  filter: brightness(0.9) contrast(1.1);
}

/* 悬停效果 */
.art-card:hover {
  transform: translateY(-15px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.art-card:hover .art-image img {
  transform: scale(1.15) rotate(2deg);
  filter: brightness(1.1) contrast(1.2) saturate(1.3);
}

/* 图片遮罩层 */
.art-image::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(78, 52, 46, 0.8), rgba(62, 39, 35, 0.6));
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.art-card:hover .art-image::before {
  opacity: 1;
}

/* 图片标题覆盖层 */
.art-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  text-align: center;
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 2;
}

.art-card:hover .art-overlay {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.1);
}

.art-overlay h4 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.art-overlay p {
  font-size: 0.9rem;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

/* 卡片内容 */
.art-content {
  padding: 1.5rem;
}

.art-content h3 {
  color: var(--coffee-dark);
  font-size: 1.2rem;
  margin-bottom: 0.8rem;
  transition: color 0.3s ease;
}

.art-card:hover .art-content h3 {
  color: var(--coffee-brown);
}

.art-content p {
  color: var(--text-color);
  line-height: 1.6;
  font-size: 0.95rem;
}

/* 特殊效果卡片 */
.art-card.featured {
  grid-column: span 2;
}

.art-card.featured .art-image {
  height: 300px;
}

.art-card.featured .art-content {
  padding: 2rem;
}

.art-card.featured .art-content h3 {
  font-size: 1.4rem;
}

/* 拉花艺术特殊区域 */
.latte-art-section {
  background: var(--coffee-light);
  padding: 4rem 0;
}

.latte-art-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 1rem;
}

.latte-art-item {
  position: relative;
  border-radius: 50%;
  overflow: hidden;
  aspect-ratio: 1;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  transition: all 0.4s ease;
}

.latte-art-item:hover {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 15px 40px rgba(0,0,0,0.3);
}

.latte-art-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.4s ease;
  filter: sepia(20%) contrast(1.1);
}

.latte-art-item:hover img {
  filter: sepia(0%) contrast(1.3) brightness(1.1);
  transform: scale(1.2);
}

/* 响应式设计 */
@media (max-width: 768px) {
  .art-hero h1 {
    font-size: 2.5rem;
  }
  
  .art-hero p {
    font-size: 1.1rem;
    padding: 0 1rem;
  }
  
  .gallery-intro h2 {
    font-size: 2rem;
  }
  
  .art-grid {
    grid-template-columns: 1fr;
  }
  
  .art-card.featured {
    grid-column: span 1;
  }
  
  .latte-art-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .art-hero {
    height: 60vh;
  }
  
  .art-hero h1 {
    font-size: 2rem;
  }
  
  .art-content {
    padding: 1rem;
  }
  
  .latte-art-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}