/* 响应式样式 */

/* 大型设备 (桌面电脑, 1200px 以下) */
@media (max-width: 1199.98px) {
  .hero-content h1 {
    font-size: 3rem;
  }
  
  .hero-content p {
    font-size: 1.3rem;
  }
  
  .section-title {
    font-size: 2.2rem;
  }
}

/* 中型设备 (平板电脑, 992px 以下) */
@media (max-width: 991.98px) {
  .header-container {
    padding: 15px 20px;
  }
  
  .hero-content h1 {
    font-size: 2.5rem;
  }
  
  .hero-content p {
    font-size: 1.2rem;
  }
  
  .featured-grid, 
  .recipe-container {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  }
  
  .about-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .about-text {
    order: 2;
  }
  
  .about-img {
    order: 1;
  }
  
  .about-text .section-title {
    text-align: center;
  }
  
  .about-text .section-title::after {
    left: 50%;
    transform: translateX(-50%);
  }
}

/* 小型设备 (横向手机, 768px 以下) */
@media (max-width: 767.98px) {
  .mobile-menu {
    display: block;
  }
  
  .nav-links {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background-color: rgba(255, 255, 255, 0.95);
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 40px 0;
    transition: all 0.5s ease;
  }
  
  .nav-links.active {
    left: 0;
  }
  
  .nav-links li {
    margin: 15px 0;
  }
  
  .hero-content h1 {
    font-size: 2.2rem;
  }
  
  .hero-content p {
    font-size: 1.1rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .featured-grid, 
  .recipe-container {
    grid-template-columns: 1fr;
  }
  
  .cuisines-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }
  
  .cuisine-card {
    height: 250px;
  }
  
  .footer-content {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

/* 超小型设备 (竖向手机, 576px 以下) */
@media (max-width: 575.98px) {
  .header-container {
    padding: 15px;
  }
  
  .logo h1 {
    font-size: 1.5rem;
  }
  
  .hero-content h1 {
    font-size: 1.8rem;
  }
  
  .hero-content p {
    font-size: 1rem;
  }
  
  .btn {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
  
  .section-title {
    font-size: 1.8rem;
    margin-bottom: 2rem;
  }
  
  .featured, 
  .cuisines, 
  .recipes, 
  .about {
    padding: 60px 0;
  }
  
  .cuisines-grid {
    grid-template-columns: 1fr;
  }
  
  .recipe-info {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .recipe-info span {
    margin-bottom: 5px;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
  }
  
  .footer-logo, 
  .footer-links, 
  .footer-contact, 
  .footer-newsletter {
    text-align: center;
    margin-bottom: 30px;
  }
  
  .footer-links h3::after, 
  .footer-contact h3::after, 
  .footer-newsletter h3::after {
    left: 50%;
    transform: translateX(-50%);
  }
  
  .footer-contact p {
    justify-content: center;
  }
  
  .social-icons {
    justify-content: center;
  }
  
  .footer-newsletter form {
    flex-direction: column;
  }
  
  .footer-newsletter input {
    border-radius: 4px;
    margin-bottom: 10px;
  }
  
  .footer-newsletter .btn-small {
    border-radius: 4px;
    width: 100%;
  }
} 