
/* 全局变量与重置 */
:root {
    --primary-color: #ff6b6b; /* 食欲红 */
    --secondary-color: #feca57; /* 温暖黄 */
    --text-dark: #2d3436;
    --text-light: #636e72;
    --bg-light: #f9f9f9;
    --white: #ffffff;
    --font-main: 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

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

body {
    font-family: var(--font-main);
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
}

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

ul {
    list-style: none;
}

/* 导航栏 */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.navbar nav a {
    margin-left: 2rem;
    font-weight: 500;
    color: var(--text-dark);
}

.navbar nav a:hover {
    color: var(--primary-color);
}

/* 英雄区域 */
.hero {
    height: 100vh;
    background: url('https://picsum.photos/1920/1080?random=1') no-repeat center center/cover;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 0 20px;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--primary-color);
    color: white;
    border-radius: 50px;
    font-weight: bold;
    transition: transform 0.3s ease, background 0.3s ease;
}

.btn:hover {
    transform: translateY(-3px);
    background: #ff5252;
}

/* 通用标题 */
.section-header {
    text-align: center;
    margin: 4rem 0 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.section-header p {
    color: var(--text-light);
}

/* 招牌小吃网格 */
.menu-section {
    padding: 0 5% 4rem;
}

.food-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.food-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.food-img {
    height: 200px;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease;
}

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

.food-info {
    padding: 1.5rem;
}

.food-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.food-header h3 {
    font-size: 1.2rem;
}

.price {
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.1rem;
}

.food-info p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.tags {
    display: flex;
    gap: 0.5rem;
}

.tag {
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 0.75rem;
    background: #eee;
    color: #666;
}

.tag.hot { background: #ffebee; color: #c62828; }
.tag.spicy { background: #fbe9e7; color: #d84315; }
.tag.sweet { background: #fff3e0; color: #ef6c00; }

/* 风味地图横向滚动 */
.category-section {
    padding: 0 5% 4rem;
    background: var(--white);
}

.category-scroll {
    display: flex;
    overflow-x: auto;
    gap: 2rem;
    padding-bottom: 1rem;
    scrollbar-width: thin;
}

.category-scroll::-webkit-scrollbar {
    height: 6px;
}

.category-scroll::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

.cat-item {
    min-width: 150px;
    text-align: center;
    cursor: pointer;
}

.cat-item img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
    border: 3px solid transparent;
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.cat-item:hover img {
    border-color: var(--secondary-color);
    transform: scale(1.1);
}

.cat-item h4 {
    font-size: 1rem;
    color: var(--text-dark);
}

/* 品牌故事 */
.story-section {
    padding: 4rem 5%;
    background: var(--bg-light);
}

.story-container {
    display: flex;
    align-items: center;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

.story-text {
    flex: 1;
}

.story-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.story-text p {
    margin-bottom: 1.5rem;
    color: var(--text-light);
    line-height: 1.8;
}

.text-link {
    color: var(--primary-color);
    font-weight: bold;
    border-bottom: 2px solid transparent;
}

.text-link:hover {
    border-bottom-color: var(--primary-color);
}

.story-image {
    flex: 1;
}

.story-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 20px 20px 0 var(--secondary-color);
}

/* 页脚 */
footer {
    background: #2d3436;
    color: white;
    padding: 4rem 5% 2rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-col h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.footer-col h4 {
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.footer-col p, .footer-col a {
    color: #b2bec3;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    display: block;
}

.footer-col a:hover {
    color: white;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.copyright {
    text-align: center;
    border-top: 1px solid #444;
    padding-top: 2rem;
    color: #636e72;
    font-size: 0.8rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .hero h1 { font-size: 2.5rem; }
    .navbar nav { display: none; } /* 简化处理，移动端隐藏菜单 */
    .story-container { flex-direction: column; }
    .story-image img { box-shadow: 10px 10px 0 var(--secondary-color); }
}
