/* 全局重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft YaHei", sans-serif;
}

/* 页面主体 */
body {
    background-color: #f9f5f0;
    color: #333;
    line-height: 1.6;
}

/* 导航栏 */
nav {
    background-color: #e67e22;
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 999;
}

nav .logo img {
    height: 50px;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav a {
    color: white;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    transition: color 0.3s;
}

nav a:hover {
    color: #f1c40f;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-text {
  font-size: 1rem;
  color: white;
  font-weight: bold;
}

/* 容器 */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 2rem auto;
}

/* 标题样式 */
h1 {
    color: #e67e22;
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
}

h2 {
    color: #d35400;
    margin: 1.5rem 0 1rem;
    font-size: 1.5rem;
    border-left: 4px solid #e67e22;
    padding-left: 0.8rem;
}

h3 {
    display: inline-block;
    font-size: 1.2rem;
    white-space: nowrap;
    text-align: center;
}

/* 菜品列表父容器 */
.dish-list {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    width: 100%;
}

/* 菜品卡片 */
.dish-card {
    text-align: center;
    text-decoration: none;
    flex: 0 0 22%;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.dish-card:hover {
    transform: translateY(-5px);
}

.dish-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.dish-card .info {
    color: #e74c3c;
    font-weight: bold;
    margin-top: 0.5rem;
    text-align: center;
}

.dish-card a {
    text-decoration: none;
    color: inherit;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    background: #e67e22;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    margin-top: 1rem;
    transition: background 0.3s;
}

.btn:hover {
    background: #d35400;
}

.btn-back {
    background: #95a5a6;
}

.btn-back:hover {
    background: #7f8c8d;
}

/* 详情页样式 */
.dish-detail {
    display: flex;
    gap: 2rem;
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.dish-detail img {
    width: 40%;
    border-radius: 8px;
    object-fit: cover;
}

.dish-detail .desc {
    width: 60%;
}

.dish-detail .attr {
    margin: 1rem 0;
    padding: 1rem;
    background: #f8f8f8;
    border-radius: 4px;
}

/* 评价列表 */
.evaluate-list {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.evaluate-item {
    border-bottom: 1px solid #eee;
    padding: 1rem 0;
}

.evaluate-item .score {
    color: #f1c40f;
    font-weight: bold;
}

/* 页脚 */
footer {
    background: #34495e;
    color: white;
    text-align: center;
    padding: 2rem;
    margin-top: 3rem;
}

/* 响应式适配 */
@media (max-width: 768px) {
    .dish-card {
        width: 45%;
    }
    .dish-detail {
        flex-direction: column;
    }
    .dish-detail img, .dish-detail .desc {
        width: 100%;
    }
    nav ul {
        gap: 1rem;
    }
}