/* 全局样式 */
:root {
  --primary-color: #ff6b6b;
  --secondary-color: #f7b731;
  --dark-color: #2d3436;
  --light-color: #f5f6fa;
  --success-color: #20bf6b;
  --warning-color: #eb4d4b;
  --max-width: 1200px;
}

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

body {
  font-family: 'Noto Sans SC', sans-serif;
  line-height: 1.6;
  color: var(--dark-color);
  background-color: #fff;
}

a {
  text-decoration: none;
  color: var(--dark-color);
}

ul {
  list-style: none;
}

img {
  width: 100%;
  height: auto;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
  overflow: hidden;
}

.section-title {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 2.5rem;
  position: relative;
  color: var(--dark-color);
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background-color: var(--primary-color);
}

.btn {
  display: inline-block;
  background: var(--primary-color);
  color: #fff;
  padding: 12px 30px;
  border: none;
  border-radius: 30px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn:hover {
  background: #e05a5a;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.btn-small {
  padding: 8px 20px;
  font-size: 0.9rem;
  border-radius: 20px;
  background: var(--primary-color);
  color: white;
  display: inline-block;
  transition: all 0.3s ease;
}

.btn-small:hover {
  background: #e05a5a;
  transform: translateY(-2px);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

/* 头部样式 */
header {
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 100;
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.logo h1 {
  font-size: 1.8rem;
  color: var(--primary-color);
  font-weight: 700;
}

.nav-links {
  display: flex;
  align-items: center;
}

.nav-links li {
  margin-left: 30px;
}

.nav-links a {
  font-size: 1rem;
  font-weight: 500;
  color: var(--dark-color);
  transition: all 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary-color);
}

.mobile-menu {
  display: none;
  cursor: pointer;
  font-size: 1.5rem;
}

/* 英雄区域样式 */
.hero {
  height: 100vh;
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../images/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #fff;
  padding: 0 20px;
}

.hero-content {
  max-width: 800px;
}

.hero-content h1 {
  font-size: 3.5rem;
  margin-bottom: 20px;
  font-weight: 700;
}

.hero-content p {
  font-size: 1.5rem;
  margin-bottom: 30px;
}

/* 特色美食区域样式 */
.featured {
  padding: 100px 0;
  background-color: var(--light-color);
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 30px;
}

.featured-item {
  background-color: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.featured-item:hover {
  transform: translateY(-10px);
}

.featured-img {
  height: 250px;
  overflow: hidden;
}

.featured-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.featured-item:hover .featured-img img {
  transform: scale(1.1);
}

.featured-content {
  padding: 20px;
}

.featured-content h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: var(--dark-color);
}

.featured-content p {
  margin-bottom: 20px;
  color: #555;
}

/* 世界美食区域样式 */
.cuisines {
  padding: 100px 0;
  background-color: #fff;
}

.cuisines-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
}

.cuisine-card {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  height: 300px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.cuisine-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.cuisine-card:hover img {
  transform: scale(1.1);
}

.cuisine-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  color: #fff;
  padding: 20px;
  transform: translateY(0);
  transition: transform 0.3s ease;
}

.cuisine-card:hover .cuisine-info {
  transform: translateY(-10px);
}

.cuisine-info h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.cuisine-info p {
  font-size: 0.9rem;
  opacity: 0.9;
}

/* 食谱区域样式 */
.recipes {
  padding: 100px 0;
  background-color: var(--light-color);
}

.recipe-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 30px;
}

.recipe-card {
  background-color: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.recipe-img {
  position: relative;
  height: 200px;
}

.recipe-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.recipe-time {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background-color: var(--primary-color);
  color: #fff;
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 0.8rem;
}

.recipe-content {
  padding: 20px;
}

.recipe-content h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: var(--dark-color);
}

.recipe-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
  font-size: 0.9rem;
  color: #777;
}

.recipe-content p {
  margin-bottom: 20px;
  color: #555;
}

/* 关于我们区域样式 */
.about {
  padding: 100px 0;
  background-color: #fff;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.about-text {
  text-align: left;
}

.about-text .section-title {
  text-align: left;
}

.about-text .section-title::after {
  left: 0;
  transform: none;
}

.about-text p {
  margin-bottom: 20px;
  line-height: 1.8;
  color: #555;
}

.about-img {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* 页脚样式 */
footer {
  background-color: var(--dark-color);
  color: #fff;
  padding: 70px 0 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
}

.footer-logo h2 {
  font-size: 1.8rem;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.footer-logo p {
  font-size: 1rem;
  color: #ddd;
}

.footer-links h3,
.footer-contact h3,
.footer-newsletter h3 {
  font-size: 1.2rem;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-links h3::after,
.footer-contact h3::after,
.footer-newsletter h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background-color: var(--primary-color);
}

.footer-links ul li {
  margin-bottom: 10px;
}

.footer-links ul li a {
  color: #ddd;
  transition: all 0.3s ease;
}

.footer-links ul li a:hover {
  color: var(--primary-color);
  padding-left: 5px;
}

.footer-contact p {
  margin-bottom: 15px;
  display: flex;
  align-items: center;
}

.footer-contact p i {
  margin-right: 10px;
  color: var(--primary-color);
}

.social-icons {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.social-icons a {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: #fff;
  transition: all 0.3s ease;
}

.social-icons a:hover {
  background-color: var(--primary-color);
  transform: translateY(-3px);
}

.footer-newsletter p {
  margin-bottom: 15px;
}

.footer-newsletter form {
  display: flex;
}

.footer-newsletter input {
  flex: 1;
  padding: 10px 15px;
  border: none;
  border-radius: 4px 0 0 4px;
  outline: none;
}

.footer-newsletter .btn-small {
  border-radius: 0 4px 4px 0;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
  color: #ddd;
} 