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

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* 导航样式 */
.nav-primary {
    display: flex;
    gap: 1rem;
    list-style: none;
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 5px;
}

.nav-primary-item {
    position: relative;
    cursor: pointer;
    padding: 0.5rem 1rem;
    border-radius: 4px;
}

.nav-primary-item:hover {
    background: #e9ecef;
}

.nav-secondary {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    border-radius: 4px;
    padding: 0.5rem;
    min-width: 200px;
    z-index: 100;
}

.nav-secondary-item {
    padding: 0.5rem;
    border-radius: 4px;
}

.nav-secondary-item:hover {
    background: #f8f9fa;
}

.show-subnav {
    display: grid;
    gap: 0.5rem;
}

/* 菜品网格 */
.dish-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.dish-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s;
}

.dish-card:hover {
    transform: translateY(-5px);
}

.dish-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: #f8f9fa;
}

.dish-info {
    padding: 1rem;
}

.dish-price {
    color: #e74c3c;
    font-weight: bold;
    margin-top: 0.5rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-primary {
        flex-wrap: wrap;
    }
    
    .dish-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .dish-grid {
        grid-template-columns: 1fr;
    }
}

/* 详情页样式 */
.detail-container {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}

.detail-image {
    max-width: 400px;
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.detail-info {
    flex: 1;
}

.detail-section {
    margin-bottom: 1.5rem;
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 6px;
}

.detail-section h3 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
}