/* === 为民餐饮官网 - 全局样式 === */

/* 重置样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #fff;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

ul, ol {
  list-style: none;
}

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

/* === 通用容器 === */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* === 头部导航 === */
.header {
  background: linear-gradient(135deg, #2E7D32 0%, #43A047 100%);
  padding: 0;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

.logo {
  display: flex;
  align-items: center;
  color: #fff;
}

.logo-icon {
  width: 45px;
  height: 45px;
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 12px;
  font-size: 24px;
  color: #2E7D32;
  font-weight: bold;
}

.logo-text {
  font-size: 22px;
  font-weight: bold;
  letter-spacing: 2px;
}

.logo-text span {
  display: block;
  font-size: 12px;
  font-weight: normal;
  opacity: 0.9;
  letter-spacing: 1px;
}

.nav ul {
  display: flex;
  gap: 35px;
}

.nav a {
  color: #fff;
  font-size: 16px;
  padding: 8px 0;
  position: relative;
  opacity: 0.9;
}

.nav a:hover,
.nav a.active {
  opacity: 1;
}

.nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: #fff;
  transition: width 0.3s ease;
}

.nav a:hover::after,
.nav a.active::after {
  width: 100%;
}

/* 移动端菜单按钮 */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
}

.mobile-menu-btn span {
  display: block;
  width: 25px;
  height: 3px;
  background: #fff;
  margin: 5px 0;
  border-radius: 2px;
  transition: 0.3s;
}

