 :root {
     --primary-color: #ff5e62;
     --secondary-color: #ff9966;
     --dark-color: #333;
     --light-color: #f5f5f5;
     --text-color: #333;
     --text-light: #666;
     --white: #fff;
     --transition: all 0.3s ease;
     --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.08);
     --shadow-md: 0 5px 15px rgba(0, 0, 0, 0.1);
     --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
     --border-radius: 12px;
 }

 body::before {
     content: "";
     position: fixed;
     top: 0;
     left: 0;
     width: 100%;
     height: 100%;
     background-image: url("./img/背景图.jpg");
     background-size: cover;
     background-position: center;
     background-repeat: no-repeat;
     opacity: 0.5;
     /* 全局背景透明度50% */
     z-index: -1;
 }


 * {
     margin: 0;
     padding: 0;
     box-sizing: border-box;
 }

 body {
     font-family: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", sans-serif;
     background-color: var(--light-color);
     color: var(--text-color);
     line-height: 1.7;
     -webkit-font-smoothing: antialiased;
 }

 h1,
 h2,
 h3 {
     font-weight: 600;
     line-height: 1.3;
     margin-bottom: 1rem;
 }

 h1 {
     font-size: 2.5rem;
     color: var(--white);
 }

 h2 {
     font-size: 2rem;
     position: relative;
     padding-bottom: 0.8rem;
 }

 h2::after {
     content: "";
     position: absolute;
     bottom: 0;
     left: 0;
     width: 80px;
     height: 4px;
     background: linear-gradient(90deg, var(--secondary-color), var(--primary-color));
 }

 h3 {
     font-size: 1.5rem;
     color: var(--primary-color);
 }

 p {
     margin-bottom: 1.2rem;
     line-height: 1.8;
 }

 a {
     text-decoration: none;
     color: inherit;
     transition: var(--transition);
 }

 .container {
     max-width: 1200px;
     margin: 0 auto;
     padding: 0 2rem;
 }

 /* 页眉样式 */
 header {
     background: linear-gradient(135deg, rgba(255, 153, 102, 0.7), rgba(255, 94, 98, 0.7)),
         url("./img/背景图.jpg") center/cover no-repeat;
     color: var(--white);
     text-align: center;
     padding: 4rem 0;
     position: relative;
     z-index: 1;
 }

 /* 导航栏 */
 nav {
     background-color: var(--dark-color);
     padding: 1rem 0;
     position: sticky;
     top: 0;
     z-index: 100;
 }

 .nav-container {
     display: flex;
     justify-content: space-between;
     align-items: center;
 }

 .logo {
     font-size: 1.3rem;
     font-weight: 600;
     color: var(--white);
 }

 .nav-links {
     display: flex;
     list-style: none;
     gap: 2rem;
 }

 .nav-links a {
     color: var(--white);
     font-weight: 500;
     padding: 0.5rem 0;
     position: relative;
 }

 .nav-links a::after {
     content: "";
     position: absolute;
     bottom: 0;
     left: 0;
     width: 0;
     height: 2px;
     background-color: var(--secondary-color);
     transition: var(--transition);
 }

 .nav-links a:hover::after {
     width: 100%;
 }

 /* 主要内容 */
 main {
     padding: 3rem 0;
     position: relative;
     z-index: 1;
     background-color: rgba(245, 245, 245, 0.85);
     /* 添加轻微白色背景确保文字可读 */
 }

 .intro {
     background-color: var(--white);
     padding: 2.5rem;
     border-radius: var(--border-radius);
     box-shadow: var(--shadow-sm);
     margin-bottom: 3rem;
 }

 /* 美食卡片 */
 .food-section {
     display: grid;
     grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
     gap: 2.5rem;
     margin-bottom: 4rem;
 }

 .food-card {
     background-color: var(--white);
     border-radius: var(--border-radius);
     overflow: hidden;
     box-shadow: var(--shadow-sm);
     transition: var(--transition);
 }

 /* 美食标签样式 */
 .food-tag {
     position: absolute;
     top: 15px;
     right: 15px;
     background-color: var(--primary-color);
     color: white;
     padding: 0.3rem 0.8rem;
     border-radius: 20px;
     font-size: 0.8rem;
     font-weight: 500;
     z-index: 2;
     box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
 }

 .food-card:hover {
     transform: translateY(-10px);
     box-shadow: var(--shadow-lg);
 }

 .food-img {
     width: 100%;
     height: 250px;
     object-fit: cover;
 }

 .food-content {
     padding: 2rem;
 }

 .food-title {
     margin-bottom: 0.5rem;
 }

 .food-origin {
     font-style: italic;
     color: var(--text-light);
     margin-bottom: 1rem;
 }

 /* 页脚样式 */
 footer {
     background-color: var(--dark-color);
     color: var(--white);
     padding: 2rem 0 2rem;

 }

 .footer-content {
     display: flex;
     justify-content: space-around;
     flex-wrap: wrap;
     margin-bottom: 2rem;
 }

 .footer-section {
     flex: 1;
     min-width: 250px;
     padding: 0 1rem;
     margin-bottom: 1.5rem;
 }

 .footer-section h3 {
     margin-bottom: 1.2rem;
     font-size: 1.2rem;
 }

 .footer-section p,
 .footer-section a {
     font-size: 0.9rem;
     opacity: 0.8;
     margin-bottom: 0.6rem;
 }

 .social-links {
     display: flex;
     gap: 0.8rem;
     margin-top: 1rem;
     flex-wrap: wrap;
 }

 .social-links a {
     padding: 0.4rem 0.8rem;
     background-color: rgba(255, 255, 255, 0.1);
     border-radius: 4px;
     font-size: 0.85rem;
     white-space: nowrap;
 }

 .social-links a:hover {
     background-color: var(--secondary-color);
 }

 .copyright {
     text-align: center;
     padding-top: 1rem;
     border-top: 1px solid rgba(255, 255, 255, 0.1);
     font-size: 0.9rem;
     opacity: 0.7;
 }

 /* 响应式设计 */
 @media (max-width: 768px) {
     .nav-links {
         flex-direction: column;
         gap: 0;
         display: none;
     }

     .nav-links.active {
         display: flex;
     }

     .nav-links a {
         padding: 0.8rem 0;
         border-top: 1px solid rgba(255, 255, 255, 0.1);
     }

     .food-section {
         grid-template-columns: 1fr;
     }

     .footer-content {
         flex-direction: column;
     }
 }