/* about.css - 关于我们页面样式 */

/* CSS变量定义 */
:root {
  --coffee-brown: #4e342e;
  --coffee-light: #d7ccc8;
  --coffee-dark: #3e2723;
  --accent-cream: #fff8e1;
  --text-color: #2e1d19;
  --hover-color: #8d6e63;
}
/* 页面主体样式 */
.about-hero {
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    url('../images/about_hero_bg.jpg') center/cover;
  height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--accent-cream);
}

.about-hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  animation: fadeIn 1s ease-out;
}

.about-hero p {
  font-size: 1.2rem;
  max-width: 600px;
  animation: fadeIn 1s ease-out 0.3s both;
}

/* 内容区域 */
.about-content {
  padding: 4rem 0;
  background: var(--accent-cream);
}

.content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  align-items: center;
}

.content-text {
  animation: slideInLeft 1s ease-out;
}

.content-text h2 {
  color: var(--coffee-dark);
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
  position: relative;
}

.content-text h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--coffee-brown);
  border-radius: 2px;
}

.content-text p {
  color: var(--text-color);
  line-height: 1.8;
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.content-image {
  animation: slideInRight 1s ease-out;
}

.content-image img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  transition: transform 0.3s ease;
}

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

/* 特色区域 */
.features-section {
  padding: 4rem 0;
  background: var(--coffee-light);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.feature-card {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  transform: translateY(20px);
  opacity: 0;
  animation: fadeInUp 0.8s ease-out forwards;
}

.feature-card:nth-child(1) { animation-delay: 0.2s; }
.feature-card:nth-child(2) { animation-delay: 0.4s; }
.feature-card:nth-child(3) { animation-delay: 0.6s; }

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

.feature-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: var(--coffee-brown);
}

.feature-card h3 {
  color: var(--coffee-dark);
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.feature-card p {
  color: var(--text-color);
  line-height: 1.6;
}

/* 子页面链接区域 */
.subpages-section {
  padding: 4rem 0;
  background: var(--accent-cream);
  text-align: center;
}

.subpages-section h2 {
  color: var(--coffee-dark);
  font-size: 2.5rem;
  margin-bottom: 2rem;
  animation: fadeIn 1s ease-out;
}

.subpages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1rem;
}

.subpage-card {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
}

.subpage-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(78, 52, 46, 0.1), transparent);
  transition: left 0.5s;
}

.subpage-card:hover::before {
  left: 100%;
}

.subpage-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

.subpage-card h3 {
  color: var(--coffee-dark);
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

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

/* 响应式设计 */
@media (max-width: 768px) {
  .about-hero h1 {
    font-size: 2.2rem;
  }
  
  .about-hero p {
    font-size: 1rem;
    padding: 0 1rem;
  }
  
  .content-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .content-text h2 {
    font-size: 1.8rem;
  }
  
  .subpages-section h2 {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .about-hero {
    height: 50vh;
  }
  
  .about-hero h1 {
    font-size: 1.8rem;
  }
  
  .feature-card,
  .subpage-card {
    padding: 1.5rem;
  }
}