/* === 主横幅 === */
.banner {
  margin-top: 70px;
  background: linear-gradient(135deg, #2E7D32 0%, #43A047 50%, #66BB6A 100%);
  color: #fff;
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
}

.banner .container {
  position: relative;
  z-index: 1;
}

.banner h1 {
  font-size: 48px;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.banner p {
  font-size: 20px;
  opacity: 0.95;
  max-width: 600px;
  margin: 0 auto 30px;
}

.banner-btn {
  display: inline-block;
  background: #fff;
  color: #2E7D32;
  padding: 15px 40px;
  border-radius: 30px;
  font-size: 18px;
  font-weight: bold;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.banner-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* 页面横幅（子页面） */
.page-banner {
  margin-top: 70px;
  background: linear-gradient(135deg, #2E7D32 0%, #43A047 100%);
  color: #fff;
  padding: 60px 0;
  text-align: center;
}

.page-banner h1 {
  font-size: 36px;
  margin-bottom: 10px;
}

.page-banner p {
  font-size: 16px;
  opacity: 0.9;
}

/* === 区块标题 === */
.section {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
}

.section-title h2 {
  font-size: 36px;
  color: #333;
  margin-bottom: 15px;
  position: relative;
  display: inline-block;
}

.section-title h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #2E7D32, #43A047);
  border-radius: 2px;
}

.section-title p {
  color: #666;
  font-size: 16px;
  margin-top: 20px;
}

/* === 特色卡片 === */
.features {
  background: #f8f9fa;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.feature-card {
  background: #fff;
  padding: 40px 30px;
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.feature-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #2E7D32, #43A047);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 25px;
  font-size: 36px;
}

.feature-card h3 {
  font-size: 22px;
  color: #333;
  margin-bottom: 15px;
}

.feature-card p {
  color: #666;
  font-size: 15px;
  line-height: 1.8;
}

/* === 关于我们 === */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-image {
  background: linear-gradient(135deg, #2E7D32, #43A047);
  border-radius: 15px;
  padding: 40px;
  color: #fff;
  text-align: center;
}

.about-image .stat-number {
  font-size: 56px;
  font-weight: bold;
  margin-bottom: 10px;
}

.about-image .stat-label {
  font-size: 18px;
  opacity: 0.9;
}

.about-text h3 {
  font-size: 28px;
  color: #333;
  margin-bottom: 20px;
}

.about-text p {
  color: #666;
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 20px;
}

/* === 服务模式 === */
.service-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.service-item {
  display: flex;
  gap: 25px;
  padding: 30px;
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.service-item:hover {
  transform: translateX(10px);
}

.service-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #2E7D32, #43A047);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  flex-shrink: 0;
}

.service-info h3 {
  font-size: 20px;
  color: #333;
  margin-bottom: 10px;
}

.service-info p {
  color: #666;
  font-size: 15px;
  line-height: 1.7;
}

/* === 合作客户 === */
.clients-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.client-card {
  background: #fff;
  border-radius: 15px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.client-card:hover {
  transform: scale(1.05);
}

.client-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, #2E7D32, #43A047);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 30px;
}

.client-card h4 {
  font-size: 18px;
  color: #333;
  margin-bottom: 10px;
}

.client-card p {
  color: #666;
  font-size: 14px;
}

/* === 联系我们 === */
.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.contact-info {
  padding: 40px;
  background: linear-gradient(135deg, #2E7D32, #43A047);
  border-radius: 15px;
  color: #fff;
}

.contact-info h3 {
  font-size: 28px;
  margin-bottom: 30px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 25px;
}

.contact-item-icon {
  width: 45px;
  height: 45px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.contact-item-text h4 {
  font-size: 16px;
  margin-bottom: 5px;
}

.contact-item-text p {
  font-size: 15px;
  opacity: 0.9;
  line-height: 1.6;
}

.contact-form {
  padding: 40px;
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.contact-form h3 {
  font-size: 24px;
  color: #333;
  margin-bottom: 25px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 14px;
  color: #666;
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  font-size: 15px;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #2E7D32;
}

.form-group textarea {
  height: 120px;
  resize: vertical;
}

.submit-btn {
  width: 100%;
  padding: 15px;
  background: linear-gradient(135deg, #2E7D32, #43A047);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(46, 125, 50, 0.3);
}

/* === 数据统计 === */
.stats {
  background: linear-gradient(135deg, #2E7D32 0%, #43A047 100%);
  padding: 60px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  text-align: center;
  color: #fff;
}

.stat-item .stat-number {
  font-size: 48px;
  font-weight: bold;
  margin-bottom: 10px;
}

.stat-item .stat-label {
  font-size: 16px;
  opacity: 0.9;
}

/* === 页脚 === */
.footer {
  background: #2d2d2d;
  color: #fff;
  padding: 60px 0 0;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-about h3 {
  font-size: 22px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-about h3 span {
  width: 35px;
  height: 35px;
  background: linear-gradient(135deg, #2E7D32, #43A047);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.footer-about p {
  color: #aaa;
  font-size: 14px;
  line-height: 1.8;
}

.footer-links h4 {
  font-size: 18px;
  margin-bottom: 20px;
}

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

.footer-links a {
  color: #aaa;
  font-size: 14px;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #43A047;
}

.footer-bottom {
  padding: 20px 0;
  text-align: center;
  color: #666;
  font-size: 14px;
}

/* === 响应式设计 === */
@media (max-width: 992px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-content {
    grid-template-columns: 1fr;
  }

  .contact-content {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }

  .footer-content {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .header .container {
    height: 60px;
  }

  .mobile-menu-btn {
    display: block;
  }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #2E7D32, #43A047);
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .nav.active {
    max-height: 300px;
  }

  .nav ul {
    flex-direction: column;
    padding: 20px;
    gap: 0;
  }

  .nav ul li {
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .banner {
    padding: 50px 0;
  }

  .banner h1 {
    font-size: 32px;
  }

  .banner p {
    font-size: 16px;
  }

  .features-grid,
  .service-list,
  .clients-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 50px 0;
  }

  .section-title h2 {
    font-size: 28px;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .logo-text {
    font-size: 18px;
  }

  .logo-text span {
    font-size: 10px;
  }

  .banner h1 {
    font-size: 26px;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .stat-item .stat-number {
    font-size: 36px;
  }
}

/* === 动画效果 === */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fadeInUp {
  animation: fadeInUp 0.6s ease forwards;
}
