/* 咖啡馆推荐页面样式 */
/* CSS变量定义 */
:root {
  --coffee-brown: #4e342e;
  --coffee-light: #d7ccc8;
  --coffee-dark: #3e2723;
  --accent-cream: #fff8e1;
  --text-color: #2e1d19;
  --hover-color: #8d6e63;
}
/* Hero 区域 */
.cafes-hero {
  background: linear-gradient(135deg, #8B4513 0%, #D2691E 50%, #F4A460 100%);
  background-size: 400% 400%;
  animation: gradientShift 8s ease-in-out infinite;
  color: white;
  text-align: center;
  padding: 120px 20px 80px;
  position: relative;
  overflow: hidden;
}

.cafes-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="%23ffffff" opacity="0.1"/><circle cx="80" cy="40" r="1.5" fill="%23ffffff" opacity="0.1"/><circle cx="40" cy="80" r="1" fill="%23ffffff" opacity="0.1"/></svg>') repeat;
  animation: float 20s linear infinite;
}

.cafes-hero h1 {
  font-size: 3.5rem;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
  animation: slideInDown 1s ease-out;
}

.cafes-hero p {
  font-size: 1.3rem;
  max-width: 600px;
  margin: 0 auto;
  opacity: 0.9;
  animation: slideInUp 1s ease-out 0.3s both;
}

/* 介绍区域 */
.cafes-intro {
  padding: 40px 20px;
  background: linear-gradient(to bottom, #f8f9fa, #ffffff);
  text-align: center;
}

.cafes-intro h2 {
  font-size: 2.5rem;
  color: #8B4513;
  margin-bottom: 30px;
  position: relative;
}

.cafes-intro h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(to right, #D2691E, #F4A460);
  border-radius: 2px;
}

.cafes-intro p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #666;
  max-width: 800px;
  margin: 0 auto;
}

/* 咖啡馆网格 */
.cafes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  padding: 20px 20px 40px;
  max-width: 1200px;
  margin: 0 auto;
}

/* 咖啡馆卡片 */
.cafe-card {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  position: relative;
  animation: fadeInUp 0.6s ease-out;
}

.cafe-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.cafe-card.featured {
  grid-column: span 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 400px;
}

.cafe-image {
  position: relative;
  height: 250px;
  overflow: hidden;
}

.cafe-card.featured .cafe-image {
  height: 100%;
}

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

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

.cafe-image::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.1) 100%);
}

/* 咖啡馆标签 */
.cafe-tag {
  position: absolute;
  top: 15px;
  left: 15px;
  background: rgba(139, 69, 19, 0.9);
  color: white;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  z-index: 2;
}

.rating-tag {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(255, 193, 7, 0.9);
  color: #8B4513;
  padding: 5px 10px;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 600;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 3px;
}

.rating-tag::before {
  content: '⭐';
  font-size: 0.7rem;
}

/* 咖啡馆内容 */
.cafe-content {
  padding: 25px;
}

.cafe-card.featured .cafe-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px;
}

.cafe-content h3 {
  font-size: 1.4rem;
  color: #8B4513;
  margin-bottom: 8px;
  font-weight: 700;
}

.cafe-card.featured .cafe-content h3 {
  font-size: 2rem;
  margin-bottom: 15px;
}

.cafe-subtitle {
  color: #D2691E;
  font-size: 0.9rem;
  margin-bottom: 15px;
  font-weight: 500;
}

.cafe-card.featured .cafe-subtitle {
  font-size: 1.1rem;
  margin-bottom: 20px;
}

.cafe-content p {
  color: #666;
  line-height: 1.6;
  margin-bottom: 20px;
  font-size: 0.95rem;
}

.cafe-card.featured .cafe-content p {
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 25px;
}

/* 咖啡馆信息 */
.cafe-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-bottom: 20px;
}

.info-item {
  display: flex;
  flex-direction: column;
}

.info-label {
  font-size: 0.8rem;
  color: #999;
  margin-bottom: 3px;
  font-weight: 500;
}

.info-value {
  font-size: 0.9rem;
  color: #8B4513;
  font-weight: 600;
}

/* 特色标签 */
.features-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.feature-tag {
  background: linear-gradient(135deg, #F4A460, #D2691E);
  color: white;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 500;
}

/* 访问按钮 */
.visit-cafe {
  display: inline-block;
  background: linear-gradient(135deg, #8B4513, #D2691E);
  color: white;
  padding: 12px 25px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.visit-cafe::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s ease;
}

.visit-cafe:hover::before {
  left: 100%;
}

.visit-cafe:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(139, 69, 19, 0.3);
}

/* 地图区域 */
.cafes-map {
  padding: 80px 20px;
  background: #f8f9fa;
  text-align: center;
}

.cafes-map h2 {
  font-size: 2.5rem;
  color: #8B4513;
  margin-bottom: 20px;
}

.cafes-map p {
  font-size: 1.1rem;
  color: #666;
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.map-container {
  max-width: 1000px;
  margin: 0 auto;
  height: 400px;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* 动画 */
@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

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

@keyframes slideInDown {
  from {
    opacity: 0;
    transform: translateY(-50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

/* 响应式设计 */
@media (max-width: 768px) {
  .cafes-hero h1 {
    font-size: 2.5rem;
  }
  
  .cafes-hero p {
    font-size: 1.1rem;
  }
  
  .cafes-intro h2 {
    font-size: 2rem;
  }
  
  .cafes-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 20px;
  }
  
  .cafe-card.featured {
    grid-column: span 1;
    display: block;
  }
  
  .cafe-card.featured .cafe-image {
    height: 250px;
  }
  
  .cafe-card.featured .cafe-content {
    padding: 25px;
  }
  
  .cafe-card.featured .cafe-content h3 {
    font-size: 1.4rem;
  }
  
  .cafe-card.featured .cafe-subtitle {
    font-size: 0.9rem;
  }
  
  .cafe-card.featured .cafe-content p {
    font-size: 0.95rem;
  }
  
  .cafe-info {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  
  .map-container {
    height: 300px;
  }
}