/* 分类导航 */
.category-nav {
    background-color: white;
    padding: 15px;
    position: sticky;
    top: 70px;
    z-index: 90;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.category-tabs {
    display: flex;
    border-bottom: 1px solid #eee;
}

.tab {
    padding: 8px 15px;
    margin-right: 10px;
    font-size: 14px;
    color: #666;
    cursor: pointer;
    position: relative;
}

.tab.active {
    color: #e74c3c;
    font-weight: bold;
}

.tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #e74c3c;
}

/* 菜单容器 */
.menu-container {
    padding: 15px;
}

.menu-category {
    display: none;
}

.menu-category.active {
    display: block;
}

.category-title {
    font-size: 18px;
    margin-bottom: 15px;
    color: #333;
    padding-left: 5px;
    border-left: 3px solid #e74c3c;
}

.menu-items {
    display: grid;
    gap: 15px;
}

/* 菜单项 */
.menu-item {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    display: flex;
}

.item-image {
    width: 120px;
    height: 120px;
    object-fit: cover;
}

.item-info {
    flex: 1;
    padding: 10px;
    display: flex;
    flex-direction: column;
}

.item-name {
    font-size: 16px;
    margin-bottom: 5px;
}

.item-desc {
    font-size: 12px;
    color: #999;
    margin-bottom: 10px;
}

.item-options {
    margin-top: auto;
    margin-bottom: 10px;
}

.option {
    margin-bottom: 8px;
}

.option-name {
    font-size: 12px;
    color: #666;
    display: block;
    margin-bottom: 5px;
}

.option-values {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.option-values .value {
    padding: 3px 8px;
    font-size: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
}

.option-values .value.active {
    border-color: #e74c3c;
    color: #e74c3c;
    background-color: rgba(231, 76, 60, 0.1);
}

.item-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 5px;
}

.item-price {
    font-size: 16px;
    color: #e74c3c;
    font-weight: bold;
}

.item-controls {
    display: flex;
    align-items: center;
}

.quantity-btn {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background-color: #f5f5f5;
    border: none;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.quantity {
    margin: 0 10px;
    min-width: 20px;
    text-align: center;
}